[prometheus-users] Re: Extracting multiple metrics from SNMP string

2025-04-01 Thread 'Elliott Balsley' via Prometheus Users
Thanks, that relabel config works perfectly! On Wednesday, March 26, 2025 at 2:06:57 AM UTC-7 Brian Candler wrote: > I don't think the exporter can do that, although it sounds like a good > idea to me (i.e. to be able to set a label rather than mangle the metric > name). > > Possibly you could

[prometheus-users] Re: Extracting multiple metrics from SNMP string

2025-03-26 Thread 'Brian Candler' via Prometheus Users
I don't think the exporter can do that, although it sounds like a good idea to me (i.e. to be able to set a label rather than mangle the metric name). Possibly you could use metric_relabel_configs to fix it up: - source_labels: [__name__] regex: '.*_CHANNEL_(.+)' target_label: channel - sour