Skip to content

igabas/observability-example

Repository files navigation

Observability ASP.NET Core example

A simple observability project on ASP.NET Core using Open Telemetry SDK

Prerequisites

  • Docker
  • .NET 8.0

Running 🚀

Run project services use command:

docker compose up -d

or

docker-compose up -d --force-recreate --no-deps --build http-service grpc-service  

Service`s addresses

service url / port notes
http-service swager
grpc-service grpc reflection
otel-collector metrics path
postgreSQL port: 6432; setup via .env file
postgres-exporter metrics path
Jaeger Jaeger UI
Grafana Grafana UI user/pass setup via .env file
Prometheus Prometheus UI
kafka Kafka
akhq Kafka UI
kafka-exporter metrics path

Troubleshooting 🧐

On MacOS while executing init scripts happens error:

/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/0001-init.sh
/usr/local/bin/docker-entrypoint.sh: /docker-entrypoint-initdb.d/0001-init.sh: /bin/bash: bad interpreter: Permission denied

For fix this needs to add execute permission for scripts:

find ./configs/postgres/scripts -type f \( -iname \*.sh -o -iname \*.sql \) -exec chmod +x {} +