Template stopped running query


#1

Hi.

I have a dashboard (with Cassandra metrics) and uses templating. It defines a variable named instance like this:

label_values(up{job=“cassandra”}, instance)

For some reason, the list is returning empty.

The thing is that used to work until yesterday, and after a restart, it’s not loading anymore.

The query is correct – if i create a new dashboard and set up templating exactly with the same parameters it works (returns a list of instances).

Testing directly on prometheus (“up{job=“cassandra”}”) it works as expected too.

I’m using grafana 4.6.3-1.

Any thoughts?

Thank you.


#2

Just found the reason.
The graph period was set to a few weeks ago where not data is available anymore. Setting to the “last 24h” it works.
Thanks.