mirror of
https://github.com/thegeeklab/prometheus-pve-sd.git
synced 2024-11-26 11:20:39 +00:00
docs: add Prometheus User
section to getting started guide (#663)
This commit is contained in:
parent
e76b9e79eb
commit
c6bfb01805
@ -4,6 +4,22 @@ title: Getting Started
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Prometheus User
|
||||
|
||||
To allow prometheus-pve-sd to access the Proxmox API, we recommend creating a dedicated user.
|
||||
The minimum set of privileges for the user is as follows:
|
||||
|
||||
- `VM.Audit`
|
||||
- `VM.Monitor`
|
||||
|
||||
Below are the commands to create the new user `prometheus-pve-sd@pve` and assign the necessary privileges:
|
||||
|
||||
```Shell
|
||||
pveum role add prometheus-pve-sd-role --privs 'VM.Audit,VM.Monitor'
|
||||
pveum user add prometheus-pve-sd@pve --password <password>
|
||||
pveum aclmod / -user prometheus-pve-sd@pve -role prometheus-pve-sd-role
|
||||
```
|
||||
|
||||
## Available Labels
|
||||
|
||||
The following list of meta labels can be used to relabel your scrape results:
|
||||
|
Loading…
Reference in New Issue
Block a user