-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor ContainerStats to contain all perf stats in one field #9
base: master
Are you sure you want to change the base?
Conversation
Update fork
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.
It looks good to me but please remember add explanation for this refactoring.
Description will help maintainers to understand why it is needed.
@@ -226,7 +226,7 @@ func TestContainerStatsToPoints(t *testing.T) { | |||
points := storage.containerStatsToPoints(cInfo, stats) | |||
points = append(points, storage.memoryStatsToPoints(cInfo, stats)...) | |||
points = append(points, storage.hugetlbStatsToPoints(cInfo, stats)...) | |||
points = append(points, storage.perfStatsToPoints(cInfo, stats)...) | |||
points = append(points, storage.Perf.PerfStatsToPoints(cInfo, stats)...) |
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.
PerfStatsToPoints
does not exist.
Have you run tests for InfluxDB? Have you seen this instruction?
Please check tests also for other storages.
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.
Tests work now. Other storages do not have tests. I've manually tested stdout and statsd
Signed-off-by: Wisniewski, Krzysztof2 <[email protected]>
6787aaf
to
24dfff7
Compare
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
Signed-off-by: Wisniewski, Krzysztof2 [email protected]