Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label addition to metrics with prefix "container.googleapis.com" should not break GCP/GKE? #214

Open
wenjiaswe opened this issue Oct 9, 2018 · 0 comments
Labels

Comments

@wenjiaswe
Copy link

Currently, label addition will break GKE. I checked https://github.com/GoogleCloudPlatform/k8s-stackdriver/blob/master/prometheus-to-sd, for metrics with prefix "container.googleapis.com" (e.g., etcd metrics), if definition (for example, label is one of the definition) of the metric was changed, then the metric is marked as broken and the metric is not going to be pushed:

func (cache *MetricDescriptorCache) ValidateMetricDescriptors(metrics map[string]*dto.MetricFamily, whitelisted []string) {
. prometheus-to-sd only UpdateMetricDescriptors if it contains "custom.googleapis.com" prefix:
if strings.HasPrefix(commonConfig.GceConfig.MetricsPrefix, customMetricsPrefix) {
.

How ever, many label additions are conceptually backward compatible since their introduction would not break existing readers that are unaware of the label. So I would expect backward compatible label addition does not break GCP/GKE.

Here is an example: etcd-io/etcd#10022

@kawych kawych added the bug label Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants