containerpope / nifi-prometheus-reporter

A reporting task in Nifi which is capable of sending monitoring statistics as prometheus metrics to a prometheus pushgateway.
Apache License 2.0
52 stars 32 forks source link

Connection Refused #17

Closed usamaB closed 5 years ago

usamaB commented 5 years ago

I ran the simple setup. all the containers are up. But I get this ERROR [Timer-Driven Process Thread-9] o.a.n.r.p.PrometheusReportingTask PrometheusReportingTask[id=6feba8f7-0168-1000-f1f2-6fa3a81f4871] Failed pushing JVM-metrics to Prometheus PushGateway due to java.net.ConnectException: Connection refused (Connection refused); routing to failure: {}

here's a screenshot of error in NiFi. Reporting task is setup in NiFi with default settings i.e Pushgateway running on localhost:9091 screenshot from 2019-01-21 11-27-21

heres my task configuration screenshot from 2019-01-21 12-09-10

I don't understand why it's throwing this error?

usamaB commented 5 years ago

Had to enter docker service name instead of localhost.