Grafana Quick Start

Docker Compose Demo

Github repo: https://github.com/chengdol/InfraTree/tree/master/docker-monitoring

The steps are in README.

Grafana

Grafana document: https://grafana.com/docs/grafana/latest/

Grafana docker image: https://grafana.com/docs/grafana/latest/installation/docker/

  • Running in container
  • Connecting to Prometheus
  • Visualizing query results
  • Packaging the dashboard

Grafana support querying time-series database like prometheus and influxdb, also support Elasticsearch logging & analytics database.

1
2
3
## pull image alpine based
docker pull grafana/grafana:7.0.0
docker run --detach --name=grafana --publish-all grafana/grafana:7.0.0

The default login is admin/admin. After login, go to set Data Sources, select prometheus and specify the url, then import data in dashboard.

Readings

  • Grafana vs. Kibana: The Key Differences to Know The key difference between the two visualization tools stems from their purpose. Grafana is designed for analyzing and visualizing metrics such as system CPU, memory, disk and I/O utilization. Grafana does not allow full-text data querying. Kibana, on the other hand, runs on top of Elasticsearch and is used primarily for analyzing log messages.
0%