prometheus omgezet samen met zijn config.
This commit is contained in:
1 parent
5c218d716a
commit
e7b2c6cca3
3 files changed
+105
-1
No files matched your search
+25
-1
@@ -42,4 +42,28 @@ services:
|
||||
- /var/run:/var/run:ro
|
||||
- /sys:/sys:ro
|
||||
- /var/lib/docker/:/var/lib/docker:ro
|
||||
- /dev/disk/:/dev/disk:ro
|
||||
- /dev/disk/:/dev/disk:ro
|
||||
prometheus:
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
container_name: "prometheus"
|
||||
environment:
|
||||
- "TZ=Europe/Berlin"
|
||||
- "HOST_OS=Unraid"
|
||||
- "HOST_HOSTNAME=Atlas"
|
||||
- "HOST_CONTAINERNAME=prometheus"
|
||||
image: "prom/prometheus:v3.6.0"
|
||||
labels:
|
||||
maintainer: "The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||
net.unraid.docker.icon: "https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/img/prometheus.png"
|
||||
net.unraid.docker.managed: "dockerman"
|
||||
net.unraid.docker.webui: "http://[IP]:[PORT:9090]"
|
||||
org.opencontainers.image.source: "https://github.com/prometheus/prometheus"
|
||||
network_mode: "bridge"
|
||||
ports:
|
||||
- "9099:9090/tcp"
|
||||
user: "99:100"
|
||||
volumes:
|
||||
- "/mnt/cache/appdata/prometheus/data:/prometheus"
|
||||
- "./prometheus:/etc/prometheus"
|
||||
working_dir: "/prometheus"
|
||||
@@ -0,0 +1,80 @@
|
||||
# my global config
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 30s
|
||||
#metric_name_validation_scheme: "legacy"
|
||||
# scrape_timeout is set to the global default (10s).
|
||||
|
||||
rule_files:
|
||||
- "rules/*"
|
||||
|
||||
scrape_configs:
|
||||
- job_name: immich_exporter
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:8028' ]
|
||||
- job_name: unraid
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:9100' ]
|
||||
- job_name: scraparr
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:7100' ]
|
||||
- job_name: 'postgres'
|
||||
static_configs:
|
||||
- targets:
|
||||
- 192.168.10.144:5433
|
||||
- 192.168.10.144:5434
|
||||
metrics_path: /probe
|
||||
params:
|
||||
auth_module: [ default ]
|
||||
relabel_configs:
|
||||
- source_labels: [ __address__ ]
|
||||
target_label: __param_target
|
||||
- source_labels: [ __param_target ]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: 192.168.10.144:9187 # The postgres exporter's real hostname:port.
|
||||
- job_name: 'postgres17'
|
||||
static_configs:
|
||||
- targets:
|
||||
- 192.168.10.144:5432
|
||||
metrics_path: /probe
|
||||
params:
|
||||
auth_module: [ postgres17 ]
|
||||
relabel_configs:
|
||||
- source_labels: [ __address__ ]
|
||||
target_label: __param_target
|
||||
- source_labels: [ __param_target ]
|
||||
target_label: instance
|
||||
- target_label: __address__
|
||||
replacement: 192.168.10.144:9187 # The postgres exporter's real hostname:port.
|
||||
- job_name: 'adguard'
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:9618' ]
|
||||
- job_name: 'tailscale'
|
||||
scrape_interval: 10s
|
||||
static_configs:
|
||||
- targets:
|
||||
- '100.86.140.116:5252'
|
||||
- '100.89.224.84:5252'
|
||||
- '100.81.171.109:5252'
|
||||
relabel_configs:
|
||||
- source_labels: [ __address__ ]
|
||||
regex: '([^:]+):\d+'
|
||||
target_label: instance
|
||||
replacement: '$1'
|
||||
- job_name: 'pocketid'
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:9464' ]
|
||||
- job_name: prom-plex
|
||||
static_configs:
|
||||
- targets:
|
||||
- '192.168.10.144:9403'
|
||||
- job_name: smartctl
|
||||
static_configs:
|
||||
- targets: [ "192.168.10.144:9633" ]
|
||||
- job_name: cadvisor
|
||||
static_configs:
|
||||
- targets: [ '192.168.10.144:9634' ]
|
||||
storage:
|
||||
tsdb:
|
||||
out_of_order_time_window: 30m
|
||||
Whitespace-only changes.
Reference in new issue
Block a user