-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Set default metricsets in Docker module #6718
Conversation
c2b0504
to
503974f
Compare
The following metricests are set as default: `container`, `cpu`, `diskio`, `healthcheck`, `info`, `memory` and `network`. `image` is not set as default.
Rebased without changelog. Changelog entry is here: #6668 (comment) and will be added as one PR in the end. |
panic(err) | ||
} | ||
mb.Registry.MustAddMetricSet("docker", "image", New, | ||
mb.WithHostParser(docker.HostParser), |
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 had no host parser before 🤔 but I guess it should have had it.
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.
Hm, good point. Yes it should have one.
hosts: ["unix:///var/run/docker.sock"] | ||
period: 10s | ||
|
||
# Replace dots in labels with `_`. Set to false to keep dots | ||
labels.dedot: true |
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.
This is the default, so I guess it is not needed in config.yml
.
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.
The reason I left this in is because we plan to change the default here in 7.0. So if it is in the config most people use, 7.0 will be less breaking for existing users.
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.
Oh ok, right then.
@@ -1,13 +1,5 @@ | |||
- module: docker | |||
metricsets: ["container", "cpu", "diskio", "healthcheck", "info", "memory", "network"] | |||
hosts: ["unix:///var/run/docker.sock"] |
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.
Out of the scope, but I think this should be the default.
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.
+1 on that.
@jsoriano See my comments. Let me know if you need changes or if it is ok to go. |
It is ok to go :) |
The following metricests are set as default:
container
,cpu
,diskio
,healthcheck
,info
,memory
andnetwork
.image
is not set as default.