Grafana

  • By Canonical Observability
Channel Revision Published Runs on
latest/stable 82 11 Sep 2023
Ubuntu 20.04
latest/candidate 92 11 Sep 2023
Ubuntu 20.04
latest/beta 92 11 Sep 2023
Ubuntu 20.04
latest/edge 92 08 Sep 2023
Ubuntu 20.04
1.0/stable 82 11 Sep 2023
Ubuntu 20.04
1.0/candidate 92 11 Sep 2023
Ubuntu 20.04
1.0/beta 92 11 Sep 2023
Ubuntu 20.04
1.0/edge 92 11 Sep 2023
Ubuntu 20.04
juju deploy grafana-k8s
Show information

Platform:

Get charmed Grafana up and running

To deploy Grafana using this operator you would need a juju microk8s controller bootstrapped.

Deploy Grafana

juju deploy --trust grafana-k8s grafana  # stable channel

--trust is required because the charm needs to modify grafana’s K8s resources.

Wait until the status settles to active/idle.

Verify deployment

Confirm the pebble service is running

juju exec --unit grafana/0 -- \
  PEBBLE_SOCKET=/charm/containers/grafana/pebble.socket \
  pebble plan

Obtain the admin password

juju run grafana/0 get-admin-password

# Or, programmatically,
juju run grafana/0 get-admin-password --format json \
  | jq -r '."grafana/0".results."admin-password"'

Query grafana endpoints

juju ssh --container grafana grafana/0 \
  curl localhost:3000

This should return Found.

List all dashboards:

juju ssh --container grafana grafana/0 \
  curl --user admin:$PASSWORD
  https://localhost:3000/api/search

Help us improve this documentation

Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.

Last updated 17 days ago. Help improve this document in the forum.