Icon for n8nIcon for Grafana

n8n + Grafana: workflow automation with observability

Integrates withCurated

n8n and Grafana integrate in both directions: Grafana alert webhooks can trigger n8n workflows, and n8n workflows can push data to the databases Grafana reads from, or annotate Grafana dashboards to mark automation events.

How it works

Grafana fires an alert webhook → n8n MQTT or Webhook Trigger receives it → n8n applies routing logic (escalate, log, notify) → n8n writes results back to PostgreSQL/InfluxDB → Grafana dashboard reflects the update.

n8n can also annotate Grafana directly via the Grafana HTTP API node, marking workflow execution events (e.g., "batch job completed", "anomaly detected") as timeline annotations visible on dashboards.

Use cases

  • Alert-to-ticket: Grafana threshold alert → n8n → Jira/ServiceNow ticket creation
  • Dashboard annotation: n8n batch job completion → Grafana annotation via HTTP API
  • Data enrichment: n8n processes raw sensor data → writes enriched records to InfluxDB → Grafana displays enriched metrics
  • Report generation: n8n scheduled workflow queries Grafana API for panel data → compiles into PDF report

Tradeoffs

  • Grafana has no built-in workflow engine; n8n fills that gap but requires a separate deployment
  • The integration is loosely coupled via webhooks and shared databases — reliable but not real-time sub-second
  • For complex alert routing, dedicated alertmanager tools (PagerDuty, OpsGenie) may be preferred over n8n