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

Fix unit for cumulative metrics and minor cleanups #183

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

bogdandrutu
Copy link
Contributor

No description provided.

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

One minor comment, otherwise LGTM.

@@ -52,7 +52,7 @@ func TestStatsAndMetricsEquivalence(t *testing.T) {
metricDescriptor := &metricspb.MetricDescriptor{
Name: "ocagent.io/latency",
Description: "The latency of the various methods",
Unit: "ms",
Unit: "1",
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be reverted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the reason is that the equivalent for a view with count aggregation is a cumulative_int64 without unit.

@bogdandrutu bogdandrutu merged commit 7449e7d into census-ecosystem:master Aug 29, 2019
@bogdandrutu bogdandrutu deleted the fix branch August 29, 2019 18:42
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.

4 participants