Grafana Integration
NudgeBee can integrate with Grafana to surface dashboards directly in the NudgeBee UI.
Configuration
-
Fetch Grafana admin password
kubectl get secret grafana \-n <grafana-namespace> \-o jsonpath="{.data.admin-password}" \| base64 --decode && echo -
Create or update your
values.yamlrunner:grafana:url: "http://grafana.grafana.svc"username: "admin"password: "<GRAFANA_PASSWORD>"# optional, semicolon-separated: "X-Org-Id: 2;X-Custom: value"extra_headers: ""Setting
urlis what enables the integration; there is noenabledflag. -
Apply configuration and upgrade the agent
- Using shell script:
Add the other flags you used for the original install (for examplebash installation.sh -a <NUDGEBEE_AUTH_KEY> -f values.yaml
-g true -x true -t true); the script does not remember them. - Using Helm:
Ifhelm repo add nudgebee-agent https://nudgebee.github.io/k8s-agent/helm repo updatehelm upgrade nudgebee-agent nudgebee-agent/nudgebee-agent \--namespace nudgebee-agent \--reuse-values \-f values.yaml
values.yamlholds only these settings, keep--reuse-values: it preserves the auth key and the flags from your original install, which Helm otherwise resets. If you maintain a complete values file that includesrunner.nudgebee.auth_secret_key, drop--reuse-valuesand pass that file instead.
- Using shell script:
Replace
<GRAFANA_PASSWORD>and<NUDGEBEE_AUTH_KEY>with your actual values, and adjust the Grafana namespace if it differs fromgrafana.