prometheus metrics prefix code example
Example: prometheus add prefix to metrics
metric_relabel_configs:
- source_labels: [__name__]
regex: '(.*)'
replacement: 'snmp_${1}'
target_label: __name__
metric_relabel_configs:
- source_labels: [__name__]
regex: '(.*)'
replacement: 'snmp_${1}'
target_label: __name__