-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add wildcard inclusion/exclusion support to container names #2793
Conversation
If the changes look okay, I will go ahead implementing the tests. |
What are the possible states other than running? |
@danielnelson, I guess the possible states are: paused, restarting, removing, running, dead, created, exited. I suppose it only makes sense to track containers in running state? I'd see no reason to extend this to containers in states other than running? |
@danielnelson - let me know if the changes look good. Once they do, I will take care of the test units. |
0b7b36e
to
88151a8
Compare
plugins/inputs/docker/README.md
Outdated
## Only collect metrics for these containers, collect all if empty | ||
container_names = [] | ||
|
||
## Containers to include and exclude. Globs accepted. | ||
## Note that the options are ignored when using the container_names option. An empty array for both will include all containers |
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.
We should favor the new options, maybe you can just append container_names
to the new value? Then document that the old version is deprecated. Include the version it is deprecated in and the replacement, something like: "Deprecated (1.4.0), use container_name_include"
11cdd08
to
47a1fec
Compare
@danielnelson - I've made the changes. If they look good, I will proceed with the test cases. |
Looks good |
1ef8081
to
573d7e7
Compare
@danielnelson - I've added the tests. It's ready to merge. |
Perfect! |
This PR solves #2734 .