Super hero protocol / estatsd format

Hi,

I’m trying to understand super hero protocol format and I have some questions:

Based on:
https://github.com/chef/estatsd/blob/master/src/estatsd_shp.erl#L79-L86 what each unit type represents?

m - meters?
h - histograms?
mr - micrometers?
g - gauges?

also https://github.com/chef/stats_hero#metrics-reported-to-estatsd there is an example:

1|167
test_hero.application.allRequests:1|m
test_hero.test-host.allRequests:1|m
test_hero.application.byRequestType.nodes.PUT:1|m

What is “1|167”?

This is part of the Stats Hero sender method, which prepends the data packet with protocol version number|payload length to the payload.

If you’re trying to get a “raw” statsd packet, there’s a config setting to provide Chef Server to change the protocol, as well as other tunables.

This may not currently work, as a recent fix was put into the stats-hero library used to support removing the header to fix this report.

Hi,

This may not currently work, as a recent fix was put into the stats-hero library1 used to support removing the header to fix this report.

Until the fix lands in Chef Server, the statsd output will still work but the statsd server will produce a large number of log messages complaining about the malformed line. All the exported statistics will still be captured though. The fix should be in the next release of Chef Server.

Cheers,

Steven

1 Like