You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[cloudprober.surfacer.prometheus.SurfacerConf] Set global labels via CLI Flag #940
In addition to defining a prefix, I would like to define some common labels across all probesets in a cloudprober instance.
I can use the additional_labels functionality within a specific probeset, but that will generate a significant amount of boilerplate configuration after a number of probesets.
Instead of having to define the following additional label across every probeset with
--prometheus_global_label=src_zone={.zone} (or some shorthand to set the label key)
--prometheus_global_label=src=value
This would be particularly useful in non Kubernetes environments, where additional metadata needs to be explicitly configured, instead of being detected
Basically, I want that functionality, but configurable as a CLI flag, instead of an environmental variable.
Since the environmental variable parsing already exists, could a new contributor plumb it into a flag too? I could offer myself as tribute, now that I've gotten sign off to make contributions on behalf of my employer
Activity
manugarg commentedon Nov 26, 2024
@conallob will something like the following work:
https://cloudprober.org/docs/how-to/additional-labels/#global-additional-labels
conallob commentedon Nov 26, 2024
I forgot to mention that in the bug report.
Basically, I want that functionality, but configurable as a CLI flag, instead of an environmental variable.
Since the environmental variable parsing already exists, could a new contributor plumb it into a flag too? I could offer myself as tribute, now that I've gotten sign off to make contributions on behalf of my employer