Grafana
Connect
Connect Grafana from the terminal. Pass --help for the flags Grafana accepts.
praxen integration connect --type grafanaA stack URL and a service account token with the Editor role.
Connect Grafana so agents can read your dashboards, query your datasources, and inspect Grafana alerting.
Setup
- Find your stack URL in the Grafana Cloud portal, like https://yourstack.grafana.net.
- In your Grafana stack, open Administration → Users and access → Service accounts.
- Create a service account with the Editor role. Editor lets agents read dashboards, query datasources, and create annotations, and lets Praxen Inc. subscribe to your Grafana alerts.
- Add a token to the service account and paste both values into Praxen Inc. Praxen Inc. validates them against your stack and connects.
Your token is encrypted before it is stored, and the agent never sees it.
Grafana Cloud free-tier stacks hibernate after inactivity. If validation reports the stack is unreachable, open it in your browser once and retry.
Alerts and continuous monitoring
On connect, Praxen Inc. provisions a webhook contact point in your stack and adds a catch-all route to your notification policy tree. The route matches every alert and continues to your existing routes, so your current delivery is untouched, and alert rules you create later notify Praxen Inc. automatically. Firing alerts land in your workspace, get triaged, and can start investigations.
Praxen Inc. also reads every dashboard and runs each panel query continuously as an anomaly check, and uses your Grafana datasources to write signals for the operations your dashboards miss.
What agents can do
- Search dashboards and read their panel definitions and queries
- List datasources and run health checks
- Run PromQL, LogQL, TraceQL, and other datasource-native queries through Grafana's query proxy
- Inspect alert rules, their live state and health, and the alerts firing right now
- Read chart annotations, and create new ones for deploys and incident windows
Disconnecting
Disconnect Grafana in Praxen Inc.; it removes the contact point and notification policy route it provisioned. Then delete the service account token in Grafana. If the route is in Terraform, drop it at the same time.
Register Grafana alerts to Praxen Inc. alongside your Terraform-managed resources.
An hourly reconciliation keeps the praxen contact point and its catch-all policy route in place. The grafana_notification_policy resource manages the entire policy tree, so a Terraform apply that omits the route removes it and the reconciliation adds it back. Carry the route as the first policy in your tree, with continue = true so your own routes still receive everything, and leave the contact point itself to Praxen Inc.:
resource "grafana_notification_policy" "tree" {
# ...
policy {
contact_point = "praxen"
continue = true
}
# your existing routes follow
}
Alert rules need no per-rule setup: the route matches every alert. Disconnecting the integration removes the contact point and the route, so drop the route from Terraform configs at the same time.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Praxen Inc. held. Everything Praxen Inc. set up in Grafana is removed as well; nothing is left behind.
praxen integration disconnect <id>Tools
6Operations agents can perform in threads.