traefik/docs/content/observe/overview.md

2.3 KiB

title description
Observability Overview Traefik Proxy provides comprehensive monitoring and observability capabilities to maintain reliability and efficiency.

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.

{!traefik-for-business-applications.md!}