Skip to content

Latest commit

 

History

History
97 lines (70 loc) · 4.5 KB

README.md

File metadata and controls

97 lines (70 loc) · 4.5 KB

Observability Monitoring Grafana Mimir MSA & Loki & Jaeger

Grafana Mimir MSA + Loki + Prometheus + Grafana metrics + Jaeger Trace example

  • Grafana Mimir is an open source, horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.

  • For information on Mimir, see the link below https://grafana.com/oss/mimir/

  • Jaeger is open source, end-to-end distributed tracing

  • For information on Jaeger, see the link below https://www.jaegertracing.io/

  • Loki is a log aggregation system designed to store and query logs from all your applications and infrastructure.

  • For information on Loki, see the link below https://grafana.com/oss/loki/

Execution

  • Before running docker compose, open /consul/mimir.json file and change all address configurations to your local IP.

  • Install Loki docker driver

docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
  • execute docker-compose
docker-compose up

Consul

  • Consul is health checking service components of Grafana Mimir MSA
  • You can use Consul UI ai http://localhost:8500/ Consul UI

Grafana Mimir MSA

curl -i -X GET \
   -H "X-Scope-OrgId:tenant id" \
 'http://localhost:8880/api/prom/api/v1/metadata'
  • If you know how to use prometheus promql, then You can query metrics data with the http request below.
curl -i -X GET \
   -H "X-Scope-OrgId:tenant id" \
 'http://localhost:8880/api/prom/api/v1/{promql}'
  • http://localhost:8880/api/prom is end point of Mimir query-frontend, add your promql query to it

  • You can use minio ui at http://localhost:9001/

  • Log in with account, password minioadmin

  • mimir-block-docker bucket is storing metric data

  • You can see minio S3 buckets status Mimir minio UI

Loki

  • Loki is collecting logs from docker logging driver and helps grafana visualize
  • You can check the loki operation at http://localhost:3100/metrics

prometheus

  • Prometheus remotely writes collected metrics to Mimir Distributor Metrics data.

grafana

  • You can use grafana ui at http://localhost:3000/
  • Enter account and password admin
  • When the grafana container starts up, it creates a prometheus datasource by reading datasources yml files

observe the grafana dashboard UI

  • You can see spring application metric data sent by Mimir query-frontend and graphs Grafana Mimir UI

  • If you enter docker container name, You can see logs collected by Loki on grafana explore Grafana Explore UI

  • You can see also logs on grafana dashboard Grafana Loki UI

Jaeger

  • Each Mimir MSA Service send data to Jaeger through Jaeger Agent

  • You can search traces between Mimir MSA services at http://localhost:16686

  • You can see the structure of calls between Mimir MSA services MSA Call