Update textfile collector default directory
This commit is contained in:
parent
eaa23705d0
commit
6efa6bed42
|
@ -37,7 +37,7 @@ var (
|
||||||
textFileDirectory = kingpin.Flag(
|
textFileDirectory = kingpin.Flag(
|
||||||
"collector.textfile.directory",
|
"collector.textfile.directory",
|
||||||
"Directory to read text files with metrics from.",
|
"Directory to read text files with metrics from.",
|
||||||
).Default("C:\\Program Files\\wmi_exporter\\textfile_inputs").String()
|
).Default("C:\\Program Files\\windows_exporter\\textfile_inputs").String()
|
||||||
|
|
||||||
mtimeDesc = prometheus.NewDesc(
|
mtimeDesc = prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "textfile", "mtime_seconds"),
|
prometheus.BuildFQName(Namespace, "textfile", "mtime_seconds"),
|
||||||
|
|
|
@ -14,7 +14,7 @@ Enabled by default? | Yes
|
||||||
|
|
||||||
The directory containing the files to be ingested. Only files with the extension `.prom` are read. The `.prom` file must end with an empty line feed to work properly.
|
The directory containing the files to be ingested. Only files with the extension `.prom` are read. The `.prom` file must end with an empty line feed to work properly.
|
||||||
|
|
||||||
Default value: `C:\Program Files\wmi_exporter\textfile_inputs`
|
Default value: `C:\Program Files\windows_exporter\textfile_inputs`
|
||||||
|
|
||||||
Required: No
|
Required: No
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ are collected to give information about the reading of the metrics themselves.
|
||||||
|
|
||||||
Name | Description | Type | Labels
|
Name | Description | Type | Labels
|
||||||
-----|-------------|------|-------
|
-----|-------------|------|-------
|
||||||
`wmi_textfile_scrape_error` | 1 if there was an error opening or reading a file, 0 otherwise | gauge | None
|
`windows_textfile_scrape_error` | 1 if there was an error opening or reading a file, 0 otherwise | gauge | None
|
||||||
`wmi_textfile_mtime_seconds` | Unix epoch-formatted mtime (modified time) of textfiles successfully read | gauge | file
|
`windows_textfile_mtime_seconds` | Unix epoch-formatted mtime (modified time) of textfiles successfully read | gauge | file
|
||||||
|
|
||||||
### Example metric
|
### Example metric
|
||||||
_This collector does not yet have explained examples, we would appreciate your help adding them!_
|
_This collector does not yet have explained examples, we would appreciate your help adding them!_
|
||||||
|
@ -38,7 +38,7 @@ _This collector does not yet have any useful queries added, we would appreciate
|
||||||
_This collector does not yet have alerting examples, we would appreciate your help adding them!_
|
_This collector does not yet have alerting examples, we would appreciate your help adding them!_
|
||||||
|
|
||||||
# Example use
|
# Example use
|
||||||
This Powershell script, when run in the `collector.textfile.directory` (default `C:\Program Files\wmi_exporter\textfile_inputs`), generates a valid `.prom` file that should successfully ingested by wmi_exporter.
|
This Powershell script, when run in the `collector.textfile.directory` (default `C:\Program Files\windows_exporter\textfile_inputs`), generates a valid `.prom` file that should successfully ingested by windows_exporter.
|
||||||
|
|
||||||
```Powershell
|
```Powershell
|
||||||
$alpha = 42
|
$alpha = 42
|
||||||
|
|
Loading…
Reference in New Issue