fluent / fluent-plugin-prometheus

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

Fix nil error when empty body is returned from /metrics #169

Closed eagletmt closed 4 years ago

eagletmt commented 4 years ago
<source>
  @type prometheus
  port 27224
</source>

The above configuration causes NoMethodError when async-http is available. This patch fixes the compatibility between WEBrick's response object and async-http's response object.

eagletmt commented 4 years ago

This changeset is included in more essential fix: #171