Skip to content

Observability Overview

Traefik Proxy provides comprehensive monitoring and observability capabilities to maintain reliability and efficiency:

  • Logs and Access Logs provide real-time insight into the health of your system. They enable swift error detection and intervention through alerts. By centralizing logs, you can streamline the debugging process during incident resolution.

  • Metrics offer a comprehensive view of your infrastructure's health. They allow you to monitor critical indicators like incoming traffic volume. Metrics graphs and visualizations are helpful during incident triage in understanding the causes and implementing proactive measures.

  • Tracing enables tracking the flow of operations within your system. Using traces and spans, you can identify performance bottlenecks and pinpoint applications causing slowdowns to optimize response times effectively.

Configuration Example

You can enable access logs, metrics, and tracing globally:

accessLog: {}

metrics:
  otlp: {}

tracing: {}
[accessLog]

[metrics.otlp]

[tracing.otlp]
# values.yaml
accessLog:
  enabled: true

metrics:
  otlp:
    enabled: true

tracing:
  otlp:
    enabled: true

You can disable access logs, metrics, and tracing for a specific entrypoint:

entryPoints:
  EntryPoint0:
    address: ':8000/udp'
    observability:
      accessLogs: false
      tracing: false
      metrics: false
[entryPoints.EntryPoint0.observability]
  accessLogs = false
  tracing = false
  metrics = false
additionalArguments:
  - "--entrypoints.entrypoint0.observability.accesslogs=false"
  - "--entrypoints.entrypoint0.observability.tracing=false"
  - "--entrypoints.entrypoint0.observability.metrics=false"

Note

A router with its own observability configuration will override the global default.


Using Traefik OSS in Production?

If you are using Traefik at work, consider adding enterprise-grade API gateway capabilities or commercial support for Traefik OSS.

Adding API Gateway capabilities to Traefik OSS is fast and seamless. There's no rip and replace and all configurations remain intact. See it in action via this short video.