Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 2.69 KB

observability.md

File metadata and controls

56 lines (36 loc) · 2.69 KB

Observability

Health

Readiness and liveness endpoints are available on /readyz and /livez to be consumed by Kubernetes or your cloud health checker. Additionally, a tool is located in hack/healthcheck.js to be consumed by Docker's native health check feature.

Logs

All logs are on STDOUT. They can be scraped by collectors. The log level can be changed with the environment variable LOG_LEVEL, take a look at the pino docs for available values.

Metrics

All metrics are accessible on /metrics. They can be scraped by collectors.

Traces

Traces are sent to a Jaeger instance or any compatible agent. You can use the environment variable OTEL_EXPORTER_JAEGER_ENDPOINT to change the Jaeger endpoint (eg. http://jaeger:14268/api/traces).

It is very easy to replace Jaeger with Zipkin or another exporter in ./src/observability/tracer.js.

Tools

This is a non-exhaustive list of OSS tools you can use for observability, there is a more exhaustive list.

Observability is a hot topic and many tools evolve rapidly towards supporting all three of metrics, logs, traces.

Collection

Storage

Visualization


Develop - Release - Deploy - Observe