Graphite Emitter Not Working

436 views
Skip to first unread message

Rishi Mishra

unread,
Apr 20, 2016, 9:15:27 AM4/20/16
to Druid User
Hi,

I placed the following configs in the druid coordinator runtime.properties:

druid.monitoring.monitors=["com.metamx.metrics.SysMonitor","com.metamx.metrics.JvmMonitor","io.druid.server.metrics.EventReceiverFirehoseMonitor"]

druid.emitter=graphite
druid.emitter.graphite.hostname=<HOST_NAME>
druid.emitter.graphite.port=<PORT_NAME>
druid.emitter.graphite.eventConverter={"type":"all", "namespacePrefix": "druid.test", "ignoreHostname":false, "ignoreServiceName":false}


But graphite did not receive any metrics.


I checked with sudo tcpdump -i any | grep <PORT_NAME> and there was nothing. I am running druid-0.9.0 

sascha...@smaato.com

unread,
Apr 20, 2016, 3:39:35 PM4/20/16
to Druid User
Hi Rishi,

did you include the graphite emitter extension in the load list?
druid.extensions.loadList=["graphite-emitter"]

The extension directory for the graphite emitter needs to contain three jar files, two dropwizard libs and the druid graphite emitter jar itself.
I tested the graphite emitter last week and got it to work. If the loadList and the libs are in place and the problem still persists let me know - I can post a working setup once I'm back at work tomorrow.

Slim Bouguerra

unread,
Apr 20, 2016, 5:59:08 PM4/20/16
to druid...@googlegroups.com
BTW this is using the port 2004 (pickled protocol). 

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/36f9b18c-ff5e-43dd-9b6d-7165ff4ec222%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

slim bouguerra

unread,
Apr 20, 2016, 6:06:29 PM4/20/16
to druid...@googlegroups.com
more info about pickled 

please let me know if you need help setting this up.

Fangjin

unread,
Apr 20, 2016, 7:22:09 PM4/20/16
to Druid User
Hi, graphite is not a core extension.


Fangjin

unread,
Apr 20, 2016, 7:26:45 PM4/20/16
to Druid User
The docs may be much more clear with regards to how to load extensions: http://imply.io/docs/latest/extensions.html
Message has been deleted
Message has been deleted

Rishi Mishra

unread,
Apr 21, 2016, 6:47:07 AM4/21/16
to Druid User
I figured out theproblem and now Graphite emitter is working. Thanks everyone!!

I am facing a different problem. I have a datasource with rules:

016-04-21T10:21:26,515 INFO [qtp1603729058-52] io.druid.metadata.SQLMetadataRuleManager - Updating [<Datasource_Name>] with rules [[{"period":"P3D","tieredReplicants":{"_default_tier":1},"type":"loadByPeriod"},{"type":"dropForever"}]] as per [AuditInfo{author='rsh', comment='ff', ip='XXXX'}]


But still all segments are being loaded into druid for <Datasource_Name>. I am not getting any error in coordinator log or historical log.
Message has been deleted

Rishi Mishra

unread,
Apr 21, 2016, 7:21:37 AM4/21/16
to Druid User
I restarted the historical. It loaded 4080 segments. However the coordinator shows:
2016-04-21T11:09:39,639 INFO [DatabaseSegmentManager-Exec--0] io.druid.metadata.SQLMetadataSegmentManager - Polled and found 1,796 segments in the database


So why is the historical loading all these extra segments? 

On Wednesday, April 20, 2016 at 6:45:27 PM UTC+5:30, Rishi Mishra wrote:

slim bouguerra

unread,
Apr 21, 2016, 1:26:37 PM4/21/16
to druid...@googlegroups.com
do you have replication ? 
-- 
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.

Rishi Mishra

unread,
Apr 22, 2016, 5:59:14 AM4/22/16
to Druid User
The issue resolved but it took 2-3 hours for coordinator to follow the rules i specified and unload extra segments.I don't have replication.

On Wednesday, April 20, 2016 at 6:45:27 PM UTC+5:30, Rishi Mishra wrote:

Fangjin Yang

unread,
Apr 26, 2016, 8:53:04 PM4/26/16
to Druid User
You can tune Druid's dynamic configuration for faster loading/unloading of segments.http://druid.io/docs/0.9.0/configuration/coordinator.html

Jakub Liska

unread,
May 3, 2016, 10:38:20 AM5/3/16
to Druid User
Guys I made the graphite-extension work up to the point where I'm successfully emitting events to https://github.com/kamon-io/docker-grafana-graphite where I opened port 2004 but I don't know how to create a datasource with those Druid events.

Would you please give me a hint? I'm totally stuck on this. I cannot figure out if it is a matter of setting it up or nor.

Slim Bouguerra

unread,
May 3, 2016, 11:12:09 AM5/3/16
to Druid User
I am not sure what you mean with 
 I don't know how to create a datasource with those Druid events.
 are you trying to see the druid metrics within druid it self ? or via grafana ?

Jakub Liska

unread,
May 3, 2016, 11:15:52 AM5/3/16
to Druid User
I finally get it working : 

1) Run https://github.com/kamon-io/docker-grafana-graphite with published port 2004 
2) Open grafana user interface at host:80 and add datasource pointing to http://localhost:8000
3) Open graphite user interface at host:81 where you see druid metrics
4) Build a graph using the Graphite composer to test it works
5) Create a dashboard in Grafana UI with druid metrics

@Slim  ^^ This is just a know-how for complete Graphite/Grafana newbies :-)
Reply all
Reply to author
Forward
0 new messages