Grafana

  • Canonical Observability
Channel Revision Published Runs on
latest/stable 117 10 Sep 2024
Ubuntu 20.04
latest/candidate 117 28 Jun 2024
Ubuntu 20.04
latest/beta 122 19 Nov 2024
Ubuntu 20.04
latest/edge 126 29 Nov 2024
Ubuntu 20.04
1.0/stable 93 12 Dec 2023
Ubuntu 20.04
1.0/candidate 93 22 Nov 2023
Ubuntu 20.04
1.0/beta 93 22 Nov 2023
Ubuntu 20.04
1.0/edge 93 22 Nov 2023
Ubuntu 20.04
juju deploy grafana-k8s --channel beta
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 improve this document in the forum (guidelines). Last updated 1 year, 2 months ago.