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 | ## pull image alpine based |
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.