Grafana, Prometheus and Loki
Built Agents can read live from your monitoring: alerts, dashboards, metrics and logs. This page is about those reads. For Octryx AI's own metrics, see Metrics for Prometheus.Set it up
Admin › Connections › Add connection, with one connection per instance:
| Type | Fields |
|---|---|
| Grafana | Grafana URL and an API token |
| Prometheus | the URL; no sign-in |
| Loki | the URL; no sign-in |
Bind each connection to an instance label, for example prod-eu. An agent's call names the instance; a call without one is refused with the list of candidates, so an agent never reads the wrong environment by accident.
The Test button is not offered for these types yet.
What agents can do
| Tool | What it does | Kind |
|---|---|---|
| read Grafana alert, list Grafana alerts | alerts and their state | read |
| get dashboard JSON | a dashboard's definition | read |
| render panel as image | a panel as a picture, for the answer | read |
| create snapshot | a Grafana snapshot to share | write, needs confirmation |
| query Prometheus | a PromQL query over at most 24 hours and at most 1,000 points | read |
| query Loki | a LogQL query | read |
These reads are what the Incident / alert analysis workflow (shipped, but off on a fresh installation; a platform admin switches it on in Agents › Workflows) uses to collect evidence before it proposes a hypothesis; the hypothesis must cite its evidence.
