pve konfiguriert, localhost entfernt
This commit is contained in:
+10
-1
@@ -15,7 +15,16 @@ services:
|
|||||||
- '--storage.tsdb.path=/prometheus'
|
- '--storage.tsdb.path=/prometheus'
|
||||||
- '--storage.tsdb.retention.time=7200d'
|
- '--storage.tsdb.retention.time=7200d'
|
||||||
- '--storage.tsdb.retention.size=0'
|
- '--storage.tsdb.retention.size=0'
|
||||||
|
|
||||||
image: prom/prometheus
|
image: prom/prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
pve-exporter:
|
||||||
|
image: prompve/prometheus-pve-exporter:latest
|
||||||
|
container_name: pve-exporter
|
||||||
|
ports:
|
||||||
|
- "9221:9221"
|
||||||
|
volumes:
|
||||||
|
- /opt/prometheus/pve.yml:/etc/prometheus/pve.yml:ro
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
networks: {}
|
networks: {}
|
||||||
|
|||||||
Regular → Executable
+29
-28
@@ -10,6 +10,15 @@ global:
|
|||||||
external_labels:
|
external_labels:
|
||||||
monitor: 'example'
|
monitor: 'example'
|
||||||
|
|
||||||
|
#Storage-Optionen
|
||||||
|
storage:
|
||||||
|
tsdb:
|
||||||
|
retention:
|
||||||
|
time: 7200d # Deine gewünschte Zeit
|
||||||
|
size: 0 # Optional: Max Size (0 = deaktiviert)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Alertmanager configuration
|
# Alertmanager configuration
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
@@ -25,17 +34,11 @@ rule_files:
|
|||||||
# Here it's Prometheus itself.
|
# Here it's Prometheus itself.
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||||
- job_name: 'prometheus'
|
# - job_name: 'prometheus'
|
||||||
|
# scrape_interval: 10s
|
||||||
# Override the global default and scrape targets from this job every 5 seconds.
|
# scrape_timeout: 5s
|
||||||
scrape_interval: 10s
|
# static_configs:
|
||||||
scrape_timeout: 5s
|
# - targets: ['localhost:9090']
|
||||||
|
|
||||||
# metrics_path defaults to '/metrics'
|
|
||||||
# scheme defaults to 'http'.
|
|
||||||
|
|
||||||
static_configs:
|
|
||||||
- targets: ['localhost:9090']
|
|
||||||
|
|
||||||
# - job_name: node
|
# - job_name: node
|
||||||
# # If prometheus-node-exporter is installed, grab stats about the local
|
# # If prometheus-node-exporter is installed, grab stats about the local
|
||||||
@@ -54,9 +57,7 @@ scrape_configs:
|
|||||||
|
|
||||||
# Long-Lived Access Token
|
# Long-Lived Access Token
|
||||||
authorization:
|
authorization:
|
||||||
credentials: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI2YjNjNjZkZjJjMDA0ZjMzYjllNmF
|
credentials: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3ZGI4OTBkMTQ0NzI0NWJlOTk2N2VlZjFlMTM3MTJlNiIsImlhdCI6MTc2NjQ3NjQ2MiwiZXhwIjoyMDgxODM2NDYyfQ.1sx_LA3f1sEXlBe0-ONVCacNNIEe2KcsWu6MmZBmzTc"
|
||||||
hMWY1NmFlMmU0ZSIsImlhdCI6MTc0MTk1ODk3OCwiZXhwIjoyMDU3MzE4OTc4fQ.jm7jrzMG6tt4Qnr46ZxMWZK6xKDkulKY
|
|
||||||
vLxvm0IFfBw"
|
|
||||||
|
|
||||||
scheme: http
|
scheme: http
|
||||||
static_configs:
|
static_configs:
|
||||||
@@ -113,20 +114,20 @@ vLxvm0IFfBw"
|
|||||||
# - target_label: __address__
|
# - target_label: __address__
|
||||||
# replacement: 192.168.178.183:9619 # PVE exporter.
|
# replacement: 192.168.178.183:9619 # PVE exporter.
|
||||||
|
|
||||||
# - job_name: 'pve03'
|
- job_name: 'pve03'
|
||||||
# static_configs:
|
static_configs:
|
||||||
# - targets:
|
- targets:
|
||||||
# - 192.168.178.204
|
- 192.168.178.204
|
||||||
# metrics_path: /pve
|
metrics_path: /pve
|
||||||
## params:
|
# params:
|
||||||
## module: [default]
|
# module: [pve03]
|
||||||
# relabel_configs:
|
relabel_configs:
|
||||||
# - source_labels: [__address__]
|
- source_labels: [__address__]
|
||||||
# target_label: __param_target
|
target_label: __param_target
|
||||||
# - source_labels: [__param_target]
|
- source_labels: [__param_target]
|
||||||
# target_label: instance
|
target_label: instance
|
||||||
# - target_label: __address__
|
- target_label: __address__
|
||||||
# replacement: 192.168.178.183:9619 # PVE exporter.
|
replacement: 192.168.178.183:9221 # PVE exporter.
|
||||||
|
|
||||||
# - job_name: 'jellyfin'
|
# - job_name: 'jellyfin'
|
||||||
# scheme: http
|
# scheme: http
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
default:
|
||||||
|
user: prometheus@pam
|
||||||
|
password: prometheus
|
||||||
|
# token_name: prometheus
|
||||||
|
# token_value: "e7e8bfd2-1a4a-405e-a48b-6ad3b51e7770"
|
||||||
|
verify_ssl: false
|
||||||
Reference in New Issue
Block a user