Open xhejtman opened 1 month ago
I agree on the feature of modifying the injection label. By default it is namespace
, and sometimes metrics uses exported_namespace
among others.
Do you want to implement it?
I tried to implement it by myself, but I had to hack original prometheus code. I did not know how to do it in clean way. E.g., if request combines both namespace
and exported_namespace
metrics.
Do you have any better idea?
I was thinking about using either exported_namespace
or namespace
Probably by using a cli flag like --namespace-label=namespace
(default value: namespace
)
OK, I see, but in such a case, it does not help a lot unless you run like 3 proxies, one for generic metrics (like node labels), one for exported_namespaces and one for namespaces. I would prefer to integrate them into a single one.
And I think this is actually doable right now using lables instead of namespaces.
Hello,
would it be possible to implement extended configuration so that some of metrics are not subject of label injections? Such as
kube_node_labels
do not use namespaces. So such metrics could be whitelisted in configuration.Or there are some metrics that use
exported_namespace
instead ofnamespace
. Could be such metrics listed so that label injector injects theexported_namespace
instead of thenamespace
? Thanks.