``cephadm`` deploys Grafana using the certificate defined in the ceph
key/value store. If no certificate is specified, ``cephadm`` generates a
-self-signed certificate during the deployment of the Grafana service.
+self-signed certificate during the deployment of the Grafana service. Each
+certificate is specific for the host it was generated on.
A custom certificate can be configured using the following commands:
.. prompt:: bash #
- ceph config-key set mgr/cephadm/grafana_key -i $PWD/key.pem
- ceph config-key set mgr/cephadm/grafana_crt -i $PWD/certificate.pem
+ ceph config-key set mgr/cephadm/{hostname}/grafana_key -i $PWD/key.pem
+ ceph config-key set mgr/cephadm/{hostname}/grafana_crt -i $PWD/certificate.pem
+
+Where `hostname` is the hostname for the host where grafana service is deployed.
If you have already deployed Grafana, run ``reconfig`` on the service to
update its configuration: