Are variableLabels available from the Java client?

15 views
Skip to first unread message

Paul Chambre

unread,
Apr 8, 2022, 8:02:14 AM4/8/22
to Prometheus Users
I am trying to understand how best to distinguish metrics that are associated with distinct instances of tasks in our system. I see that the (golang) systemd collector uses variableLabels to do this. 

E.g. node_systemd_unit_state{name="dh-etcd.service",state="active",type="notify"} 1

I would like to do something similar from the Java client, but I don't see any such attribute in Gauge.java, et al. The Java API seems to only allow numeric valued labels. Am I missing something? 

Thanks,
Paul
Reply all
Reply to author
Forward
0 new messages