-
Notifications
You must be signed in to change notification settings - Fork 1.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
in_node_exporter_metrics: implement processes metrics #7880
in_node_exporter_metrics: implement processes metrics #7880
Conversation
Note: This PR might be able to cause conflict for merging #7876. |
eb36c69
to
b289694
Compare
b289694
to
2f1f238
Compare
Signed-off-by: Hiroshi Hatake <[email protected]>
Signed-off-by: Hiroshi Hatake <[email protected]>
2f1f238
to
dd85693
Compare
@cosmo0920 has this been tested in CentOS 7 ? |
This is not tested yet. But it is not enabled by default. |
It works on Docker M1 macOS!
|
@@ -701,6 +720,26 @@ static int in_ne_init(struct flb_input_instance *in, | |||
} | |||
ne_systemd_init(ctx); | |||
} | |||
else if (strncmp(entry->str, "processes", 9) == 0) { | |||
if (ctx->processes_scrape_interval == 0) { | |||
flb_plg_debug(ctx->ins, "enabled metrics %s", entry->str); |
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 seems process collector is disabled but the message says enabled
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 message is used when enabling processes metrics. Other messages for enabling metrics are also displayed in enabled circumstances. I mean, when "processes" string is included in metrics parameter, this message will be displayed.
This PR works well on CentOS 6 (x86_64 container):
And CentOS 6 on vagrant box:
|
To monitor for statuses of processes and threads, we need to implement processes metrics on in_node_exporter_metrics plugin.
Fixes #7866
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
$ bin/fluent-bit -i node_exporter_metrics -p metrics=processes -o stdout
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
fluent/fluent-bit-docs#1184
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.