Grafana
- Canonical Observability
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 117 | 10 Sep 2024 | |
latest/candidate | 117 | 28 Jun 2024 | |
latest/beta | 122 | 19 Nov 2024 | |
latest/edge | 122 | 18 Nov 2024 | |
1.0/stable | 93 | 12 Dec 2023 | |
1.0/candidate | 93 | 22 Nov 2023 | |
1.0/beta | 93 | 22 Nov 2023 | |
1.0/edge | 93 | 22 Nov 2023 |
juju deploy grafana-k8s --channel 1.0/beta
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
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