Integrations

Grafana

Search and read dashboards, run a data source query, and list alert rules, firing alerts and annotations. Read only.

Where it works

Any Grafana, wherever it is hosted. Grafana usually lives on a company’s own address, so XataWorks recognises it from the page itself and offers nothing until a signed-in read succeeds.

Open the site in XataWorks Browser and the tools below appear in the page-tools list in the browser’s toolbar, ready for the agent in any chat that has the tab. There is nothing to install or switch on.

How it works

The tools call Grafana’s own HTTP API from the page, with the session you are already signed in with — no service account, no API key.

Tools

Each tool with the name XataWorks shows you, the name the agent uses, and the first sentence of the description the agent reads. You do not call them yourself: ask for what you want in your own words, and the agent picks the tool. Before one runs, XataWorks asks you, according to its class; Approvals and permissions explains the question and each answer.

Reads Read only

These only look things up.

  • Report Grafana adapter capabilities get_capabilitiesReport what this Grafana adapter detected and whether the browser session can reach the Grafana API.
  • Report what is on screen in Grafana get_current_contextReport the dashboard, panel and time range currently on screen, derived from the page route.
  • Search Grafana dashboards search_dashboardsSearch dashboards and folders by title or tag.
  • Read a Grafana dashboard get_dashboardRead one dashboard: title, folder, and its panels with each panel type, datasource and declared query text.
  • List Grafana datasources list_datasourcesList the datasources this Grafana user can see, with the family each belongs to and whether run_datasource_query will accept it.
  • Run a Grafana datasource query run_datasource_queryRun a read query against a metric (Prometheus- or Graphite-family) or log (Loki-family) datasource over an explicit time range, and return the resulting series or log lines.
  • List Grafana alert rules list_alert_rulesList this Grafana instance’s alert rules.
  • List firing Grafana alerts list_firing_alertsList the alerts currently firing, with rule name, state, since-time and labels.
  • List Grafana annotations list_annotationsList annotations over a time range, optionally for one dashboard — what was recorded around the moment something broke.
  • Build a Grafana dashboard link build_dashboard_linkBuild a shareable link to a dashboard, optionally one panel, at a time range.
  • Report Grafana instance information get_instance_infoReport this Grafana instance’s version, edition and base path — what a tool that behaves unexpectedly on an older or newer Grafana should be diagnosed against.

See Page tools in the user guide for how to see what a tab offers, or every integration.