-
Notifications
You must be signed in to change notification settings - Fork 77
Extended core metrics tests #719
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
Conversation
Refactored AssertMetrics and assertMetricsLabel into common.go Added expected metrics yaml to integration_test/agent_metrics
There was a problem hiding this 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…
… ExpectedMetric.Platform. Refactored osFolder() into gce_testing.go and renamed it to PlatformKind() Removed getExcludedPlatform()
Added representative metric to agent metrics Added omitempty to: ExpectedMetric.Labels, ExpectedMetric.Optional, ExpectedMetric.Representative Refactored testDefaultMetrics to use representative metric from metadata.yaml
….com/agent/request_count to metadata.yaml
…to avi-levy-extend-core-metrics
…count, swap/percent_used to metadata.yaml
Fixed comments Optimized agent metrics testing to skip optional metrics.
…to avi-levy-extend-core-metrics
There was a problem hiding this 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.
…to avi-levy-extend-core-metrics
# Conflicts: # integration_test/gce/gce_testing.go # integration_test/third_party_apps_test.go
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#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
#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
Extended testing coverage of core metrics tests to include
value_type,kind,monitored_resourceandlabelsRefactored AssertMetrics and assertMetricsLabel into common.go
Added expected metrics yaml to integration_test/agent_metrics
http://b/230790404