Skip to content

Conversation

@avilevy18
Copy link
Contributor

@avilevy18 avilevy18 commented Jul 5, 2022

Extended testing coverage of core metrics tests to include value_type, kind, monitored_resource and labels

Refactored AssertMetrics and assertMetricsLabel into common.go

Added expected metrics yaml to integration_test/agent_metrics

http://b/230790404

Refactored AssertMetrics and assertMetricsLabel into common.go

Added expected metrics yaml to integration_test/agent_metrics
@avilevy18 avilevy18 requested review from a team and igorpeshansky and removed request for a team July 5, 2022 15:41
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

Mostly questions about metric.Platform

@sophieyfang sophieyfang self-requested a review July 7, 2022 00:45
avilevy18 and others added 2 commits July 7, 2022 18:10
… ExpectedMetric.Platform.

Refactored osFolder() into gce_testing.go and renamed it to PlatformKind()

Removed getExcludedPlatform()
avilevy18 and others added 7 commits July 11, 2022 16:21
Added representative metric to agent metrics

Added omitempty to: ExpectedMetric.Labels, ExpectedMetric.Optional, ExpectedMetric.Representative

Refactored testDefaultMetrics to use representative metric from metadata.yaml
@avilevy18 avilevy18 requested a review from igorpeshansky July 12, 2022 14:18
@avilevy18 avilevy18 requested a review from igorpeshansky July 18, 2022 19:11
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

A few more comments on the new code, in addition to the ones still unresolved.

@avilevy18 avilevy18 requested a review from igorpeshansky July 22, 2022 21:40
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

A few minor comments.

Fixed comments and agent_metrics/metadata.yaml according to comments suggestions
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@avilevy18 avilevy18 merged commit f27d7db into master Jul 22, 2022
martijnvans added a commit that referenced this pull request Jul 25, 2022
#719 changed the label matching to be a full match instead of a partial match, and that caused mysql tests to fail with `workload.googleapis.com/mysql.double_writes: error: label value does not match pattern. label=kind, pattern=writes|written, value=pages_written` errors
martijnvans added a commit that referenced this pull request Jul 25, 2022
#719 changed the label matching to be a full match instead of a partial match, and that caused mysql tests to fail with `workload.googleapis.com/mysql.double_writes: error: label value does not match pattern. label=kind, pattern=writes|written, value=pages_written` errors
@qingling128 qingling128 deleted the avi-levy-extend-core-metrics branch August 8, 2022 20:28
martijnvans added a commit that referenced this pull request Sep 2, 2022
#723 deleted these functions, but they were mistakenly added back, probably due to a bad merge, in #719 (which was merged after 723).
martijnvans added a commit that referenced this pull request Sep 3, 2022
#723 deleted these functions, but they were mistakenly added back, probably due to a bad merge, in #719 (which was merged after 723).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants