Hi all.
I try to make label dynamic.
My SNMP response is like this :
STRING: "cust1:3"
STRING: "cust2:1"
And I want to have this response from prometheus SNMP Exporter :
CURRENTCALLS{customer="cust1"} 3
CURRENTCALLS{customer="cust2"} 1
My snmp.yml :
sbc:
walk:
- .1.3.6.1.4.1.8072.1.3.2.4.1.2.16.97.115.98.99.99.117.114.114.101.110.116.99.97.108.108.115
metrics:
- name: CURRENTCALLS
oid: 1.3.6.1.4.1.8072.1.3.2.4.1.2.16.97.115.98.99.99.117.114.114.101.110.116.99.97.108.108.115
type: DisplayString
indexes:
- labelname: customer
type: DisplayString
regex_extracts:
"":
- regex: ^(?:.*\:(.*))$
value: $1
How I can do this ?
Thank's in advance