I have a metrics like this device{deviceID=“dev1”,code=“3”,status=“Connected”} 1.0 and the value of the labels like code and status changes after certain conditions then promethius inserts a new metrics for this.
Please suggest how to update the existing metrics.
device{deviceID=“dev1”,code=“3”,status=“Connected”} 1.0
to device{deviceID=“dev1”,code=“4”,status=“Not Connected”} 1.0
Those are different time series. When you have enums like that the best idea is to always return all the different options, but with only one haveing the value of 1 (and 0 for the others).