# Cannot Disable /metrics

**URL:** <https://community.grafana.com/t/cannot-disable-metrics/9786>\
**Category:** Configuration\
**Tags:** docker, configuration, kubernetes\
**Created:** [August 20, 2018, 2:17pm UTC](https://community.grafana.com/t/cannot-disable-metrics/9786 "2018-08-20T14:17:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfonseca](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@cfonseca](https://community.grafana.com/u/cfonseca)\
**Post date:** [August 20, 2018, 2:17pm UTC](https://community.grafana.com/t/cannot-disable-metrics/9786/1 "2018-08-20T14:17:31Z")

</div>

I’m running the latest version of Grafana in a container. Our Grafana instance is exposed externally, so we’d like to disable the /metrics endpoint, since we don’t use it anyway.

According to the docs, I can set the metrics enabled value to false to disable it, but this doesn’t seem to do anything. I’ve configured Grafana using environment variables in Docker, so I attempted to disable metrics by starting my container with  
`-e GF_METRICS_ENABLED=false`

Unfortunately, this didn’t seem to do anything and I can still access /metrics. Is there another way I can disable metrics?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![chinmoypadhi](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/chinmoypadhi/32/26904_2.png) [@chinmoypadhi](https://community.grafana.com/u/chinmoypadhi)\
**Post date:** [October 19, 2022, 3:36pm UTC](https://community.grafana.com/t/cannot-disable-metrics/9786/2 "2022-10-19T15:36:54Z")

</div>

what error you are seeing in your grafana logs.Did you check your settings.ini file  
Did you restart your container after applying the changes.  
I did the same in my Kubernetes cluster within the ConfigMap for environment variable and set the value to `GF_METRICS_ENABLED=false`  
Below I got the following output

 ![grafana_metrics](https://us1.discourse-cdn.com/grafana/original/3X/7/f/7f5dc2df86f35fb065812485844eccd66f31128d.jpeg)
