statsd_exporter/pkg/mapper
Eddie Bracho fdc8b5f852 Add scale field to mapping config
This field allows configuring unit conversions in mappings. For example:

mappings:
- match: foo.latency_ms
  name: foo_latency_seconds
  scale: 0.001
- match: bar.processed_kb
  name: bar_processed_bytes
  scale: 1024

Signed-off-by: Eddie Bracho <eddiebracho@gmail.com>
2023-05-29 19:54:43 -07:00
..
fsm feat: enable more linters and fix warnings (#364) 2021-10-24 21:27:31 +07:00
action.go Move mapper -> pkg/mapper 2018-08-14 09:20:00 +00:00
escape.go fix linter warnings: goimports, wsl 2021-10-24 00:13:53 +07:00
escape_test.go fix linter warnings: goimports, wsl 2021-10-24 00:13:53 +07:00
mapper.go Making mapperConfigDefaults and metricObjective public, so that Grafana Agent can instantiate MetricMapper without using InitFromYAMLString directly. 2023-03-15 16:34:31 -06:00
mapper_benchmark_test.go Fixing broken benchmark for mapper 2022-06-17 12:14:29 +02:00
mapper_cache.go Add comments about thread-safety 2021-02-19 14:13:03 -05:00
mapper_defaults.go Making mapperConfigDefaults and metricObjective public, so that Grafana Agent can instantiate MetricMapper without using InitFromYAMLString directly. 2023-03-15 16:34:31 -06:00
mapper_test.go Add scale field to mapping config 2023-05-29 19:54:43 -07:00
mapping.go Add scale field to mapping config 2023-05-29 19:54:43 -07:00
match.go replace glob matching 2018-09-11 17:34:19 -07:00
metric_type.go support deprecated timer_type in configs 2020-06-15 18:41:16 -04:00
observer.go Rename timer to observer in mapper 2020-06-15 17:26:20 -04:00