-
Notifications
You must be signed in to change notification settings - Fork 1.8k
plugin: in_proc_metrics #4080
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
plugin: in_proc_metrics #4080
Conversation
…ngle process. Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
…sion. Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
…isappears. Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
|
Here is a valgrind log where I opened and closed some instances of htop. |
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
|
Here is a simple configuration file that shows statistics from all the htop processes that are running: [INPUT]
Name proc_metrics
Tag metrics
Process htop
[OUTPUT]
Name stdout
Match metrics |
|
Here is a log of fluent-bit running with verbose logging: |
…$PID/*. Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
|
Here is the PR for the documentation: fluent/fluent-bit-docs#609. |
…ses. Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
Signed-off-by: Phillip Whelan <[email protected]>
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
thanks for this PR. I am thinking about what kind of process metrics exporter exists already in the Prometheus world, basically, I would like to make sure that our metrics names and labels can match what other projects are doing to avoid the end-user re-configure their dashboards. I found some examples: not sure if there is other options, which one we should follow ? |
|
@patrick-stephens are you familiar with any of the projects mentioned above ? |
|
The https://github.com/ncabatoff/process-exporter is the one I've generally seen people use and briefly experimented with but am not an expert in I'm afraid. I'd also watch out for container/kubernetes issues with trying to mount The docs I think need to cover what you need to do to get it working in Kubernetes and a standalone container. Particularly with security constraints, how do we enable the capability to do it or at least flag up it may not work without extra effort. We probably need to follow the approach Kubernetes is taking there as well: https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/ |
Signed-off-by: Phillip Whelan <[email protected]>
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
this seems to have little to no chance of getting in and already seems to have drifted considerably. closing it for now. |
Add a new plugin which logs the metrics for a single process.
Testing
Documentation
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.