mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-18 10:46:35 +00:00
promtool: Fix *_handle_count and *_thread_count
Related to #659, this is a breaking change! Fixes ``` windows_process_handle_count non-histogram and non-summary metrics should not have "_count" suffix windows_process_thread_count non-histogram and non-summary metrics should not have "_count" suffix ``` for process and terminal_services collectors. Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ func newProcessCollector() (Collector, error) {
|
||||
nil,
|
||||
),
|
||||
HandleCount: prometheus.NewDesc(
|
||||
prometheus.BuildFQName(Namespace, subsystem, "handle_count"),
|
||||
prometheus.BuildFQName(Namespace, subsystem, "handles"),
|
||||
"Total number of handles the process has open. This number is the sum of the handles currently open by each thread in the process.",
|
||||
[]string{"process", "process_id", "creating_process_id"},
|
||||
nil,
|
||||
@@ -121,7 +121,7 @@ func newProcessCollector() (Collector, error) {
|
||||
nil,
|
||||
),
|
||||
ThreadCount: prometheus.NewDesc(
|
||||
prometheus.BuildFQName(Namespace, subsystem, "thread_count"),
|
||||
prometheus.BuildFQName(Namespace, subsystem, "threads"),
|
||||
"Number of threads currently active in this process.",
|
||||
[]string{"process", "process_id", "creating_process_id"},
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user