All types are gauges
sb8244 opened this issue · comments
I was debugging why the counter is incompatible with datadog statsd counters. I found that the type reported to statsd is gauge. I read at https://github.com/pinterest/elixometer/blob/master/lib/updater.ex#L86 that the type passed to exometer is always a gauge update
rather than counter (or other type) specific functions.
Is this expected behavior?
Sorry. I misunderstood how exometer works. It only exposes :exometer.update
for all types. I am still unsure of how to get this working, but will close this issue.
That's not expected behavior, do you have example code?
Also, if you want something that's a little simpler, you can use https://github.com/discordapp/instruments, which doesn't depend on exometer, but has probes.
Thanks @scohen I'll check that out!
So it turns out that my issue was from not having a type_map defined for my exometer_reporter_statsd module. I configured this and got counts reporting. However, it turned out to not work for me in the end and I had to use a statsd library directly (statix).
Appreciate your time and pointing me to the instruments library!
@sb8244 , Instruments relies on Statix as well, and if you use counters, it has much better performance.