Skip to content

Start building

Integration · Developer

AI agents for Grafana

Search dashboards and folders, query any data source (PromQL, LogQL, SQL and more), read alert rules and alert history, and add annotations, on Grafana Cloud or your own Grafana, with a service account token.

Actions
10
Read
9
Write
1

Actions

What your agents can do in Grafana

10 actions. Each one is a tool your agents can call and a step your workflows can run.

Read 9

Look things up. Nothing changes.

  • Search dashboards

    Searches dashboards (or folders) by title, tags, folder or starred, as result.

  • Get a dashboard

    Reads one dashboard by uid: dashboard (title, tags, time range, variables in templating, and panels, each with its title, type, data source and queries in targets) and meta.

  • List folders

    Lists dashboard folders as result: each with its uid, title and id.

  • List data sources

    Lists the organization's data sources as result: each with its uid, name, type (like prometheus, loki, elasticsearch, postgres, cloudwatch), type name, URL, database and whether it is the default.

  • Run a PromQL or LogQL query

    Runs one PromQL query on a Prometheus (or Grafana Cloud Metrics) data source, or a LogQL query on a Loki data source, over a time range.

  • Query a data source

    Runs one or more queries through Grafana on any data source, the way a panel does.

  • List alert rules

    Lists Grafana-managed alert rules as result: each with its uid, title, folder (folderUID), rule group, condition, the queries in data, labels, annotations.

  • Get an alert rule

    Reads one Grafana-managed alert rule by uid: title, folder, rule group, condition and queries.

  • List annotations

    Lists annotations, newest first: notes people or tools put on graphs (deploys, incidents) with type.

Write 1

Create, change or send.

  • Add an annotation

    Adds an annotation, a marker on graphs at a time (or a time range) with text and tags, like "Deployed checkout v2.4" tagged deploy.

A person can approve first

Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything.

Connection

How it connects

Connect it once in the console, then give it to the agents and workflows that need it.

API key

Paste an API key from your Grafana account.

What you enter

  • Service account token

Settings

  • Grafana address

Kept safe

  • Credentials are stored encrypted with your organization's own keys.
  • They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
  • Calls go only to the tool's own servers.

How we protect your data

Ideas

Ideas to start with

Starting points made only from the actions above. Mix them with any other tool your agents can use.

  • 01

    Ask about your Grafana data

    Ask a question in plain words. The agent can search dashboards, get a dashboard or list folders in Grafana, then answers with what it found.

  • 02

    Let an agent update Grafana

    Have the agent add an annotation in Grafana as part of a larger task. Turn on approval and a person signs off on each change first.

  • 03

    Share what it finds in Slack

    Give one agent Grafana and Slack: it can search dashboards in Grafana and post a summary to a Slack channel in the same run.

FAQ

Grafana and MyDeepAgents

Can MyDeepAgents connect to Grafana?

Yes. The Grafana connector has 10 actions: 9 read and 1 makes changes. Your agents can call them as tools, and your workflows can run them as steps.

How do I connect Grafana?

Paste an API key from your Grafana account. You'll need: Service account token. The connection also asks for: Grafana address. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.

Can an agent change data in Grafana without asking?

Only if you let it. Its one action that changes data can be set to wait for a person's approval before it runs.

Can I use Grafana in workflows as well as agents?

Yes. Every Grafana action also works as a step in a workflow, and the same connection serves your agents and your workflows.

Early access

Put Grafana to work

Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.