9. Observability

9.1 Observability Modes

The chart supports three modes:

  • observability.mode=lgtm: deploy bundled grafana/otel-lgtm.

  • observability.mode=collector: deploy an OpenTelemetry Collector.

  • observability.mode=none: deploy no chart-managed observability backend.

Select the mode based on whether the customer wants a self-contained observability stack or integration with an existing platform.

9.2 Bundled LGTM Mode

Enable LGTM:

Kopieren
observability:
  mode: lgtm

Expose Grafana only when required:

Kopieren
ingress:
  grafana:
    enabled: true

Grafana is then available at:

Kopieren
https://grafana.<baseDomain>

Grafana admin credentials should come from an existing Secret:

Kopieren
observability:
  mode: lgtm
  lgtm:
    grafanaAdmin:
      existingSecret: grafana-admin

9.3 Grafana Access

Do not expose Grafana by default in customer environments. If external access is required, protect it with a Traefik middleware:

Kopieren
ingress:
  grafana:
    enabled: true
    middlewares:
      - corporate-auth@kubernetescrd

9.4 Loki Log Collection with Fluent Bit

In LGTM mode, pod stdout and stderr logs can be collected from the release namespace and sent to Loki:

Kopieren
observability:
  mode: lgtm
  logs:
    enabled: true

Fluent Bit runs as a DaemonSet and tails container logs from the nodes. If the node runtime uses symlinks that Fluent Bit cannot follow, configure the runtime container log path through observability.logs.hostPaths.runtimeContainers.

9.5 Collector Mode for Customer Backends

Use collector mode when the customer already has a central observability platform:

Kopieren
observability:
  mode: collector
  collector:
    existingConfigMap: ix25-otel-collector

The referenced ConfigMap should contain the OpenTelemetry Collector configuration, including receivers, processors, exporters, and pipelines.

For production, keep tokens and credentials in Kubernetes Secrets and avoid embedding them directly in chart values.

9.6 Retention and Storage Considerations

Bundled LGTM can consume significant storage, especially for logs. Configure retention and storage intentionally:

Kopieren
observability:
  mode: lgtm
  lgtm:
    retention:
      metrics: 15d
      logs: 7d
      traces: 14d
    persistence:
      sizeData: 50Gi
      sizeLoki: 100Gi

The bundled grafana/otel-lgtm:0.30.1 image supplies the Tempo 3.0.2 base configuration. For retention.traces, the chart keeps that upstream configuration and passes the retention to both the Tempo 3 backend scheduler and backend worker. Whole-day values such as 14d are converted to 336h; other values are forwarded unchanged and must use Tempo's Go duration syntax.

If lgtm.env.TEMPO_EXTRA_ARGS is set, it replaces the automatic trace-retention arguments. The automatic helper is Tempo 3-only and must not be combined with an older Tempo 2 LGTM image override.

If the customer has strict observability retention requirements, a central managed backend is usually preferable.

9.7 Disabling Chart-Managed Observability

Disable chart-managed observability:

Kopieren
observability:
  mode: none

Use this when telemetry is handled outside the chart or not required for the environment.