alloy:: kube cadviser add instance / / hostip label
This commit is contained in:
@@ -251,10 +251,19 @@ alloy:
|
||||
target_label = "__metrics_path__"
|
||||
}
|
||||
|
||||
rule {
|
||||
target_label = "instance"
|
||||
replacement = env("NODE_IP")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
extraEnv:
|
||||
- name: NODE_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.hostIP
|
||||
|
||||
- name: CLUSTER_NAME
|
||||
value: casa
|
||||
|
||||
Reference in New Issue
Block a user