-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mapper cache respect metric type
- Statsd allows users to provide a metric with the same name but differing types (counter, gauge, timer) - The exporter allows this by letting users specify a "match_metric_type" in the mapping config - However the mapper cache does not look at the metric type so it would return a MetricMapperCacheResult for the type of the first metric with that name that the exporter saw - Add MetricType to the signature for the cache and format the metric name with the type to provide unique keys for a metric with the same name but differing type Signed-off-by: Andy Paine <andy.paine@digital.cabinet-office.gov.uk>
- Loading branch information
Andy Paine
committed
Jun 6, 2019
1 parent
50d5932
commit 0135b40
Showing
2 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters