Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Use Grafana credentials to make authenticated API calls through Alter Vault without exposing your API keys in code.
PropertyValue
Provider IDgrafana
CategoryMonitoring & Observability
Credential TypeBearer Token

Step 1: Get Your Credentials

1

Log in to Grafana Cloud

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

Open your Grafana instance

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

Create a service account

Create a service account and add a token.
4

Copy your token

Copy the generated token (starts with glsa_).
5

Enter your Grafana domain

Enter your Grafana domain in the Grafana Domain field (e.g. your-stack.grafana.net).
Never share your credentials publicly. Store them securely and only enter them in the Alter Vault Developer Portal.

Step 2: Add to Alter Vault

1

Open the Developer Portal

Go to portal.alterauth.com and navigate to your app.
2

Add Grafana

Go to Managed Secrets > Add Provider > Grafana.
3

Enter your credentials

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

Save

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

Using in Code

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