Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Check .Present before setting label value #268

Merged
merged 3 commits into from
Jun 30, 2020

Conversation

jjzeng-seattle
Copy link
Contributor

We shouldn't set the labels if the value is not present.

This is necessary for the current knative work with multiple meters. In knative some metric labels are extracted into resource labels, so we shouldn't set those metric labels.

https://github.com/evankanderson/knative-pkg/blob/resourcefullest/metrics/stackdriver_exporter.go#L239

@jjzeng-seattle
Copy link
Contributor Author

/assign @rghetia

Copy link
Contributor

@rghetia rghetia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @nilebox

@nilebox
Copy link
Contributor

nilebox commented Jun 26, 2020

@james-bebbington could you please take care of this PR if you have time?
Otherwise I'll get back to it next Tuesday.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants