monitoring/README.md
Promtail : is a collector which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud. It is usually deployed to every machine that has applications needed to be monitored.
Loki : is a search engine for logs inspired by Prometheus.
OTEL Collector : is vendor-agnostic way to receive, process and export telemetry data.
Tempo : is a distributed tracing backend.
Grafana : is a query frontend to output data.
cd monitoring
# start containers
docker-compose up -d
# FIXME: maybe we can remove manual setups with help of a config or automation?
TempoURL to http://tempo:3200URL to http://loki:3100Derived fields-Name to trace_idRegex to trace_id":"(.*?)"(?=,|}|$)URL to ${__value.raw}URL label to TempoInternal link and select Tempojob=router]trace_id in logs to jump to Tempo view to visualize the tracing.Service Name in Tempo view under
Search tab. The UI also provides other filter options.http://127.0.0.1:3100/ready
: To get status of Loki, it should give "Ready".
docker container ls -as
: List running containers.
docker exec -it monitoring_promtail_1 bash
: Look inside of promtail container.
docker-compose down
: Stop containers