Skip to content

Commit

Permalink
Revert "[prometheus check] Actually use provided "metrics_mapper" (#3446
Browse files Browse the repository at this point in the history
)" (#3861)

This reverts commit 176b71d.
  • Loading branch information
ahmed-mez authored and ofek committed Jun 4, 2019
1 parent fcac0e6 commit 2b9d222
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ def get_scraper(self, instance):
metrics_mapper[metric] = metric
else:
metrics_mapper.update(metric)
# update metrics mapper with values provided by user
metrics_mapper.update(instance.get("metrics_mapper", {}))

scraper.metrics_mapper = metrics_mapper
scraper.labels_mapper = default_instance.get("labels_mapper", {})
Expand Down

0 comments on commit 2b9d222

Please sign in to comment.