Initialer Load
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
|
container_name: prometheus
|
||||||
ports:
|
ports:
|
||||||
- 9090:9090
|
- 9090:9090
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
- /prometheus/:/prometheus
|
- /prometheus/:/prometheus
|
||||||
image: prom/prometheus
|
image: prom/prometheus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
|
||||||
prometheus-data:
|
|
||||||
external: true
|
|
||||||
name: prometheus-data
|
|
||||||
networks: {}
|
networks: {}
|
||||||
|
|||||||
@@ -0,0 +1,157 @@
|
|||||||
|
# Sample config for Prometheus.
|
||||||
|
|
||||||
|
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.
|
||||||
|
# scrape_timeout: 30s # is set to the global default (10s).
|
||||||
|
|
||||||
|
# Attach these labels to any time series or alerts when communicating with
|
||||||
|
# external systems (federation, remote storage, Alertmanager).
|
||||||
|
external_labels:
|
||||||
|
monitor: 'example'
|
||||||
|
|
||||||
|
# Alertmanager configuration
|
||||||
|
alerting:
|
||||||
|
alertmanagers:
|
||||||
|
- static_configs:
|
||||||
|
- targets: ['localhost:9093']
|
||||||
|
|
||||||
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
||||||
|
rule_files:
|
||||||
|
# - "first_rules.yml"
|
||||||
|
# - "second_rules.yml"
|
||||||
|
|
||||||
|
# A scrape configuration containing exactly one endpoint to scrape:
|
||||||
|
# Here it's Prometheus itself.
|
||||||
|
scrape_configs:
|
||||||
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
||||||
|
- job_name: 'prometheus'
|
||||||
|
|
||||||
|
# Override the global default and scrape targets from this job every 5 seconds.
|
||||||
|
scrape_interval: 10s
|
||||||
|
scrape_timeout: 5s
|
||||||
|
|
||||||
|
# metrics_path defaults to '/metrics'
|
||||||
|
# scheme defaults to 'http'.
|
||||||
|
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9090']
|
||||||
|
|
||||||
|
# - job_name: node
|
||||||
|
# # If prometheus-node-exporter is installed, grab stats about the local
|
||||||
|
# # machine by default.
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['localhost:9100']
|
||||||
|
# - targets: ['192.168.178.80:9100']
|
||||||
|
# - targets: ['192.168.178.187:9100']
|
||||||
|
# - targets: ['192.168.178.204:9100']
|
||||||
|
# - targets: ['192.168.178.183:9100']
|
||||||
|
|
||||||
|
# Example Prometheus scrape_configs entry
|
||||||
|
- job_name: "homeassistant"
|
||||||
|
scrape_interval: 60s
|
||||||
|
metrics_path: /api/prometheus
|
||||||
|
|
||||||
|
# Long-Lived Access Token
|
||||||
|
authorization:
|
||||||
|
credentials: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI2YjNjNjZkZjJjMDA0ZjMzYjllNmF
|
||||||
|
hMWY1NmFlMmU0ZSIsImlhdCI6MTc0MTk1ODk3OCwiZXhwIjoyMDU3MzE4OTc4fQ.jm7jrzMG6tt4Qnr46ZxMWZK6xKDkulKY
|
||||||
|
vLxvm0IFfBw"
|
||||||
|
|
||||||
|
scheme: http
|
||||||
|
static_configs:
|
||||||
|
- targets: ['192.168.178.200:8123']
|
||||||
|
|
||||||
|
# - job_name: 'uptime'
|
||||||
|
# scrape_interval: 30s
|
||||||
|
# scheme: http
|
||||||
|
# metrics_path: '/metrics'
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:9001']
|
||||||
|
# basic_auth: # Only needed if authentication is enabled (default)
|
||||||
|
# username: admin
|
||||||
|
# password: tuSEt0jIgV8Y8z
|
||||||
|
|
||||||
|
# - job_name: "pihole"
|
||||||
|
# metrics_path: /metrics
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:9617']
|
||||||
|
|
||||||
|
# - job_name: 'adguard'
|
||||||
|
# metrics_path: /metrics
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:9618']
|
||||||
|
|
||||||
|
# - job_name: 'pve01'
|
||||||
|
# static_configs:
|
||||||
|
# - targets:
|
||||||
|
# - 192.168.178.80
|
||||||
|
# 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: 192.168.178.183:9619 # PVE exporter.
|
||||||
|
## - targets: ['192.168.178.183:9619/pve?target=192.168.178.80']
|
||||||
|
|
||||||
|
# - job_name: 'pve02'
|
||||||
|
# static_configs:
|
||||||
|
# - targets:
|
||||||
|
# - 192.168.178.187
|
||||||
|
# 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: 192.168.178.183:9619 # PVE exporter.
|
||||||
|
|
||||||
|
# - job_name: 'pve03'
|
||||||
|
# static_configs:
|
||||||
|
# - targets:
|
||||||
|
# - 192.168.178.204
|
||||||
|
# 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: 192.168.178.183:9619 # PVE exporter.
|
||||||
|
|
||||||
|
# - job_name: 'jellyfin'
|
||||||
|
# scheme: http
|
||||||
|
# metrics_path: /metrics
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:8096']
|
||||||
|
|
||||||
|
# - job_name: 'paperless'
|
||||||
|
# scheme: http
|
||||||
|
# metrics_path: /metrics
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:9622']
|
||||||
|
|
||||||
|
# - job_name: 'WUD'
|
||||||
|
# scheme: http
|
||||||
|
# metrics_path: /metrics
|
||||||
|
# static_configs:
|
||||||
|
# - targets: ['192.168.178.183:9700']
|
||||||
|
# basic_auth:
|
||||||
|
# username: sven
|
||||||
|
# password: gObtv#&^!KR$n7
|
||||||
|
# password: $apr1$$ir3cptob$eBkIR.L31wK4DlmGYRrEh.
|
||||||
|
|
||||||
|
- job_name: docker
|
||||||
|
# metrics_path defaults to '/metrics'
|
||||||
|
# scheme defaults to 'http'.
|
||||||
|
static_configs:
|
||||||
|
- targets: ["192.168.178.183:9323"]
|
||||||
Reference in New Issue
Block a user