-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: Export process metrics using prometheus-client (#2552)
* Move process metrics from linkerd-app-core to linkerd-metrics (with a feature flag). * Add a linkered_metrics::prom::registry helper that automatically configures process metrics when the feature is enabled. * Add a process_threads metric to help surface when the multi-core proxy runtime is in use. * All of this uses prometheus-client to set up for future reusability. Before # HELP process_start_time_seconds Time that the process started (in seconds since the UNIX epoch) # TYPE process_start_time_seconds gauge process_start_time_seconds 1701551542 # HELP process_uptime_seconds_total Total time since the process started (in seconds) # TYPE process_uptime_seconds_total counter process_uptime_seconds_total 1782.137 # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. # TYPE process_cpu_seconds_total counter process_cpu_seconds_total 0.72 # HELP process_virtual_memory_bytes Virtual memory size in bytes. # TYPE process_virtual_memory_bytes gauge process_virtual_memory_bytes 111042560 # HELP process_resident_memory_bytes Resident memory size in bytes. # TYPE process_resident_memory_bytes gauge process_resident_memory_bytes 33910784 # HELP process_open_fds Number of open file descriptors. # TYPE process_open_fds gauge process_open_fds 28 # HELP process_max_fds Maximum number of open file descriptors. # TYPE process_max_fds gauge process_max_fds 1048576 # HELP proxy_build_info Proxy build info # TYPE proxy_build_info gauge proxy_build_info{version="2.213.0",git_sha="9f7e7ac",profile="release",date="2023-11-16T23:24:26Z",vendor="linkerd"} 1 After # HELP proxy_build_info Proxy build info. # TYPE proxy_build_info gauge proxy_build_info{date="2023-12-06T02:15:30Z",git_sha="9c29322d5",profile="release",vendor="code@ver-sea",version="0.0.0-dev.9c29322d5"} 1 # HELP process_start_time_seconds Time that the process started (in seconds since the UNIX epoch). # TYPE process_start_time_seconds gauge # UNIT process_start_time_seconds seconds process_start_time_seconds 1701829321.4647413 # HELP process_uptime_seconds Total time since the process started (in seconds) # TYPE process_uptime_seconds counter # UNIT process_uptime_seconds seconds process_uptime_seconds_total 51.986633717 # HELP process_cpu_seconds Total user and system CPU time spent in seconds # TYPE process_cpu_seconds counter # UNIT process_cpu_seconds seconds process_cpu_seconds_total 0.04 # HELP process_virtual_memory_bytes Virtual memory size in bytes # TYPE process_virtual_memory_bytes gauge # UNIT process_virtual_memory_bytes bytes process_virtual_memory_bytes 108208128 # HELP process_resident_memory_bytes Resident memory size in bytes # TYPE process_resident_memory_bytes gauge # UNIT process_resident_memory_bytes bytes process_resident_memory_bytes 27471872 # HELP process_open_fds Number of open file descriptors # TYPE process_open_fds gauge process_open_fds 21 # HELP process_max_fds Maximum number of open file descriptors # TYPE process_max_fds gauge process_max_fds 1048576 # HELP process_threads Number of OS threads in the process. # TYPE process_threads gauge process_threads 2 # EOF
- Loading branch information
Showing
16 changed files
with
219 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.