Closed jjzeng-seattle closed 4 years ago
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
/assign @rghetia
@james-bebbington could you please take care of this PR if you have time? Otherwise I'll get back to it next Tuesday.
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