Condition Filter With Prometheus Metrics

Hi Guys,

I have custom metrics called “my_metrices_list” and the labels are variable_name, variable_value and set_time. If the variable_value is changed, set_time will be updated to the time when the variable_value has changed.

Here, I need to list only the variable name, which should be within the dashboard time range.

set_time >= $from and set_time <= $to

How can I achieve this in Prometheus metrics query?

Hi @asuwini,
Can you please try query that will use global variables ${__from} and ${__to} ?

Best regards,
ldrascic