Skip to content

Reference

Grafana

Connect Grafana to Alter Vault for secure API access

Use Grafana credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDgrafana
CategoryMonitoring & Observability
Credential TypeBearer Token

Log in to Grafana Cloud

Log in to Grafana Cloud at grafana.com/auth/sign-in.

Open your Grafana instance

Open your Grafana instance and go to Administration → Service Accounts.

Create a service account

Follow the Grafana service-account guide to create a service account and add a token.

Copy your token

Copy the generated token (starts with glsa_).

Enter your Grafana domain

Enter your Grafana domain in the Grafana Domain field (e.g. your-stack.grafana.net).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Grafana

Go to Managed Secrets > Add Provider > Grafana.

Enter credentials

Paste your Service Account Token and Grafana Domain into their respective fields.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://YOUR_GRAFANA_STACK.grafana.net/api/dashboards/home",
grant_id="YOUR_GRANT_ID",
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
searchreadGET/search
getDashboardByUIDreadGET/dashboards/uid/{uid}
getDashboardVersionsByUIDreadGET/dashboards/uid/{uid}/versions
postDashboardwritePOST/dashboards/db
importDashboardwritePOST/dashboards/import
deleteDashboardByUIDdeleteDELETE/dashboards/uid/{uid}
getFoldersreadGET/folders
getFolderByUIDreadGET/folders/{folder_uid}
createFolderwritePOST/folders
moveFolderwritePOST/folders/{folder_uid}/move
deleteFolderdeleteDELETE/folders/{folder_uid}
getAnnotationsreadGET/annotations
postAnnotationwritePOST/annotations
patchAnnotationwritePATCH/annotations/{annotation_id}
deleteAnnotationByIDdeleteDELETE/annotations/{annotation_id}
massDeleteAnnotationsdeletePOST/annotations/mass-delete
getDataSourcesreadGET/datasources
getDataSourceByUIDreadGET/datasources/uid/{uid}
addDataSourceadminPOST/datasources
deleteDataSourceByUIDadmin, deleteDELETE/datasources/uid/{uid}
queryMetricsWithExpressionsreadPOST/ds/query
getCurrentOrgreadGET/org
getOrgUsersForCurrentOrgreadGET/org/users
addOrgUserToCurrentOrgadminPOST/org/users
removeOrgUserForCurrentOrgadmin, deleteDELETE/org/users/{user_id}
searchUsersreadGET/users
searchTeamsreadGET/teams/search
createTeamadminPOST/teams
addTeamMemberadminPOST/teams/{team_id}/members
removeTeamMemberadmin, deleteDELETE/teams/{team_id}/members/{user_id}
createServiceAccountadminPOST/serviceaccounts
createTokenadminPOST/serviceaccounts/{serviceAccountId}/tokens
deleteServiceAccountadmin, deleteDELETE/serviceaccounts/{serviceAccountId}
getHealthreadGET/health

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.