# Possible to hide certain metrics on graph panel by default?

**URL:** <https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316>\
**Category:** Time Series Panel\
**Created:** [March 28, 2017, 2:30pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316 "2017-03-28T14:30:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![asteroids](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/asteroids/32/179_2.png) [@asteroids](https://community.grafana.com/u/asteroids)\
**Post date:** [March 28, 2017, 2:30pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/1 "2017-03-28T14:30:02Z")

</div>

Grafana shows all metrics by default on graph panels. I can hide metrics by Shift + click. Is it also possible to hide certain metrics by default for a graph panel?

---

<div class="post-metadata">

**Author:** ![nopzor1200](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nopzor1200](https://community.grafana.com/u/nopzor1200)\
**Post date:** [March 28, 2017, 10:19pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/2 "2017-03-28T22:19:11Z")

</div>

If the metrics in question are a separate query, you can click the eye icon on the query editor. This will toggle the rendering for particular queries.

Either way, you can save the Dashboard to retain the settings you want.

---

<div class="post-metadata">

**Author:** ![asteroids](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/asteroids/32/179_2.png) [@asteroids](https://community.grafana.com/u/asteroids)\
**Post date:** [March 29, 2017, 5:08am UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/3 "2017-03-29T05:08:38Z")

</div>

Thanks, but that’s not exactly what I mean. The eye icon hides the metric also from the legend.

I want the graph panel to be loaded like this by default - two metrics, both in the legend, one metric shown by default, the other hidden (but still in the legend). **Is that possible?**

![](https://us1.discourse-cdn.com/grafana/original/1X/a5c2ac61a33a43a838376aa4af63d71b74c1292a.png)

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [March 29, 2017, 11:23am UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/4 "2017-03-29T11:23:39Z")

</div>

A series override should do the trick:

![](https://us1.discourse-cdn.com/grafana/original/1X/900e98a20c911b76d7957b34ba3a4db8c9865725.png)

---

<div class="post-metadata">

**Author:** ![asteroids](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/asteroids/32/179_2.png) [@asteroids](https://community.grafana.com/u/asteroids)\
**Post date:** [March 29, 2017, 12:29pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/5 "2017-03-29T12:29:18Z")

</div>

My bad - I wasn’t clear enough.

@daniellee: yep, that hides the metric, but I can’t unhide it with Shift + click on the metric in the legend.

I have a graph with 7 metrics. By default only 3 metrics should be shown (in order not to confuse the user with too much information). If the user needs to see more metrics, she should add the metric with Shift + click. **Is there a way to do that?**

---

<div class="post-metadata">

**Author:** ![daniellee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/daniellee/32/41_2.png) [@daniellee](https://community.grafana.com/u/daniellee)\
**Post date:** [March 29, 2017, 1:12pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/6 "2017-03-29T13:12:47Z")

</div>

I don’t think so. If you want to reduce the number of metrics, maybe template variables would work? That way you can preselect a few series but still have the option to choose more from the drop down.

[http://docs.grafana.org/reference/templating/#templating](http://docs.grafana.org/reference/templating/#templating)

---

<div class="post-metadata">

**Author:** ![asteroids](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/asteroids/32/179_2.png) [@asteroids](https://community.grafana.com/u/asteroids)\
**Post date:** [April 5, 2017, 3:31pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/7 "2017-04-05T15:31:35Z")

</div>

I guess template variables don’t work in this case. Templating allows you to select series based on _tags_ (see [this](http://play.grafana.org/dashboard/db/influxdb-templated-queries) example in the live demo). What I’m looking for, however, is a way to preselect _fields_ in InfluxDB.

Any idea how this could work?

---

<div class="post-metadata">

**Author:** ![gaurav24](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/gaurav24/32/938_2.png) [@gaurav24](https://community.grafana.com/u/gaurav24)\
**Post date:** [May 6, 2019, 10:49pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/8 "2019-05-06T22:49:43Z")

</div>

@asteroids Did you find a workaround for this one ? Looking for same thing

---

<div class="post-metadata">

**Author:** ![gaurav24](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/gaurav24/32/938_2.png) [@gaurav24](https://community.grafana.com/u/gaurav24)\
**Post date:** [May 6, 2019, 11:54pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/9 "2019-05-06T23:54:28Z")

</div>

seems there is an open issue [https://github.com/grafana/grafana/issues/4645](https://github.com/grafana/grafana/issues/4645)

---

<div class="post-metadata">

**Author:** ![jsbergbau](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jsbergbau](https://community.grafana.com/u/jsbergbau)\
**Post date:** [March 20, 2022, 10:42pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/10 "2022-03-20T22:42:44Z")

</div>

Hiding certain metrics is now possible, see [Graph: Added series override option to have hidden series be persisted on save by Gauravshah · Pull Request #20124 · grafana/grafana · GitHub](https://github.com/grafana/grafana/pull/20124)

In short:  
 ![grafik](https://us1.discourse-cdn.com/grafana/original/3X/5/4/54db23fb4de915d12f23f7e01e26d039975fc64a.png)

Add series override, enter the name of the series you want to hide by default and than add “Hidden series true”. Users must now click to enable this graph.

---

<div class="post-metadata">

**Author:** ![bucovaina89](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@bucovaina89](https://community.grafana.com/u/bucovaina89)\
**Post date:** [October 12, 2022, 8:13am UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/11 "2022-10-12T08:13:59Z")

</div>

A few years later againg but I noticed to shift click on the metric so the panel is as you wish. Then save the dashboard and reload the page to check it’s still so. For me it was.

---

<div class="post-metadata">

**Author:** ![jamesfd70](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jamesfd70](https://community.grafana.com/u/jamesfd70)\
**Post date:** [May 17, 2023, 10:18pm UTC](https://community.grafana.com/t/possible-to-hide-certain-metrics-on-graph-panel-by-default/316/12 "2023-05-17T22:18:47Z")

</div>

Ctrl-Click to Hide/Unhide the appropriate series. When you are happy, Save the Pannel and it will default to how you saved it with the ability for users to click and unhide…
