grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource
Claude Code and agent skill by grafana/grafana-infinity-datasource
- community
Checking that the SKILL.md file is still in the repository.
Configure the Infinity data source — base URL and allowed hosts, the authentication methods (basic, bearer token, API key, digest, OAuth passthrough, OAuth 2.0 client credentials/JWT, Azure, Azure Blob, AWS), TLS, custom HTTP headers, network and security settings, the custom health check, and provisioning with a config file. Use when a user asks how to set up, configure, or change settings for the Infinity data source; how to authenticate to an API; how to allow hosts; how to provision it as YAML; or how to troubleshoot connection, authentication, or health-check issues.
Install
npx vskill@latest install grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasourceSKILL.md
The same SKILL.md was published earlier as grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource.
Configuring the Infinity data source
The Infinity data source is a universal plugin for pulling data from REST APIs and other systems (JSON, CSV, TSV, XML, GraphQL, HTML, Google Sheets, and more) into Grafana. It works out of the box with no configuration for public endpoints; configure it when you need authentication, custom headers, TLS, network restrictions, or a base URL shared across queries.
This skill explains how to configure the Infinity data source from the Grafana UI and how to provision it from a config file. The data source type is yesoreyeram-infinity-datasource.
Open the configuration page
- In Grafana, go to Connections → Data sources.
- Select your Infinity data source, or click Add new data source and choose
Infinity.
- Change the settings you need, then click Save & test.
Configuration applies to all queries that use this data source instance. If you need different settings (for example, different credentials) for different queries, create a separate Infinity data source instance.
The configuration UI is organized into pages in the left navigation:
| Page | Contents | |
|---|---|---|
| Authentication | Auth type and its credential fields (see Authentication). | |
| URL, Headers & Params | Base URL, custom HTTP headers, custom query params, and kept cookies. | |
| Network | Request timeout, TLS settings, and proxy. | |
| Security | Allowed hosts and unsecured-query handling (see Security). | |
| Health check | Optional custom health-check URL (see Custom health check). | |
| Reference data | Named inline datasets reusable in queries. | |
| Global queries | Named queries reusable across panels. |
URL, Headers & Params
| Setting | What it does | Stored as | |
|---|---|---|---|
| Base URL | Optional. Prefixed to every query URL. For example, base URL https://example.com/api plus query URL /users resolves to https://example.com/api/users. | url (jsonData) | |
| Custom HTTP headers | Header name/value pairs sent with every request. Values are secret. | httpHeaderName{N} / httpHeaderValue{N} (secure) | |
| URL query params | Query-string key/value pairs sent with every request. Values are secret. | secureQueryName{N} / secureQueryValue{N} (secure) | |
| Keep cookies | Names of cookies to forward from the incoming request to the upstream API. | keepCookies (jsonData array) |
Setting a Base URL also satisfies the Allowed hosts requirement for that host. Custom headers (other than Accept / Content-Type), custom query params, and kept cookies each independently require Allowed hosts to be set.
Provisioning example:
Authentication
On the Authentication page, pick an Auth type card that matches your API. The fields that appear below the cards change with the selected method. The available auth types are:
| Auth type | auth_method value | Use it when… | |
|---|---|---|---|
| No Auth | none | The API is public and needs no credentials. | |
| Basic Authentication | basicAuth | The API expects a username and password (Authorization: Basic …). | |
| Bearer Token | bearerToken | The API expects Authorization: Bearer <token> (JWT, PAT, etc.). | |
| API Key Value pair | apiKey | The API expects a key/value pair in a header or query parameter. | |
| Digest Auth | digestAuth | The API uses RFC 7616 HTTP Digest auth (username + password). | |
| Forward OAuth | oauthPassThru | Forward the Grafana user's existing OAuth identity token to the API. | |
| OAuth2 | oauth2 | Machine-to-machine OAuth — Client Credentials, JWT, or another grant. | |
| AWS | aws | The API is an AWS signed endpoint (for example CloudWatch / monitoring). | |
| Azure Blob | azureBlob | You are reading data from Azure Blob Storage. |
Allowed hosts requirement. Every method except No Auth and Azure Blobrequires you to list the target host under Allowed hosts (on the Securitypage) unless you set a Base URL. If neither is set, queries are blocked. SeeSecurity and Allowed hosts.
No Auth (none)
No credentials are sent. Use for public APIs. Allowed hosts is not required for the auth method itself, but may still be required if you enable TLS, custom headers, custom query params, or kept cookies.
Basic Authentication (basicAuth)
Sends Authorization: Basic <base64(user:password)>.
| Field | Stored as | |
|---|---|---|
| User Name | basicAuthUser (jsonData) | |
| Password | basicAuthPassword (secure) |
A missing or empty password produces invalid or empty password detected on Save & test.
Bearer Token (bearerToken)
Sends Authorization: Bearer <token> exactly. Use this only when the API expects the literal Bearer prefix.
| Field | Stored as | |
|---|---|---|
| Token | bearerToken (secure) |
A missing or empty token produces invalid or empty bearer token detected.
API Key Value pair (apiKey)
Sends an arbitrary key/value either as a header or as a query string parameter. Use this when the API needs a custom header name (for example X-API-Key), a non-Bearer prefix, or the key passed in the URL.
| Field | Stored as | Notes | ||
|---|---|---|---|---|
| Key | apiKeyKey (jsonData) | Header name or query-parameter name. | ||
| Value | apiKeyValue (secure) | The secret key value. | ||
| In | apiKeyType (jsonData): header \ | query | Whether the pair is added as a header or query. |
A missing key or value produces invalid API key specified.
Digest Auth (digestAuth)
HTTP Digest authentication (RFC 7616). Same fields as Basic Authentication (User Name + Password, stored in basicAuthUser / basicAuthPassword), but the Digest challenge/response handshake is used instead of Basic.
Forward OAuth (oauthPassThru)
Forwards the OAuth identity token of the currently signed-in Grafana user to the API. No credential fields are shown; Grafana must be configured with an OAuth provider and the user must have a valid token. Sets oauthPassThru: true in jsonData.
OAuth2 (oauth2)
Selecting OAuth2 reveals a Grant type selector with three options:
Client credentials (oauth2_type: client_credentials)
Machine-to-machine flow. Infinity fetches a token from the token URL and attaches it to each request.
| Field | Stored as | Notes | |
|---|---|---|---|
| Client ID | oauth2.client_id (jsonData) | ||
| Client Secret | oauth2ClientSecret (secure) | ||
| Token URL | oauth2.token_url (jsonData) | The OAuth token endpoint. | |
| Scopes | oauth2.scopes (jsonData array) | One or more scopes. | |
| Auth Style | oauth2.authStyle (jsonData) | 0 Auto, 1 In Params (body), 2 In Header (basic auth on token). | |
| Endpoint params | oauth2EndPointParamsName{N} / oauth2EndPointParamsValue{N} (secure) | Extra parameters sent to the token endpoint. |
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/configuring-yesoreyeram-infinity-datasource/SKILL.md
Popularity
- Repository stars
- 1,053
- Repository forks
- 148
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource)