Change metric namespace from wmi to windows

This commit is contained in:
Calle Pettersson
2020-05-24 20:36:25 +02:00
parent 6f90d83b83
commit eaa23705d0
4 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ var (
).Default("C:\\Program Files\\wmi_exporter\\textfile_inputs").String()
mtimeDesc = prometheus.NewDesc(
"wmi_textfile_mtime_seconds",
prometheus.BuildFQName(Namespace, "textfile", "mtime_seconds"),
"Unixtime mtime of textfiles successfully read.",
[]string{"file"},
nil,
@@ -281,7 +281,7 @@ fileLoop:
// Export if there were errors.
ch <- prometheus.MustNewConstMetric(
prometheus.NewDesc(
"wmi_textfile_scrape_error",
prometheus.BuildFQName(Namespace, "textfile", "scrape_error"),
"1 if there was an error opening or reading a file, 0 otherwise",
nil, nil,
),