Skip to content
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

prometheus output plugin not working for multi worker scenario #101

Open
Nikunj-Sharma opened this issue Jun 24, 2019 · 1 comment
Open

Comments

@Nikunj-Sharma
Copy link

Nikunj-Sharma commented Jun 24, 2019

Hi there,

Thanks for this wonderful plugin. I am trying to get "The total number of outgoing records" in case of multi worker scenario. But it seems like prometheus output plugin doesn't support multiple worker.

Below is the match and system configuration I used(4 workers)


<system>
  workers 2
  root_dir /Users/snikunj/Desktop/td-agent/buffer
</system>
<match debug.**>
  @type copy

  <store>
    @type prometheus
    # @id out_prometheus
    <metric>
      name fluentd_output_status_num_records_total
      type counter
      desc The total number of outgoing records
      <labels>
        tag ${tag}
        hostname ${hostname}
      </labels>
    </metric>
  </store>
</match>  

Below is the error I am getting

[error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="Plugin 'prometheus' does not support multi workers configuration (Fluent::Plugin::PrometheusOutput)"

Is there any way I can achieve my requirement? getting "The total number of outgoing records" in case of multi worker?

@ganmacs
Copy link
Member

ganmacs commented Jun 28, 2019

Please update to v1.4.0 which supports multi worker.

See also this PR #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants