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. Similar metrics are already exposed by Go and JVM
libraries, and this has been recently requested for Rust too.
As this metrics is runtime independent, it makes sense to have it
generally uniform across languages and libraries.

Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
  • Loading branch information
lucab committed Jun 2, 2021
1 parent 099300b commit 9921974
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 that currently exist. | threads |

### Runtime metrics

Expand Down

0 comments on commit 9921974

Please sign in to comment.