Grafana is an open-source observability platform for visualizing metrics, logs, and traces. Integrating Grafana with Frontegg allows your application to access dashboards, data sources, alerts, and annotations on behalf of your users using a Grafana service account token.
Prerequisites
Prerequisites
- A Grafana Cloud account
- Admin access to your Grafana instance
Log in to your Grafana instance and click Administration in the left sidebar to expand the administration menu.

In the Administration menu, click Users and access, then click Service accounts. The Service accounts page lists all existing service accounts for your instance.

Click Add service account. On the form that appears, enter a descriptive name in the Display name field (for example, Frontegg Integration), then click Create.

After the service account is created, you are taken to the service account detail page. Click Add service account token to create an API token for this service account.

In the dialog that appears, enter a name for the token (for example, Frontegg Integration) and choose an expiration option. Select No expiration to create a permanent token, or Set expiration date to define a specific validity period. Click Generate token.

A dialog displays the generated token value. Copy the token and store it in a safe place.
Copy your token now
Copy your token now
This is the only time Grafana will display the token value. If you lose it, you will need to delete the token and create a new one.

Once you have obtained your Grafana service account token from the steps above, enter it in the integration configuration page of the Frontegg portal:
- Open the Frontegg portal and navigate to [ENVIRONMENT] → Integrations → Grafana.
- Enter the service account token in the API Key field.
- Enter your Grafana instance URL in the Grafana instance URL field. Use the root URL of your Grafana stack — for example,
https://mycompany.grafana.netfor Grafana Cloud orhttps://grafana.your-company.comfor a self-hosted instance. Do not include a trailing slash or an/apisuffix. - Click Save.
Keep your token secure
Keep your token secure
Never share or commit your service account token to version control.