I'm trying to use a customisation file (custom.ini) for my Grafana installation. Unfortunately this isn't working.
What I have done:
Installed Grafana with
yum install grafana
Then I created a simple customisation file
vi /etc/grafana/custom.ini
With this content
default_theme = light
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
Configuration file location Depending on your OS, your custom configuration file is either the $WORKING_DIR/conf/defaults.ini file or the /usr/local/etc/grafana/grafana.ini file. The custom configuration file path can be overridden using the --config parameter.
Configure the smtp section of your custom. ini file as follows: Uncomment the enabled line (by removing the semicolon at the beginning of the line) and enter enabled = true. Uncomment the host line and enter host = smtp.
...the parameter is
/usr/sbin/grafana-server --config=/etc/grafana/grafana.ini
, also thecustom.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With