Skip to main content
With ResolveAI’s Grafana integration, you don’t need to maintain separate integrations for each data source like Loki, Prometheus, or Tempo. Once Grafana is connected, all its data sources are seamlessly integrated.
Prerequisite: The Resolve Satellite should be installed in your environment.

Create a Service Account Token

To access your Grafana environment a service account token is needed. If you don’t already have a service account, please create one: How to create a service account. There are two options for creating your service account token.
If you are running Grafana Enterprise, for some endpoints you might need to have specific permissions. Refer to Role-based access control permissions documentation for more information. For Grafana Cloud instances, you can use a Bearer token to authenticate.

Create a Service Account through the API

Official documentation: How to create to Grafana service account via APIRun the following command. Please ensure that you replace the following properties:
  • grafana-instance: This is your Grafana endpoint.
  • auth-api-key: This is your authorization token for accessing the API (if applicable).
create service account api
The response will include the new Service Account Id. Please take a note of it.
create service account api response

Create a token for your Service Account via the API

Official documentation: How to create to Grafana service account token via APIRun the following command. Please ensure that you replace the following properties:
  • grafana-instance: This is your Grafana endpoint.
  • id: This is your service account id for which a token will be created.
  • auth-api-key: This is your authorization token for accessing the API (if applicable).
The response will include the new API key. Securely store this key immediately, as it won’t be displayed again.
token creation api response

Configure the Grafana Integration in Resolve Satellite

Below is an example of how to setup the Grafana integration in the satellite with the url property as well as using the k8s secret (potentially backed by an AWS secret manager or another mechanism) for authentication. The secret format in this example is for a Grafana Service Account token.
1

Create a Kubernetes secret

Create a Kubernetes secret of the following form. Note that the structure of the secret is important and for a Service Account token for Grafana integration, it must have the top-level key token: ‘token-value’.
secret creation
Security Best Practice: Never store credentials in plaintext in configuration files or source control. Always use Kubernetes secrets and encrypt etcd or use enterprise secret management systems. See Secret Management for detailed guidance.
To apply the secret run
apply secret
2

Configure your Grafana Token and URLs in the Resolve Satellite

Update your helm values override file with the following information (e.g.: resolve-values.yaml)
resolve-values.yaml
Install the satellite and apply the values from the yaml file that you have just updated. e.g.: resolve-values.yaml. To find the latest version, visit ResolveAI’s docker hub repository for the helm chart and satellite image.
apply config to satellite and redeploy
Once your satellite is deployed, we will automatically create an integration instance for you.
3

Verify your integration status in ResolveAI

Login to https://app0.resolve.ai/. Go to the integrations page and and select “Grafana”You should see an automatically created integration based on the provided configuration.

Send alerts to ResolveAI via webhook

If you use Grafana to manage your alerts, follow the steps to complete the alert integration for your environment.
Note: If you want to integrate directly with specific alerting sources, such as Prometheus AlertManager or Loki, ensure you follow the webhook instructions in each platform’s installation guide.
1

Go to the Grafana integration

Go to the Grafana integration you have set up and click into it.
2

Scroll down to the Webhooks section

Scroll down to the Webhooks section. Click “Edit”.
3

Add a new Webhook token

Click on the ”+” icon to add a new Webhook token. Click “Save”.
4

Add a new webhook integration in Grafana Cloud

Follow the instructions to add a new webhook integration in Grafana Cloud, and create a new Notification Policy.