Loading

Grafana Integration

Version 0.1.0 (View all)
Subscription level
What's this?
Basic
Developed by
What's this?
Community
Ingestion method(s) File, Prometheus
Minimum Kibana version(s) 9.0.0
8.16.0
The Grafana integration v0.1.0 is in beta

To use beta integrations, go to the Integrations page in Kibana, scroll down, and toggle on the Display beta integrations option.

The Grafana integration collects metrics and logs from Grafana instances using Elastic Agent.

This integration has been tested with Grafana versions 10.x, 11.x, and 12.x.

The metrics data stream scrapes Prometheus metrics from Grafana's /metrics endpoint. It collects application-level metrics (HTTP performance, alerting, datasource requests, database connections, instance stats) and Go runtime metrics (CPU, memory, goroutines, file descriptors).

Grafana must have metrics enabled (GF_METRICS_ENABLED=true or [metrics] enabled = true in grafana.ini). Metrics are enabled by default.

ECS Field Reference

Refer to the following document for detailed information on ECS fields.

The logs data stream collects Grafana server logs from file. Both JSON and logfmt (the default) formats are supported. To use JSON logging, set format = json under [log.file] in grafana.ini or set the GF_LOG_FILE_FORMAT=json environment variable.

ECS Field Reference

Refer to the following document for detailed information on ECS fields.

  1. Add the Grafana integration in Fleet.
  2. Configure the Grafana Hosts to point at your Grafana instance(s), for example http://grafana:3000.
  3. For logs, set the Log Paths to the location of your Grafana log file(s), for example /var/log/grafana/grafana.log.
  4. If your /metrics endpoint requires authentication, provide the Username and Password.

The integration includes two dashboards:

  • [Grafana] Overview — Instance stats, CPU, memory, goroutines, file descriptors, database connections, and alerting status.
  • [Grafana] Logs — Log volume by level, top error messages, component breakdown, HTTP status codes, and request paths.

This integration includes one or more Kibana dashboards that visualizes the data collected by the integration. The screenshots below illustrate how the ingested data is displayed.