mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-10-21 13:25:07 +02:00
docu update for sudo
This commit is contained in:
committed by
Thomas Gruber
parent
67cdbefb02
commit
99e066ff5f
@@ -14,6 +14,7 @@ hugo_path: docs/reference/cc-metric-collector/collectors/gpfs.md
|
|||||||
```json
|
```json
|
||||||
"gpfs": {
|
"gpfs": {
|
||||||
"mmpmon_path": "/path/to/mmpmon",
|
"mmpmon_path": "/path/to/mmpmon",
|
||||||
|
"use_sudo": "true",
|
||||||
"exclude_filesystem": [
|
"exclude_filesystem": [
|
||||||
"fs1"
|
"fs1"
|
||||||
],
|
],
|
||||||
@@ -32,6 +33,11 @@ in the configuration.
|
|||||||
The path to the `mmpmon` command can be configured with the `mmpmon_path` option
|
The path to the `mmpmon` command can be configured with the `mmpmon_path` option
|
||||||
in the configuration. If nothing is set, the collector searches in `$PATH` for `mmpmon`.
|
in the configuration. If nothing is set, the collector searches in `$PATH` for `mmpmon`.
|
||||||
|
|
||||||
|
If cc-metric-collector is run as non-root, `sudo` can be enabled with `use_sudo`.
|
||||||
|
Because `mmpmon` is by default only executable as root, the Go procedure to
|
||||||
|
search for it in `$PATH` will fail. If you use `sudo`, you must specify the
|
||||||
|
complete path for `mmpmon` using the parameter `mmpmon_path`.
|
||||||
|
|
||||||
|
|
||||||
Metrics:
|
Metrics:
|
||||||
* `gpfs_bytes_read`
|
* `gpfs_bytes_read`
|
||||||
|
Reference in New Issue
Block a user