promtool: Fix windows_time_ntp_client_time_source_count

Related to #659, this is a breaking change!

Fixes
```
windows_time_ntp_client_time_source_count non-histogram and non-summary metrics should not have "_count" suffix
```
for the time collector.

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:
Mario Trangoni
2021-12-30 14:53:34 +01:00
parent fc33fa320b
commit 9d1628a329
2 changed files with 2 additions and 2 deletions

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,