alloy:: kube cadviser add instance / / hostip label

This commit is contained in:
Márcio Fernandes
2026-09-06 23:06:47 +00:00
parent 4e64505275
commit 404f39fde7
@@ -251,10 +251,19 @@ alloy:
target_label = "__metrics_path__" target_label = "__metrics_path__"
} }
rule {
target_label = "instance"
replacement = env("NODE_IP")
}
} }
extraEnv: extraEnv:
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: CLUSTER_NAME - name: CLUSTER_NAME
value: casa value: casa