-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Filter out uninstalled systemd units when collecting all units #1011
Conversation
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.
Nice, LGTM.
CHANGELOG.md
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
**Breaking changes** | |||
|
|||
* [CHANGE] | |||
* [CHANGE] Filter out non-installed units when collecting all systemd units #567 |
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.
Minor nit, this should be #1011
to reference the PR, not the issue.
gah, sorry about that! fixed in the most recent push. |
collector/systemd_linux.go
Outdated
@@ -227,7 +227,8 @@ func (c *systemdCollector) getAllUnits() ([]unit, error) { | |||
} | |||
defer conn.Close() | |||
|
|||
allUnits, err := conn.ListUnits() | |||
// filter out any units that are not installed (pulled in only as dependencies) |
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.
Please make comments full sentences, start with capitol and end with a .
.
fixed up the comment, @SuperQ PTAL |
It looks like the CircleCI outage caused the build request to get lost. I guess you could push a commit and then roll it back to trigger a rebuild. |
fixes #567 Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
@SuperQ builds are passing again, thanks for the heads up! |
…theus#1011) fixes prometheus#567 Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
fixes #567
Signed-off-by: xginn8 mamcgi@gmail.com