Monitoring - Adding multiple labels to a custom metric
Hello,
I want to upload a "custom" metric in prometheus (queue).
For now, in version 2022, I have the impression that we cannot add multiple labels and yet the basic metrics know how to do it.
ex: standard metric
iris_interop_messages_per_sec{cluster="1", host="xxxx", id="API", instance="xxxx:80", job="SAM", production="xxxx"}
my current example: I would like to be able to at least add the production, just to have the source of the measurement.
my_iris_queue{cluster="1", id="xxxx", instance="xxx", job="SAM"}
Do you have any idea how to do this? I remind you that in version 2022, we don't have the SetSensorsLabel method!
Thanks in advance
Comments
Hi,
I guess you have written a custom extension using superclass %SYS.Monitor.SAM.Abstract?
If so the method you are looking for is SetSensorLabels see doc here
Hello TImo,
In 2024, yes, it is possible but not in 2022.1 version. Wa have upgrade our IRIS version.
Thanks