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

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c33be09b-7639-461e-9e96-28b2f12a4bden%40googlegroups.com.

Reply via email to