Grafana

  • By Canonical Observability
Channel Revision Published Runs on
latest/stable 98 23 Feb 2024
Ubuntu 20.04
latest/candidate 98 23 Feb 2024
Ubuntu 20.04
latest/beta 105 16 Feb 2024
Ubuntu 20.04
latest/edge 105 15 Feb 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
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 5 months ago.