-
Notifications
You must be signed in to change notification settings - Fork 6
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 a filter to only include *.conf files from collectd.d. #120
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# The release version and build number of the stackdriver-agent package. | ||
PKG_VERSION=6.1.3 | ||
PKG_VERSION=6.2.0 | ||
PKG_BUILD=1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,10 @@ PostCacheChain "PostCache" | |
</Rule> | ||
</Chain> | ||
|
||
# if you have other config, especially for plugins, you can drop them | ||
# into this directory | ||
# Obsolete config directory for backward compatibility. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Users could have put files into the other dir without the
(i'm partial to the former) |
||
Include "/opt/stackdriver/collectd/etc/collectd.d" | ||
Include "/etc/stackdriver/collectd.d" | ||
# If you have other config, especially for plugins, you can drop them | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/config/configs |
||
# into this directory. | ||
<Include "/etc/stackdriver/collectd.d"> | ||
Filter "*.conf" | ||
</Include> |
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.
Hmm, I have very contradicting feelings about this. I don't consider this to be a change in the API because the agent still behaves exactly the same for its purpose of collecting/sending metrics. The only change is to a config file that isn't fixed -- and that configurability is a "part of the API" (eh, sort of, maybe, not really, but you get it). That part of me wants to say that this doesn't even deserve a patch bump, but I do think there's merit in being able to differentiate between versions of the agent with the default changed vs not -- thus I'd vote patch bump.
(side question: if a user upgraded, their config wouldn't be overwritten with this right? (and yes yes, templates and new VMs that don't have one to begin with, inconsistencies etc etc))
If we /do/ consider a config file (that's shipped with the agent by default but configurable by the user by feature) to be a core part of the API, then I'd say this should be a major version bump.