11

So, I have a Grafana dashboard to show the logs of various services running inside a host.

Now, I have different rows for different service because metrics and there titles are specific to the service - Such as for Apache Service, we have log metrics based on HTTP STATUS CODE, for Oracle Database Service, we have ORA-* distribution, connection partition /trend etc.

Now, My question is simple that the Grafana dashboard supports repeat on rows and individual metrics. How can I use this feature to show/ hide my rows based on variable values selected.

Here it says that it will never be implemented ( https://community.grafana.com/t/hiding-a-row-panel/1788/3 ),

and this question(Hide grafana panels based on selected template variable) does asks the same thing but in the accepted answer only links are provided, which are of very little help.

1
  • Very unforunate. This would be usefull functionality in my mind. +1 Commented Jan 27, 2021 at 16:48

1 Answer 1

2

I don't fully imagine your dashboard / panel. However I've managed to hide rows from two of my panels using two different methods.

  • Method number 1: You can remove rows with metrics with specific labels. This is done in the query like in - (metric{label =~ "some regex"}). All metrics with these labels will not be included.
  • Method number 2: You can use Transform.'Filter data by values'.'Filter type = Exclude'. This will remove rows with values that correspond to the applied filter.
Sign up to request clarification or add additional context in comments.

1 Comment

2 is not working, it only removes the data, not the row

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.