pve to proxmox

This commit is contained in:
Ludovic Cartier 2024-04-25 09:22:30 +02:00
parent b0e49711cb
commit e5d1adeded
3 changed files with 7 additions and 4 deletions

View File

@ -62,6 +62,9 @@
| prometheus_postgres_exporter_user | The user for Postgres exporter | String | "postgres" |
| prometheus_postgres_exporter_password | The password for Postgres exporter | String | "changeme_" |
| prometheus_postgres_exporter_port | The port for Postgres exporter | Integer | 5432 |
| prometheus_proxmox_exporter_user | Username used to contact Proxmox API | String | "" |
| prometheus_proxmox_exporter_password | Password for previous username | String | "" |
| prometheus_proxmox_exporter_node | Proxmox node to metrics from | String | "" |
| prometheus_redis_exporter_addr | The address for Redis exporter | String | "redis://localhost:6379" |
| prometheus_redis_exporter_user | The user for Redis exporter | String | "" |
| prometheus_redis_exporter_password | The password for Redis exporter | String | "" |

View File

@ -414,13 +414,13 @@ scrape_configs:
replacement: '${1}'
{% endif %}
{% if prometheus_pve_exporter_targets is defined %}
{% if prometheus_proxmox_exporter_targets is defined %}
# proxmox #
- job_name: pve
scrape_interval: 30s
static_configs:
- targets:
{% for target in prometheus_pve_exporter_targets %}
{% for target in prometheus_proxmox_exporter_targets %}
- {{ target }}:9221
{% endfor %}
metrics_path: /pve

View File

@ -408,13 +408,13 @@ scrape_configs:
replacement: '${1}'
{% endif %}
{% if prometheus_pve_exporter_targets is defined %}
{% if prometheus_proxmox_exporter_targets is defined %}
# proxmox #
- job_name: pve
scrape_interval: 30s
static_configs:
- targets:
{% for target in prometheus_pve_exporter_targets %}
{% for target in prometheus_proxmox_exporter_targets %}
- {{ target }}:9221
{% endfor %}
metrics_path: /pve