03 Oct 2024 09:34 AM
In extension 1.0 , I had a statetimeseries metric as below:
Solved! Go to Solution.
03 Oct 2024 10:49 AM
State metrics no longer exist. The best solution is to use dimension values to indicate the state. For instance if it is INPROCESS, we set the dimension to inprocess and the value to 1 (true), we can either not set the other values or set them to 0 (false).
mymetric, metricstate="INPROCESS" 1
mymetric, metricstate="HEALTHY" 0
mymetric, metricstate="UNHEALTHY" 0
03 Oct 2024 11:11 AM
By using below way , isn't it that both HEALTHY and UNHEALTHY will both get same values.
mymetric, metricstate="INPROCESS" 1
mymetric, metricstate="HEALTHY" 0
mymetric, metricstate="UNHEALTHY" 0
For the above metric solution , should we report metric in below way:
03 Oct 2024 01:31 PM - edited 03 Oct 2024 01:32 PM
yes they can have the same value. With dimensions it is almost like having 3 separate metrics. It is best to set them all because when charting it will look better as all 3 values will show.
You don't need to set the host in the dimension as it will be done automatically for you if your extension is local. You should add the metricstatus dimension in the definition too.