Compose-Examples/examples/grafana-monitoring/README.md

19 lines
1.5 KiB
Markdown
Raw Normal View History

2023-02-15 21:45:31 +00:00
# References
2023-02-23 00:02:20 +00:00
2023-02-15 21:45:31 +00:00
- https://blog.lrvt.de/monitoring-dashboard-with-grafana-telegraf-influxdb-and-docker/
- https://blog.lrvt.de/log-visualization-with-grafana-loki-promtail/
# Notes
Spawning up this docker stack will provide you with:
- A containerized Grafana web instance runnning on the default port TCP/3000
2023-03-01 11:05:41 +00:00
- A containerized Telegraf instance that fetches data points from your docker host server
- A containerized InfluxDB instance for storing Telegraf data, which can be defined in Grafana as datasource (just specify `http://influxdb:8086`). Default database is `telegraf`. Default username is `telegrafuser`. Default password is `MyStrongTelegrafPassword`. Defaults can be changed in `/volume-data/influxdb/init/create-database.iql`.
2023-02-24 21:11:32 +00:00
- A containerized Promtail instance that can fetch various log files (bind mounted into the promtail container from your docker host server) and send them into the Loki container (e.g. /var/log/auth.log or your Traefik reverse proxy logs)
- A containerized Loki instance for storing Promtail log data, which can be defined in Grafana as datasource (just specify `http://loki:3100`). No authentication enabled per default.
Finally, after configuring InfluxDB and Loki as datasources on Grafana, you can just import the provided `Grafana_Dashboard_Template.json` dashboard template YAML file in Grafana by browsing http://127.0.0.1:3000/dashboard/import. Your dashboard will look like the following:
<img src="https://blog.lrvt.de/content/images/2022/11/image-4-1.png">