Skip to content

Provides an examples of Observability stack. Logs, Metrics, Traces

Notifications You must be signed in to change notification settings

none0nfg/application-observability-example

Repository files navigation

Observability Stack

  • Simple python application, with prometheus exporter and opentelemetry tracer.
  • Graylog, Mongo, Elasticsearch, Docker-Compose Gelf log exporter
  • Prometheus, Grafana metrics scrape and visualize
  • Otel-collector, Jaeger-collector, jaeger-query to get and show traces. SPM is enabled

How to use

  1. Pull repository
  2. docker compose build
  3. docker compose up -d, Try to run this command few times till each dependency start
  4. After first docker compose up -d enable GELF Udp input in graylog to make possible to start other applications

application is app, app2 in docker-compose. Application routes:

  • /500 - return 500 error
  • /404 - return 404 error
  • / - return 200 code
  • /proxy?url="" - make a request to

You can get any endpoint of application to produce metrics and logs and traces.

Use this command to generate trace with 2 spans

  • curl localhost:5000/proxy?url=http://app2:5000/404

About

Provides an examples of Observability stack. Logs, Metrics, Traces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published