grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource

Claude Code and agent skill by grafana/grafana-infinity-datasource

Trust tier 2
  • community
LLM review pending
Source check pending

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-datasource

SKILL.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

  1. In Grafana, go to Connections → Data sources.
  2. Select your Infinity data source, or click Add new data source and choose

Infinity.

  1. 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:

PageContents
AuthenticationAuth type and its credential fields (see Authentication).
URL, Headers & ParamsBase URL, custom HTTP headers, custom query params, and kept cookies.
NetworkRequest timeout, TLS settings, and proxy.
SecurityAllowed hosts and unsecured-query handling (see Security).
Health checkOptional custom health-check URL (see Custom health check).
Reference dataNamed inline datasets reusable in queries.
Global queriesNamed queries reusable across panels.

URL, Headers & Params

SettingWhat it doesStored as
Base URLOptional. 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 headersHeader name/value pairs sent with every request. Values are secret.httpHeaderName{N} / httpHeaderValue{N} (secure)
URL query paramsQuery-string key/value pairs sent with every request. Values are secret.secureQueryName{N} / secureQueryValue{N} (secure)
Keep cookiesNames 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:

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
url: https://example.com/api
keepCookies:
- session_id
# Header/param names are stored in jsonData; their values are secret.
httpHeaderName1: X-Custom-Header
secureQueryName1: api_version
allowedHosts:
- https://example.com
secureJsonData:
httpHeaderValue1: my-header-value
secureQueryValue1: '2024-01-01'

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 typeauth_method valueUse it when…
No AuthnoneThe API is public and needs no credentials.
Basic AuthenticationbasicAuthThe API expects a username and password (Authorization: Basic …).
Bearer TokenbearerTokenThe API expects Authorization: Bearer <token> (JWT, PAT, etc.).
API Key Value pairapiKeyThe API expects a key/value pair in a header or query parameter.
Digest AuthdigestAuthThe API uses RFC 7616 HTTP Digest auth (username + password).
Forward OAuthoauthPassThruForward the Grafana user's existing OAuth identity token to the API.
OAuth2oauth2Machine-to-machine OAuth — Client Credentials, JWT, or another grant.
AWSawsThe API is an AWS signed endpoint (for example CloudWatch / monitoring).
Azure BlobazureBlobYou are reading data from Azure Blob Storage.
Allowed hosts requirement. Every method except No Auth and Azure Blob
requires you to list the target host under Allowed hosts (on the Security
page) unless you set a Base URL. If neither is set, queries are blocked. See
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.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
auth_method: none
Basic Authentication (basicAuth)

Sends Authorization: Basic <base64(user:password)>.

FieldStored as
User NamebasicAuthUser (jsonData)
PasswordbasicAuthPassword (secure)

A missing or empty password produces invalid or empty password detected on Save & test.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
basicAuth: true
basicAuthUser: my-user
jsonData:
auth_method: basicAuth
allowedHosts:
- https://api.example.com
secureJsonData:
basicAuthPassword: ${BASIC_AUTH_PASSWORD}
Bearer Token (bearerToken)

Sends Authorization: Bearer <token> exactly. Use this only when the API expects the literal Bearer prefix.

FieldStored as
TokenbearerToken (secure)

A missing or empty token produces invalid or empty bearer token detected.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
auth_method: bearerToken
allowedHosts:
- https://api.example.com
secureJsonData:
bearerToken: ${BEARER_TOKEN}
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.

FieldStored asNotes
KeyapiKeyKey (jsonData)Header name or query-parameter name.
ValueapiKeyValue (secure)The secret key value.
InapiKeyType (jsonData): header \queryWhether the pair is added as a header or query.

A missing key or value produces invalid API key specified.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
auth_method: apiKey
apiKeyKey: X-API-Key
apiKeyType: header # or: query
allowedHosts:
- https://api.example.com
secureJsonData:
apiKeyValue: ${API_KEY}
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.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
basicAuth: true
basicAuthUser: my-user
jsonData:
auth_method: digestAuth
allowedHosts:
- https://api.example.com
secureJsonData:
basicAuthPassword: ${DIGEST_PASSWORD}
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.

yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
auth_method: oauthPassThru
oauthPassThru: true
allowedHosts:
- https://api.example.com
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.

FieldStored asNotes
Client IDoauth2.client_id (jsonData)
Client Secretoauth2ClientSecret (secure)
Token URLoauth2.token_url (jsonData)The OAuth token endpoint.
Scopesoauth2.scopes (jsonData array)One or more scopes.
Auth Styleoauth2.authStyle (jsonData)0 Auto, 1 In Params (body), 2 In Header (basic auth on token).
Endpoint paramsoauth2EndPointParamsName{N} / oauth2EndPointParamsValue{N} (secure)Extra parameters sent to the token endpoint.
yaml
apiVersion: 1
datasources:
- name: Infinity
type: yesoreyeram-infinity-datasource
jsonData:
auth_method: oauth2
oauth2:
oauth2_type: client_credentials
client_id: my-client-id
token_url: https://api.example.com/oauth2/token
scopes:
- read
authStyle: 0 # 0 Auto, 1 In Params, 2 In Header
allowedHosts:
- https://api.example.com
secureJsonData:
oauth2ClientSecret: ${OAUTH2_CLIENT_SECRET}

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource/badge)](https://verified-skill.com/skills/grafana/grafana-infinity-datasource/configuring-yesoreyeram-infinity-datasource)

Something wrong with this skill or its page? Tell us.