Projects / Grafana Intelligence Gateway

Grafana Intelligence Gateway

AI-assisted Grafana panel for OpenAI, LM Studio, compatible APIs, and Copilot messaging endpoints

By Dan Roberts · DigitalRCS

What it solves

Grafana Intelligence Gateway turns time-series and table query results into focused AI assessments, keeping operational context alongside the dashboard that produced it.

Architecture

The panel serializes Grafana DataFrames and sends prompts through Grafana's authenticated resource API to a required companion AI data source. Provider credentials live in Grafana secureJsonData. The panel stores the data-source UID and non-secret generation choices; decrypted credentials are kept out of dashboard JSON and browser code.

Key capabilities

  • Manual analysis and optional debounced automatic analysis
  • Prompt templates with time range, panel, data, and reusable context variables
  • Context-size controls, cancellation, and bounded buffered responses
  • Sanitized Markdown assessments and a live constructed-prompt preview

How to use it

Install and configure the companion secure AI data source, select it in the panel, and connect query results. To reuse another panel's data, use Grafana's built-in Dashboard data source. Reduce or reshape the input with transformations, set context limits, and select Analyze.

Requirements and limitations

The provisioned mock provider verifies connectivity but does not perform AI analysis. A real configured provider is required for an assessment. Provider endpoint policy and credentials belong to the companion data source. A source-panel title or ID hint labels the prompt; it does not retrieve that panel's results.

Technologies

TypeScript · Grafana · React · OpenAI · LM Studio

Explore more work

TimeOverlay: signed Grafana Community plugin

All projects by Dan Roberts