A Steadybit extension to integrate Grafana into Steadybit.
Learn about the capabilities of this extension in our Reliability Hub.
You need to have a Grafana service token. The token must have the following permissions:
- to read alert rules
- to read/write annotations
Environment Variable | Helm value | Meaning | Required | Default |
---|---|---|---|---|
STEADYBIT_EXTENSION_SERVICE_TOKEN |
grafana.serviceToken |
Grafana Service Token | yes | |
STEADYBIT_EXTENSION_API_BASE_URL |
grafana.apiBaseUrl |
Grafana API Base URL (example: https://yourcompany.grafana.io) | yes | |
STEADYBIT_EXTENSION_DISCOVERY_ATTRIBUTES_EXCLUDES_ALERTRULE |
discovery.attributes.excludes.alertrule |
List of Alert Rule Attributes which will be excluded during discovery. Checked by key equality and supporting trailing "*" | no |
The extension supports all environment variables provided by steadybit/extension-kit.
Detailed information about agent and extension installation in kubernetes can also be found in our documentation.
All extensions provide a helm chart that is also integrated in the helm-chart of the agent.
You must provide additional values to activate this extension.
--set extension-grafana.enabled=true \
--set extension-grafana.grafana.serviceToken="{{SERVICE_TOKEN}}" \
--set extension-grafana.grafana.apiBaseUrl="{{API_BASE_URL}}" \
Additional configuration options can be found in the helm-chart of the extension.
If you need more control, you can install the extension via its dedicated helm-chart.
helm repo add steadybit-extension-grafana https://steadybit.github.io/extension-grafana
helm repo update
helm upgrade steadybit-extension-grafana \
--install \
--wait \
--timeout 5m0s \
--create-namespace \
--namespace steadybit-agent \
--set grafana.serviceToken="{{SERVICE_TOKEN}}" \
--set grafana.apiBaseUrl="{{API_BASE_URL}}" \
steadybit-extension-grafana/steadybit-extension-grafana
This extension is currently not available as a Linux package.
Make sure that the extension is registered with the agent. In most cases this is done automatically. Please refer to the documentation for more information about extension registration and how to verify.
Do you provide the service account token to the extension ? Does the token still exists on Grafana ?
warning: If you want the service account token to survive a Grafana pod deletion or restart, you need to persist the Grafana data in a DB.