fix(proxmox): Conf-Platzhalter rendern (fetch_conf), PVE-Erkennung vor dem Schreiben der Env; README mit Token-Anlage
This commit is contained in:
1 parent
5326d90975
commit
d8b910063e
2 files changed
+40
-6
No files matched your search
@@ -43,14 +43,32 @@ curl -fsSL …/install.sh | sudo sh -s -- --name <node> --token <TOKEN> --collec
|
||||
|
||||
### Proxmox VE
|
||||
|
||||
Zuerst auf dem PVE-Host den Token anlegen:
|
||||
|
||||
```sh
|
||||
pveum user add telegraf@pve
|
||||
pveum user token add telegraf@pve monitoring -privsep 1 # Secret notieren
|
||||
pveum user token add telegraf@pve monitoring -privsep 1 # UUID notieren!
|
||||
pveum acl modify / -token 'telegraf@pve!monitoring' -role PVEAuditor
|
||||
curl -fsSL …/install.sh | sudo sh -s -- --name pve1 --token <TOKEN> \
|
||||
--role proxmox --pve-token 'telegraf@pve!monitoring=<secret>'
|
||||
```
|
||||
|
||||
Dann auf **jedem PVE-Knoten** (auf dem Host selbst, nicht in einer VM):
|
||||
|
||||
```sh
|
||||
curl -fsSL https://gitea.m-m.bio/mm/netbird-telegraf-installer/raw/branch/main/install.sh \
|
||||
| sudo sh -s -- --name pve1 --token <BEARER-TOKEN> \
|
||||
--role proxmox --pve-token 'telegraf@pve!monitoring=<UUID>'
|
||||
```
|
||||
|
||||
`--pve-node` und `--pve-url` sind optional: Ohne Angabe ermittelt das Script den Knotennamen per `pvesh get /nodes` und nutzt `https://127.0.0.1:8006/api2/json`.
|
||||
|
||||
| Option | Bedeutung |
|
||||
|---|---|
|
||||
| `--pve-token 'user@realm!id=<uuid>'` | **Pflicht** für VM/CT-Metriken |
|
||||
| `--pve-node <n>` | PVE-Knotenname wie im PVE-Baum (Default: per `pvesh` erkannt) |
|
||||
| `--pve-url <u>` | PVE-API-URL, wenn Telegraf nicht auf dem PVE-Host läuft |
|
||||
|
||||
Liefert: Node-Metriken (CPU, RAM, Disk, Netzwerk), VM-/CT-Statistiken pro `vmid` (CPU, RAM, Disk, Netz, Uptime, Status).
|
||||
|
||||
### Apache
|
||||
|
||||
Wird automatisch erkannt (`apache2ctl`/`httpd`). Access-Log geht roh nach Loki. Für Request-Metriken `inputs.apache` in `telegraf/apache.conf` einschalten (braucht mod_status).
|
||||
|
||||
Reference in new issue
Block a user