Search code examples
customizationgrafana

Use custom.ini with Grafana


I'm trying to use a customisation file (custom.ini) for my Grafana installation. Unfortunately this isn't working.

What I have done:

  1. Installed a VM with CentOS 7
  2. Added the Grafana Yum Repo as described in the official documentation
  3. Installed Grafana with

    yum install grafana

  4. Then I created a simple customisation file

    vi /etc/grafana/custom.ini

  5. With this content

    default_theme = light

  6. Restarted Grafana

    systemctl restart grafana-server

Unfortunately the theme has not changed from dark to light.

If I uncomment the same line in the /etc/grafana/grafana.ini then it is working correctly.

Any suggestions? Many Thanks


Solution

  • ...the parameter is /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini, also the custom.ini is not called at all. ...

    You were correct at this point in your comments: a custom.ini file is simply not used. The /etc/grafana/grafana.ini file is the custom config file for your platform (Yum repo = rpm package).

    See this comment by Grafana co-founder and the note in this docs section.