{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-agen-for-work/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["Notification","LightboxImage"]},"type":"markdown"},"seo":{"title":"Grafana integration","siteUrl":"https://developers.frontegg.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"grafana-integration","__idx":0},"children":["Grafana integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Prerequisites","type":"attention"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://grafana.com/auth/sign-in"},"children":["Grafana Cloud account"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Admin access to your Grafana instance"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"connect-grafana","__idx":1},"children":["Connect Grafana"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-1-open-the-administration-panel","__idx":2},"children":["Step 1: Open the Administration panel"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Log in to your Grafana instance and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Administration"]}," in the left sidebar to expand the administration menu."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-1.77ba996a6262e59376a4fbb097709f25932202b6fb73e8066264336b4c39366f.1ce25488.png","alt":"Grafana Administration panel"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-2-open-the-service-accounts-page","__idx":3},"children":["Step 2: Open the Service accounts page"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the Administration menu, click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Users and access"]},", then click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Service accounts"]},". The Service accounts page lists all existing service accounts for your instance."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-2.07c22bf0ed9519b8177df7b64b7d3fc8390dfcb53ae81893f473a72a13d1b979.1ce25488.png","alt":"Grafana Service accounts page"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-3-create-a-new-service-account","__idx":4},"children":["Step 3: Create a new service account"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add service account"]},". On the form that appears, enter a descriptive name in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Display name"]}," field (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Frontegg Integration"]},"), then click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-3.5e2211ee3041739f2c28199dd1e76504a55882723dd3430e2b1994405181ffb8.1ce25488.png","alt":"Grafana create service account form"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-4-add-a-service-account-token","__idx":5},"children":["Step 4: Add a service account token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After the service account is created, you are taken to the service account detail page. Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add service account token"]}," to create an API token for this service account."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-4.423e928c8c1bbeb452d5e5f6614c73f5fbf2e2df91514281f4435c8fd242e00a.1ce25488.png","alt":"Grafana service account detail page"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-5-generate-the-token","__idx":6},"children":["Step 5: Generate the token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the dialog that appears, enter a name for the token (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Frontegg Integration"]},") and choose an expiration option. Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No expiration"]}," to create a permanent token, or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Set expiration date"]}," to define a specific validity period. Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate token"]},"."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-5.23621a42b985f7736638e61dfce185dfc216549f29211803b04f0117e3019e2f.1ce25488.png","alt":"Grafana generate token dialog"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-6-copy-your-token","__idx":7},"children":["Step 6: Copy your token"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A dialog displays the generated token value. Copy the token and store it in a safe place."]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Copy your token now","type":"attention"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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."]}]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/grafana-6.4246f54950ca615af061ccc209e37a11de3901a7aeed93b1cbee490cfe391e6f.1ce25488.png","alt":"Grafana token created dialog"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"configure-the-frontegg-portal","__idx":8},"children":["Configure the Frontegg portal"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once you have obtained your Grafana service account token from the steps above, enter it in the integration configuration page of the Frontegg portal:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Frontegg portal"]}," and navigate to [ENVIRONMENT] → Integrations → Grafana."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the service account token in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API Key"]}," field."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter your Grafana instance URL in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Grafana instance URL"]}," field. Use the root URL of your Grafana stack — for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://mycompany.grafana.net"]}," for Grafana Cloud or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://grafana.your-company.com"]}," for a self-hosted instance. Do not include a trailing slash or an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api"]}," suffix."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Keep your token secure","type":"attention"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Never share or commit your service account token to version control."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":9},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://grafana.com/docs/grafana/latest/administration/service-accounts/"},"children":["Grafana service accounts documentation"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://grafana.com/docs/grafana/latest/developers/http_api/"},"children":["Grafana REST API documentation"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/agen-for-work/connectors/redirect-url"},"children":["How to get your Redirect URL"]}]}]}]}]},"headings":[{"value":"Grafana integration","id":"grafana-integration","depth":2},{"value":"Connect Grafana","id":"connect-grafana","depth":3},{"value":"Step 1: Open the Administration panel","id":"step-1-open-the-administration-panel","depth":4},{"value":"Step 2: Open the Service accounts page","id":"step-2-open-the-service-accounts-page","depth":4},{"value":"Step 3: Create a new service account","id":"step-3-create-a-new-service-account","depth":4},{"value":"Step 4: Add a service account token","id":"step-4-add-a-service-account-token","depth":4},{"value":"Step 5: Generate the token","id":"step-5-generate-the-token","depth":4},{"value":"Step 6: Copy your token","id":"step-6-copy-your-token","depth":4},{"value":"Configure the Frontegg portal","id":"configure-the-frontegg-portal","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3}],"frontmatter":{"seo":{"title":"Grafana integration"}},"lastModified":"2026-05-01T18:45:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/agen-for-work/connectors/marketplace/grafana","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}