Added missing example config

This commit is contained in:
Jan Lošťák
2025-02-22 21:28:17 +01:00
parent f78df9d3e3
commit 83f986e266

45
config.example.yaml Normal file
View File

@@ -0,0 +1,45 @@
# Server configuration.
host: 0.0.0.0
port: 9090
# Log level.
# Panic = 0, Fatal = 1, Error = 2, Warn = 3,
# Info = 4, Debug = 5, Trace = 6
logLevel: 6
# Proxmox API.
proxmox:
# Proxmox API token configuration.
# Ensure you assign the 'PVEAuditor' permission to both the user and the API token when generating the token.
# For security reasons, assign only the 'PVEAuditor' role to limit permissions appropriately.
token:
tokenId: super
secret: secret
# Proxmox API hosts.
# If you are running a multi-node cluster, add multiple API hosts to ensure high availability of metrics.
# Note: This configuration is not intended for gathering metrics from multiple PVE clusters.
# For multiple PVE clusters, deploy a separate exporter instance for each cluster.
hosts: []
# Scrape interval in seconds.
interval: 15
# Proxmox metrics configuration.
metrics:
# Enable collection of cluster state metrics.
clusterState: true
# Enable collection of LXC container metrics.
lxc: true
# Enable collection of QEMU virtual machine metrics.
qemu: true
# Enable collection of physical disk metrics.
disk: true
# Enable collection of node storage metrics.
storage: true
# Enable collection of node status metrics.
nodeStatus: true
# Enable collection of node subscription details.
subscription: true
# Enable collection of software-defined network (SDN) metrics.
sdn: true