Skip to content

Instantly share code, notes, and snippets.

@tychoish
Created February 8, 2019 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tychoish/003b9b7d537695b2937e7bf70e2433e1 to your computer and use it in GitHub Desktop.
Save tychoish/003b9b7d537695b2937e7bf70e2433e1 to your computer and use it in GitHub Desktop.
// all values optional,
// counters and timers are cumulative,
// gauges are discrete,
{
"ts": <bson timesampt>,
"id": <long, thread id, optional>,
"counters": {
"n": <inc long>,
"ops": <operations long>,
"size": <bytes>,
"errors": <long>,
},
"timers": {
"duration": <operation duration ns>,
"total": <total time duration ns>,
},
"gauges": {
"state": <long, optional>,
"workers": <long>,
"failed": <bool>,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment