Managed secret providers
Grafana
Connect Grafana to Alter Vault for secure API access
Overview
Section titled “Overview”Use Grafana credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | grafana |
| Category | Monitoring & Observability |
| Credential Type | Bearer Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”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
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).
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”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.
Using in Code
Section titled “Using in Code”response = await alter_app.request( HttpMethod.GET, "https://YOUR_GRAFANA_STACK.grafana.net/api/dashboards/home", grant_id="YOUR_GRANT_ID",)