mirror of
https://github.com/M0r13n/mikrotik_monitoring.git
synced 2026-01-01 06:49:33 +00:00
Add prometheus
This commit is contained in:
parent
ddbb23ea60
commit
bd6bbbeb05
2 changed files with 59 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
|||
version: "3.9"
|
||||
|
||||
volumes:
|
||||
prometheus_data: {}
|
||||
|
||||
|
||||
services:
|
||||
# Mikrotik Exporter
|
||||
# https://github.com/nshttpd/mikrotik-exporter
|
||||
mikrotik_exporter:
|
||||
image: nshttpd/mikrotik-exporter-linux-arm64:1.0.12-DEVEL # Change this depending on your version and/or if you built the image locally
|
||||
volumes:
|
||||
|
|
@ -8,4 +14,25 @@ services:
|
|||
env_file: .env
|
||||
ports:
|
||||
- 9436:9436
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
restart: unless-stopped
|
||||
|
||||
# Prometheus
|
||||
# https://github.com/stefanprodan/dockprom
|
||||
prometheus:
|
||||
image: prom/prometheus:v2.28.1
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- ./prometheus:/etc/prometheus
|
||||
- prometheus_data:/prometheus
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 9090:9090
|
||||
networks:
|
||||
- default
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue