You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,9 @@ of the `ops` group. Read the **User and ACL Management** section for more info.
218
218
The backend needs to be supported by [Proxmox][pvesm]. Read the **Storage
219
219
Management** section for more info.
220
220
221
+
`pve_metric_servers` allows you to configure a metric server for the PVE cluster.
222
+
This is useful if you want to use InfluxDB, Graphite or other (with telegraf).
223
+
221
224
`pve_ssh_port` allows you to change the SSH port. If your SSH is listening on
222
225
a port other than the default 22, please set this variable. If a new node is
223
226
joining the cluster, the PVE cluster needs to communicate once via SSH.
@@ -420,6 +423,7 @@ pve_roles: [] # Added more roles with specific privileges. See section on User M
420
423
pve_groups: [] # List of group definitions to manage in PVE. See section on User Management.
421
424
pve_users: [] # List of user definitions to manage in PVE. See section on User Management.
422
425
pve_storages: [] # List of storages to manage in PVE. See section on Storage Management.
426
+
pve_metric_servers: [] # List of metric servers to configure in PVE.
423
427
pve_datacenter_cfg: {} # Dictionary to configure the PVE datacenter.cfg config file.
424
428
pve_domains_cfg: [] # List of realms to use as authentication sources in the PVE domains.cfg config file.
425
429
pve_no_log: false # Set this to true in production to prevent leaking of storage credentials in run logs. (may be used in other tasks in the future)
@@ -835,6 +839,50 @@ Then system interrupt remapping is supported and you do not need to enable unsaf
835
839
836
840
`pve_pcie_report_msrs`can be used to enable or disable logging messages of msrs warnings. If you see a lot of warning messages in your 'dmesg' system log, this value can be used to silence msrs warnings.
837
841
842
+
## Metrics Server Configuration
843
+
844
+
You can configure metric servers in Proxmox VE using the `pve_metric_servers` role variable. Below is an example configuration for different types of metric servers:
845
+
846
+
```yaml
847
+
pve_metric_servers:
848
+
- id: influxdb1
849
+
port: 8086
850
+
server: influxdb.example.com
851
+
type: influxdb
852
+
protocol: http
853
+
organization: myorg
854
+
bucket: mybucket
855
+
token: mytoken
856
+
timeout: 30
857
+
max_body_size: 25000000
858
+
verify_certificate: true
859
+
- id: graphite1
860
+
port: 2003
861
+
server: graphite.example.com
862
+
type: graphite
863
+
protocol: tcp
864
+
path: mygraphitepath
865
+
mtu: 1500
866
+
```
867
+
868
+
### Configuration Variables
869
+
870
+
- `id`: (required) Unique identifier for the metric server.
871
+
- `port`: (optional) Port of the metric server. Default is `8089`.
872
+
- `server`: (required) DNS name or IP address of the metric server.
873
+
- `type`: (optional) Type of metric server. Possible values: `influxdb`, `graphite`. Default is `influxdb`.
874
+
- `protocol`: (optional) Protocol used to send metrics. Possible values: `udp`, `tcp`, `http`, `https`. Default is `udp`.
875
+
- `disable`: (optional) Disable the metric server. Default is `false`.
876
+
- `organization`: (optional) Organization name. Available only for influxdb with the http v2 API.
877
+
- `bucket`: (optional) Bucket name for influxdb. Useful only with the http v2 API or compatible.
878
+
- `token`: (optional) InfluxDB access token. Required only when using the http v2 API.
879
+
- `path`: (optional) Graphite root path. Available only for graphite.
880
+
- `api_path_prefix`: (optional) API path prefix inserted between `<host>:<port>/` and `/api2/`. Useful if the InfluxDB service is running behind a reverse proxy. Available only for influxdb with the http v2 API.
881
+
- `timeout`: (optional) Timeout in seconds. Available only for influxdb with the http v2 API or Graphite TCP socket.
882
+
- `max_body_size`: (optional) Maximum body size in bytes. Available only for influxdb with the http v2 API. Default is `25000000`.
883
+
- `mtu`: (optional) MTU for UDP metric transmission.
884
+
- `verify_certificate`: (optional) Verify SSL certificate. Available only for influxdb with https.
885
+
838
886
## Developer Notes
839
887
840
888
When developing new features or fixing something in this role, you can test out
@@ -878,6 +926,7 @@ John Marion ([@jmariondev](https://github.com/jmariondev))
878
926
foerkede ([@foerkede](https://github.com/foerkede)) - ZFS storage support
879
927
Guiffo Joel ([@futuriste](https://github.com/futuriste)) - Pool configuration support
880
928
Adam Delo ([@ol3d](https://github.com/ol3d)) - PCIe Passthrough Support
929
+
Antoine Thys ([@thystips](https://github.com/thystips)) - Metric Servers Support
881
930
882
931
[Full list of contributors](https://github.com/lae/ansible-role-proxmox/graphs/contributors)
0 commit comments