stats_hero & estatsd with oschef


#1

Has anyone got oschef hooked up to use the stats_hero -> estatsd -> graphite pipeline?

It doesn’t seem like there’s an estatsd shipping with the omnibus server (no estatsd in /opt-chef-server/embedded/service), so can anyone confirm that it needs to be installed separately?

Also, can someone confirm that stats_hero only works with estatsd? It looks like stats_hero:do_report_metrics/3 [1] uses “|m” and “|h” metric types, making it incompatible with etsy statsd.

~j

1: https://github.com/opscode/stats_hero/blob/master/src/stats_hero.erl#L457


#2

Hi Joseph,

I’m currently using stats_hero -> estatsd -> graphite for my organization.
estatsd doesn’t ship with chef-server, you’ll have to deploy it yourself.
If you’re familiar with deploying erlang apps with rebar, this should be a
breeze. I followed the steps on the estatsd github:

chef-server out of the box expects estatsd to be running on localhost at
port 9466. If this works for you, you should be able to spin up estatsd on
that port, and if you configured where your graphite instance is located,
you should begin seeing metrics flowing in without reconfiguring or
restarting chef-server. If these assumptions aren’t what you’re looking
for, you can modify your chef-server.rb to change these values, then run
chef-server-ctl reconfigure to pick these changes up. These values default
to:

I’ve only tried using the suggested estatsd, I have not used any other
statsd implementation, so can’t comment on those results.

HTH.

-Dennis

On Wed, Mar 26, 2014 at 11:25 AM, Joseph Holsten
joseph@josephholsten.comwrote:

Has anyone got oschef hooked up to use the stats_hero -> estatsd ->
graphite pipeline?

It doesn’t seem like there’s an estatsd shipping with the omnibus server
(no estatsd in /opt-chef-server/embedded/service), so can anyone confirm
that it needs to be installed separately?

Also, can someone confirm that stats_hero only works with estatsd? It
looks like stats_hero:do_report_metrics/3 [1] uses “|m” and “|h” metric
types, making it incompatible with etsy statsd.

~j

1:
https://github.com/opscode/stats_hero/blob/master/src/stats_hero.erl#L457


#3

Hiya,

Joseph Holsten joseph@josephholsten.com writes:

Has anyone got oschef hooked up to use the stats_hero -> estatsd ->
graphite pipeline?

I did some asking and James Casey has cookbook that should setup this
stack. He’s doing some cleanup on it so we can open the repo. ETA this
week.

It doesn’t seem like there’s an estatsd shipping with the omnibus
server (no estatsd in /opt-chef-server/embedded/service), so can
anyone confirm that it needs to be installed separately?

Correct, estatsd does not ship with OSC at present. So you’d need to
install it yourself.

Also, can someone confirm that stats_hero only works with estatsd? It
looks like stats_hero:do_report_metrics/3 [1] uses “|m” and "|h"
metric types, making it incompatible with etsy statsd.

Correct.

  • seth


Seth Falcon | Development Lead | CHEF | http://www.getchef.com/ | @sfalcon