Ceph Octopus - How to customize the Grafana configuration
Hello, I have installed and bootsraped a Ceph manager node via cephadm and the options: --initial-dashboard-user admin --initial-dashboard-password [PASSWORD] --dashboard-password-noupdate Everything works fine. I also have the Grafana Board to monitor my cluster. But the access to Grafana is open for anonymous users because of the grafana.ini template with the option: [auth.anonymous] enabled = true I can't figure out how to tweak the default grafana.ini file. Can someone help me how to do this? I tried to do this with the command: # ceph config-key set mgr/cephadm/services/grafana/grafana.ini \ -i /tmp//grafana.ini.j2 # ceph orch reconfig grafana But without any effect. I also did not really understand where I should place the grafana.ini file on my Host? Thanks for any help === Ralph --
Hi, you can edit the config file /var/lib/ceph/<UUID>/grafana.host1/etc/grafana/grafana.ini (created by cephadm) and then restart the container. This works in my octopus lab environment. Regards, Eugen Zitat von Ralph Soika <ralph.soika@imixs.com>:
Hello,
I have installed and bootsraped a Ceph manager node via cephadm and the options:
--initial-dashboard-user admin --initial-dashboard-password [PASSWORD] --dashboard-password-noupdate
Everything works fine. I also have the Grafana Board to monitor my cluster. But the access to Grafana is open for anonymous users because of the grafana.ini template with the option:
[auth.anonymous] enabled = true
I can't figure out how to tweak the default grafana.ini file. Can someone help me how to do this?
I tried to do this with the command:
# ceph config-key set mgr/cephadm/services/grafana/grafana.ini \ -i /tmp//grafana.ini.j2
# ceph orch reconfig grafana
But without any effect. I also did not really understand where I should place the grafana.ini file on my Host?
Thanks for any help
=== Ralph
-- _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Hi, thanks a lot for this hint! Yes I now can edit the file and restart the grafana host with # ceph orch stop grafana # ceph orch start grafana And the new configuration is used. What I expected was, that I can define a different path on my host like /home/grafana.ini that ceph will fetch during startup. But this seems to be impossible. You need to: 1. start the grafana with # ceph orch apply grafana 1 2. edit the file /var/lib/ceph/<UUID>/grafana.host1/etc/grafana/grafana.ini 3. restart grafana with # ceph orch stop grafana # ceph orch start grafana Thanks for your help === Ralph On 10.06.21 09:31, Eugen Block wrote:
Hi,
you can edit the config file /var/lib/ceph/<UUID>/grafana.host1/etc/grafana/grafana.ini (created by cephadm) and then restart the container. This works in my octopus lab environment.
Regards, Eugen
Zitat von Ralph Soika <ralph.soika@imixs.com>:
Hello,
I have installed and bootsraped a Ceph manager node via cephadm and the options:
--initial-dashboard-user admin --initial-dashboard-password [PASSWORD] --dashboard-password-noupdate
Everything works fine. I also have the Grafana Board to monitor my cluster. But the access to Grafana is open for anonymous users because of the grafana.ini template with the option:
[auth.anonymous] enabled = true
I can't figure out how to tweak the default grafana.ini file. Can someone help me how to do this?
I tried to do this with the command:
# ceph config-key set mgr/cephadm/services/grafana/grafana.ini \ -i /tmp//grafana.ini.j2
# ceph orch reconfig grafana
But without any effect. I also did not really understand where I should place the grafana.ini file on my Host?
Thanks for any help
=== Ralph
-- _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io --
You could play with the grafana-cli and see if it brings you anywhere. You seem to be able to override the default config file/directory, but I haven't tried that myself yet: ---snip--- host1:~ # podman exec c8167ed2efde grafana-cli --help NAME: Grafana CLI - A new cli application USAGE: grafana-cli [global options] command [command options] [arguments...] VERSION: 7.0.3 AUTHOR: Grafana Project <hello@grafana.com> COMMANDS: plugins Manage plugins for grafana admin Grafana admin commands help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --pluginsDir value Path to the Grafana plugin directory (default: "/var/lib/grafana/plugins") [$GF_PLUGIN_DIR] --repo value URL to the plugin repository (default: "https://grafana.com/api/plugins") [$GF_PLUGIN_REPO] --pluginUrl value Full url to the plugin zip file instead of downloading the plugin from grafana.com/api [$GF_PLUGIN_URL] --insecure Skip TLS verification (insecure) (default: false) --debug Enable debug logging (default: false) --configOverrides value Configuration options to override defaults as a string. e.g. cfg:default.paths.log=/dev/null --homepath value Path to Grafana install/home path, defaults to working directory --config value Path to config file --help, -h show help (default: false) --version, -v print the version (default: false) ---snip--- Zitat von Ralph Soika <ralph.soika@imixs.com>:
Hi,
thanks a lot for this hint! Yes I now can edit the file and restart the grafana host with
# ceph orch stop grafana # ceph orch start grafana
And the new configuration is used.
What I expected was, that I can define a different path on my host like /home/grafana.ini that ceph will fetch during startup. But this seems to be impossible. You need to:
1. start the grafana with # ceph orch apply grafana 1 2. edit the file /var/lib/ceph/<UUID>/grafana.host1/etc/grafana/grafana.ini 3. restart grafana with # ceph orch stop grafana # ceph orch start grafana
Thanks for your help
===
Ralph
On 10.06.21 09:31, Eugen Block wrote:
Hi,
you can edit the config file /var/lib/ceph/<UUID>/grafana.host1/etc/grafana/grafana.ini (created by cephadm) and then restart the container. This works in my octopus lab environment.
Regards, Eugen
Zitat von Ralph Soika <ralph.soika@imixs.com>:
Hello,
I have installed and bootsraped a Ceph manager node via cephadm and the options:
--initial-dashboard-user admin --initial-dashboard-password [PASSWORD] --dashboard-password-noupdate
Everything works fine. I also have the Grafana Board to monitor my cluster. But the access to Grafana is open for anonymous users because of the grafana.ini template with the option:
[auth.anonymous] enabled = true
I can't figure out how to tweak the default grafana.ini file. Can someone help me how to do this?
I tried to do this with the command:
# ceph config-key set mgr/cephadm/services/grafana/grafana.ini \ -i /tmp//grafana.ini.j2
# ceph orch reconfig grafana
But without any effect. I also did not really understand where I should place the grafana.ini file on my Host?
Thanks for any help
=== Ralph
-- _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io --
ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (2)
-
Eugen Block
-
Ralph Soika