diff --git a/monitoring/base/alloy/kube-scraper/helm-values.yaml b/monitoring/base/alloy/kube-scraper/helm-values.yaml index dd4ba4b..7af51ff 100644 --- a/monitoring/base/alloy/kube-scraper/helm-values.yaml +++ b/monitoring/base/alloy/kube-scraper/helm-values.yaml @@ -1,7 +1,6 @@ controller: type: 'deployment' - nodeSelector: - kubernetes.io/hostname: casa-minion-01 + alloy: # https://grafana.com/docs/alloy/latest/collect/logs-in-kubernetes/ diff --git a/monitoring/base/alloy/node-scraper/helm-values.yaml b/monitoring/base/alloy/node-scraper/helm-values.yaml index e13c9ca..19b36cf 100644 --- a/monitoring/base/alloy/node-scraper/helm-values.yaml +++ b/monitoring/base/alloy/node-scraper/helm-values.yaml @@ -61,30 +61,25 @@ alloy: name: alloy-node-scraper key: config.alloy extraEnv: - - name: NODE_IP - valueFrom: - fieldRef: - fieldPath: status.hostIP + - name: CLUSTER_NAME - value: casa - - name: JOB - value: node-exporter - - name: CONTAINER - value: node-exporter - - name: NS - value: monitoring - - name: POD - value: alloy-node-scraper - - name: SERVICE - value: alloy-node-scraper + valueFrom: + secretKeyRef: + name: alloy-global + key: cluster_name + - name: ZONE - value: casa-vlan + secretKeyRef: + name: alloy-global + key: zone + - name: LOKI_URL valueFrom: secretKeyRef: name: alloy-global key: loki_url - name: PROMETHEUS_URL + valueFrom: secretKeyRef: name: alloy-global