spacemonkeygo / monkit

A flexible process data collection, metrics, monitoring, instrumentation, and tracing client library for Go
http://godoc.org/gopkg.in/spacemonkeygo/monkit.v2
Apache License 2.0
480 stars 33 forks source link

present: include elapsed time in json #56

Closed egonelbre closed 5 months ago

egonelbre commented 6 months ago

When requesting json output from data monitoring pipelines it's useful to get the exact elapsed time, similarly to ps output.

I wasn't quite sure whether this should be only output with a optional query argument or not (e.g. /ps/json?details=elapsed or /ps/json-details).

Relevant context in https://forum.storj.io/t/missing-debug-information/26053/9