Loki logs collocting when not enabled #4

Open
opened 2023-11-21 09:46:01 +00:00 by jon_nfc · 0 comments
jon_nfc commented 2023-11-21 09:46:01 +00:00 (Migrated from gitlab.com)

file ConfigMap-GrafanaAgent.yaml

- name: node-logs
        clients:
          - url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}/loki/api/v1/push
            backoff_config:
              min_period: 10s
              max_period: 5m
              max_retries: 10

should not exist in the configmap when Values.nfc_monitoring.loki.enabled=false

file `ConfigMap-GrafanaAgent.yaml` ``` yaml - name: node-logs clients: - url: http://{{ .Values.nfc_monitoring.loki.service_name }}.{{ .Values.nfc_monitoring.loki.namespace }}.svc.{{ .Values.nfc_monitoring.kubernetes.cluster_dns_name }}:{{ .Values.nfc_monitoring.loki.service_port }}/loki/api/v1/push backoff_config: min_period: 10s max_period: 5m max_retries: 10 ``` should not exist in the configmap when `Values.nfc_monitoring.loki.enabled=false`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infrastructure/kubernetes_monitoring#4
No description provided.