JMX-exporter convert all attributes to labels

8 views
Skip to first unread message

Rahul Bhattacharya

unread,
Mar 30, 2020, 5:44:52 PM3/30/20
to Prometheus Developers

i have a metric with a lot of attributes.
I want to export that into prometheus with labels
For instance i have a object with objectname containing type=status, connector=something,task=something
but it has attributes WorkerId, Trace and State

i want to use a rule like the following

  • pattern: "com.connect.task<type=status, connector=([^:]+), task=([^:]+)><>State: ([^:]+),WorkerId: ([^:]+),Trace: ([^:]+)"
    name: "com_connect_connector_task_status"
    value: 1
    labels:
    connector: $1
    task: $2
    status: $3
    worker_id: $4
    trace: $5

How are users supposed to get attributes into labels

Reply all
Reply to author
Forward
0 new messages