Druid 0.12.3 : http emitter not working

We tried to enable HTTP emitter for Historical nodes to help us monitor and prepare historical node scaling, but seems the only logging mechanism works and not http ways.

We updated configs below:

In common properties:

druid.emitter.http.recipientBaseUrl=http://localhost:8080/metrics
druid.emitter.logging.loggerClass=HttpPostEmitter

Then in historical/runtime.properties, I added the monitor for historical:

druid.monitoring.monitors=[“io.druid.server.metrics.HistoricalMetricsMonitor”, “com.metamx.metrics.JvmMonitor”]

Couldnt get any connection or result for recipientbase url.

I am assuming that the inbuilt jetty server should help us to get the endpoint working, if port 8080 is available.

Anything we missed to configure to get the metrics via HTTP?

By enabling logging emitter, we could see some metrics

Jun 10 14:38:33 historical-host11 druid: 2019-06-10T14:38:33,920 INFO [MonitorScheduler-0] LoggingEmitter - Event [

{“feed”:“metrics”,“timestamp”:“2019-06-10T14:38:33.919Z”,“service”:“historical”,“host”:“historical-host11:8080”,“version”:“0.12.3”,“metric”:“segment/used”,“value”:1330322,“dataSource”:“artifactory-repo-size”,“priority”:“0”,“tier”:"_default_tier"}

]

Chitra

Hi Chitra,

druid.emitter.http.recipientBaseUrl=http://localhost:8080/metrics

Do you have a web server running locally at port 8080 which can collect metrics emitted by Druid ?

Make sure you are setting druid.emitter=http to use Http Emitter.

Thanks,

Sashi