Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kwisniewski98
Copy link
Owner

Signed-off-by: Wisniewski, Krzysztof2 [email protected]

Copy link

@katarzyna-z katarzyna-z left a 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)...)

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.

Copy link
Owner Author

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

Copy link

@katarzyna-z katarzyna-z left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants