Merge pull request #901 from mjtrangoni/fix-some-promtool-warnings

Fix some promtool warnings
This commit is contained in:
Calle Pettersson
2022-01-06 09:12:55 +01:00
committed by GitHub
6 changed files with 10 additions and 10 deletions

View File

@@ -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,

View File

@@ -82,7 +82,7 @@ func NewTerminalServicesCollector() (Collector, error) {
nil,
),
HandleCount: prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "handle_count"),
prometheus.BuildFQName(Namespace, subsystem, "handles"),
"Total number of handles currently opened by this process. This number is the sum of the handles currently opened by each thread in this process.",
[]string{"session_name"},
nil,
@@ -142,7 +142,7 @@ func NewTerminalServicesCollector() (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. An instruction is the basic unit of execution in a processor, and a thread is the object that executes instructions. Every running process has at least one thread.",
[]string{"session_name"},
nil,

View File

@@ -45,7 +45,7 @@ func newTimeCollector() (Collector, error) {
nil,
),
NTPClientTimeSourceCount: prometheus.NewDesc(
prometheus.BuildFQName(Namespace, subsystem, "ntp_client_time_source_count"),
prometheus.BuildFQName(Namespace, subsystem, "ntp_client_time_sources"),
"Active number of NTP Time sources being used by the client",
nil,
nil,