Skip to content

Conversation

@xiejiangzhi
Copy link

Support multiple metrics
Support custom metrics

@xiejiangzhi
Copy link
Author

xiejiangzhi commented Jul 12, 2016

<match statsd>
  type statsd
  host localhost # optional
  port 8125 # optional
  namespace a.b.c # optional

  <metric>
    statsd_type timing
    statsd_key my_app.nginx.response_time
    statsd_val ${record['response_time']}
  </metric>

  <metric>
    statsd_type incrument
    statsd_key my_app.nginx.${response_code.to_i / 100}xx # 2xx 4xx 5xx
  </metric>

  # more <metric>...</metric>
</match>

imnotjames referenced this pull request in imnotjames/fluent-plugin-statsd Dec 12, 2018
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

Successfully merging this pull request may close these issues.

1 participant