chore(alloy): Use correct env var
This commit is contained in:
parent
96f69eb1d4
commit
487fa7429e
2 changed files with 1 additions and 8 deletions
|
|
@ -475,7 +475,7 @@ data:
|
||||||
job_name = "node-exporter"
|
job_name = "node-exporter"
|
||||||
|
|
||||||
labels = {
|
labels = {
|
||||||
node = env("NODE_NAME")
|
node = env("HOSTNAME"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,6 @@ alloy:
|
||||||
# -- Key in ConfigMap to get config from.
|
# -- Key in ConfigMap to get config from.
|
||||||
key: config.alloy
|
key: config.alloy
|
||||||
|
|
||||||
# -- Extra environment variables to pass to the Alloy container.
|
|
||||||
extraEnv:
|
|
||||||
- name: NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
|
|
||||||
# -- Minimum stability level of components and behavior to enable. Must be
|
# -- Minimum stability level of components and behavior to enable. Must be
|
||||||
# one of "experimental", "public-preview", or "generally-available".
|
# one of "experimental", "public-preview", or "generally-available".
|
||||||
stabilityLevel: "generally-available"
|
stabilityLevel: "generally-available"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue