Closed SuperQ closed 2 months ago
Ping @povilasv :)
@SuperQ sorry for delay, given the https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/dd5c59ab4491159593ed370a344a553b57146a7d/rules/kube_apiserver-config.libsonnet#L14 is configureable, can't you just configure differently?
I don't really undertand why we need regex here :thinking:
A regexp is needed because different versions of K8s produce different le
values depending on a few different factors. Since it's somewhat dynamic, using a regexp makes it compatible with different version. I suppose I could put the regexp changes into the default config.
Alternative implementation: https://github.com/kubernetes-monitoring/kubernetes-mixin/pull/965
Suggest we take #965 and close this one.
Depending on the version of client_golang and metrics format (Prometheus vs OpenMetrics), bucket names may contain either integer or float formatting.
Use a regexp match to select either format.