contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.71k stars 228 forks source link

Unit of statsd time metrics #419

Closed pbrisbin closed 1 year ago

pbrisbin commented 1 year ago

In https://github.com/contribsys/faktory/wiki/Ent-Metrics#job-execution, it just says jobs.perform Gauge (time).

I'm having trouble correlating values I'm seeing with other sources, so I just want to know for sure: is this metric sent in seconds or milliseconds?

Thanks in advance.

mperham commented 1 year ago

It calls client.Timing() under the covers, which is documented as milliseconds.

https://pkg.go.dev/github.com/DataDog/datadog-go/v5/statsd?utm_source=godoc#Client.Timing