Hi I would like to know if it’s possible hide a row (where inside there are some panels) or if there is no data on a query or variable value.
Anyway it’s important for me that “some elements” disappear.
welcome to the forum, @alencappelletti
I’m not sure this is possible but I’d love to be wrong. BTW what is the datasource?
It’s prometheus data source, for example I do a loop on a variabile… but if this empty I would like that my row and all the elements inside disaperar… I don’t like an empty row with all elements with no data .
Thanks Alen, Italy
I solved using a second variable. In practice, by joining two conditions in a single expression in a query, I had the result with only the active elements and NEVER null or empty.
No way to do it with any panel either or advanced functionality… maybe you could with Javascript and Dynamic Text Panel… checking for presence of an element… but simpler my solution.
ALEN
Hey man, I‘m struggling with the Same Problem. How did you fix it? What do u mean 2 conditions?
My Problem is that I want to Show only panels in the repeating row where the value of the Metric is my val $status that I selected. In my case 0 (okay) or 1 (Notokay)
I tried it Like this:
is_alive{name=~$Server, service=~$service} == $status
The Problem is: Not every Service is Running on every Server so I get no data on some
If Container is alive it returns 0 if selected 0
But if the Container metrics is missing or I want to Filter for NotOkay than I get no data on all okay Panels and on Services where there are no metric results.