config:
  lokiAddress: http://loki.logging.svc.cluster.local:3100/loki/api/v1/push
  snippets:
    extraRelabelConfigs:
      # Skip Promtail's own logs to reduce noise
      - source_labels: [__meta_kubernetes_pod_label_app_kubernetes_io_name]
        action: drop
        regex: promtail
      # Drop logs from the logging stack itself
      - source_labels: [__meta_kubernetes_namespace]
        action: drop
        regex: logging
      # Promote common labels for easier querying
      - action: replace
        replacement: $1
        source_labels: [__meta_kubernetes_namespace]
        target_label: namespace
      - action: replace
        replacement: $1
        source_labels: [__meta_kubernetes_pod_name]
        target_label: pod
      - action: replace
        replacement: $1
        source_labels: [__meta_kubernetes_pod_label_app_kubernetes_io_name]
        target_label: app
