contribsys / faktory

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

Unit of statsd time metrics #419

Closed pbrisbin closed 2 years ago

pbrisbin commented 2 years 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 2 years 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