fluent / fluent-plugin-prometheus

A fluent plugin that collects metrics and exposes for Prometheus.
Apache License 2.0
258 stars 79 forks source link

[question] Can the prometheus plugin collect the resource data which fluentd uesd? #131

Open ted222 opened 4 years ago

ted222 commented 4 years ago

Hello, I used the plugin to monitor the fluentd. And I also want to get how many resource (CPU, memory, etc) fluentd used ,can the plugin prove these data? Or how can I monitor the resource that fluentd used? Best regards.

dgonzalezruiz commented 4 years ago

I suggest you monitor fluentd resource usage just like you monitor the resource usage of any other of your infrastructure services; this depends greatly on your specific setup, and fluentd runtime method.

Unless you have an input that provides this plugin with fluentd resource usage data (so that it can build any metric around those records), there is no way this plugin / fluentd can solve this problem on their own (unless the developers of this plugin decided to add this resource usage data as an extra metric, tracked by the plugin itself, which I find unlikely in the short term)