statsd_exporter/pkg/mapper
Andy Paine 0135b40c08 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>
2019-06-06 11:33:58 +01:00
..
fsm *: add staticcheck target back 2019-01-04 15:26:57 +01:00
action.go Move mapper -> pkg/mapper 2018-08-14 09:20:00 +00:00
mapper.go Make mapper cache respect metric type 2019-06-06 11:33:58 +01:00
mapper_benchmark_test.go Adding mapping cache 2019-04-26 18:00:39 -04:00
mapper_cache.go Make mapper cache respect metric type 2019-06-06 11:33:58 +01:00
mapper_test.go Adding mapping cache 2019-04-26 18:00:39 -04:00
match.go replace glob matching 2018-09-11 17:34:19 -07:00
metric_type.go Move mapper -> pkg/mapper 2018-08-14 09:20:00 +00:00
timer.go Move mapper -> pkg/mapper 2018-08-14 09:20:00 +00:00