seuros/hosted_graphite

Statsd increments not working

spilliton opened this issue · 0 comments

I'm very new to hosted graphite so it is entirely possible I'm doing something incorrect here, but here is what I'm seeing...I have a heroku rails app setup on the free-tier of HostedGraphite. I added an init script with the following:

HostedGraphite.api_key = "xxxxx"
HostedGraphite.protocol = :statsd
HostedGraphite.enabled = !!Rails.env.production?

I then added the following to a job that runs multiple times per minute:

HostedGraphite.increment('ApiHuntJob.perform') # I also tried HostedGraphite.increment('ApiHuntJob.perform', 1)

After a deploy I went to https://www.hostedgraphite.com/app/ on the "Overview" tab and I started seeing activity on the "Datapoint Rates" graph. However, after waiting for multiple hours it still said "0 Metrics Used out of 10" and I could not find my metric in the "Metrics" tab when searching for *.

I switched the protocol to :udp and changed the increment call to HostedGraphite.send_metric('ApiHuntJob.perform', 1) redeployed and now everything works as expected.