Adicionar templates/proxmox-prometheus-pve-exporter/README.md

This commit is contained in:
Halbe Bruno 2025-02-16 20:39:24 -03:00
parent 2db43b3a9f
commit 7215fe55d2

View File

@ -0,0 +1,97 @@
# Proxmox VE Exporter
## Instale o Prometheus
cd /tmp && wget -4 -qO- https://git.ipv0.com.br/0/zabbix/raw/branch/master/templates/proxmox-prometheus-pve-exporter/install-prometheus.sh | bash
## Instale o Prometheus Proxmox VE Exporter
cd /tmp && wget -4 -qO- https://git.ipv0.com.br/0/zabbix/raw/branch/master/templates/proxmox-prometheus-pve-exporter/pve-exporter.sh | bash
Edite o arquivo /etc/prometheus/pve.yml e configure o acesso:
```
default:
user: pve-exporter@pve
password: senha1234
verify_ssl: false
```
Configurar os exports em /etc/prometheus/prometheus.yml
```
cp /etc/prometheus/prometheus.yml /etc/prometheus/prometheus.yml_BACKUP
pico /etc/prometheus/prometheus.yml
```
```
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# REGRAS DE ALERTA
rule_files:
- 'alerts/*.yml'
# CONFIGURACAO DO ALERTMANAGER
alerting:
alertmanagers:
- static_configs:
- targets: ['45.6.116.215:9093']
# VictoriaMetrics
remote_write:
- url: "http://45.6.116.215:8428/api/v1/write"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: 'ceph'
scrape_interval: 30s
static_configs:
- targets: ['dmsv01.gtecnet.local:9283']
- targets: ['dmsv02.gtecnet.local:9283']
- targets: ['dmsv03.gtecnet.local:9283']
- targets: ['pve01.gtecnet.local:9283']
- targets: ['pve02.gtecnet.local:9283']
- targets: ['pve03.gtecnet.local:9283']
- targets: ['pve04.gtecnet.local:9283']
# TARGETS CLUSTER
- targets: ['172.27.31.21:9283', '172.27.31.22:9283', '172.27.31.23:9283']
labels:
cluster: cluster-gtecnet02
- targets: ['172.27.31.11:9283', '172.27.31.12:9283', '172.27.31.13:9283', '172.27.31.14:9283']
labels:
cluster: cluster-gtecnet01
- job_name: 'node'
scrape_interval: 15s
static_configs:
- targets: ['dmsv01.gtecnet.local:9100']
- targets: ['dmsv02.gtecnet.local:9100']
- targets: ['dmsv03.gtecnet.local:9100']
- targets: ['pve01.gtecnet.local:9100']
- targets: ['pve02.gtecnet.local:9100']
- targets: ['pve03.gtecnet.local:9100']
- targets: ['pve04.gtecnet.local:9100']
# Essa parte só é utilizada caso queira pegar informações das VMs
- job_name: 'pve'
static_configs:
- targets:
- gtecnet02
metrics_path: /pve
params:
module: [default]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 127.0.0.1:9221 # PVE exporter.
```