Skip to content

Commit

Permalink
instrumenting/clientlibs: add process_threads
Browse files Browse the repository at this point in the history
This reserves a new well-known `process_threads` gauge for client
libraries, in order to expose OS threads count on all instrumented
processes.
As this metrics is language/runtime independent, it makes sense to
be under the `process_` namespace so that libraries can align on
the name (if/when they start exposing this).

Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
  • Loading branch information
lucab committed Aug 5, 2021
1 parent 2ea2e45 commit 72b9ad3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/docs/instrumenting/writing_clientlibs.md
Expand Up @@ -345,6 +345,7 @@ all times in unixtime/seconds.
| `process_resident_memory_bytes` | Resident memory size in bytes. | bytes |
| `process_heap_bytes` | Process heap size in bytes. | bytes |
| `process_start_time_seconds` | Start time of the process since unix epoch in seconds. | seconds |
| `process_threads` | Number of OS threads in the process. | threads |

### Runtime metrics

Expand Down

0 comments on commit 72b9ad3

Please sign in to comment.