mirror of
https://github.com/M0r13n/mikrotik_monitoring.git
synced 2025-12-06 01:59:30 +00:00
makes the dashboard the default dashboard and adds a separate folder
This commit is contained in:
parent
38600b8cbc
commit
a3c990ca83
5 changed files with 15 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@ tmp
|
|||
.idea/
|
||||
mktxp/mktxp.conf
|
||||
.vscode
|
||||
venv
|
||||
|
|
|
|||
|
|
@ -4,12 +4,11 @@ volumes:
|
|||
prometheus_data: {}
|
||||
grafana_data: {}
|
||||
|
||||
|
||||
services:
|
||||
# Prometheus
|
||||
# https://github.com/stefanprodan/dockprom
|
||||
prometheus:
|
||||
image: prom/prometheus:v2.37.0
|
||||
image: prom/prometheus:v2.42.0
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- ./prometheus:/etc/prometheus
|
||||
|
|
@ -26,17 +25,18 @@ services:
|
|||
# Grafana
|
||||
# https://github.com/stefanprodan/dockprom
|
||||
grafana:
|
||||
image: grafana/grafana:9.0.6
|
||||
image: grafana/grafana:9.3.6
|
||||
container_name: grafana
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
|
||||
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
||||
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
|
||||
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}
|
||||
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
- GF_INSTALL_PLUGINS=flant-statusmap-panel
|
||||
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/provisioning/dashboards/mikrotik/monitor.json
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
|
|
@ -46,9 +46,7 @@ services:
|
|||
# MKTXP
|
||||
# https://github.com/akpw/mktxp
|
||||
mktxp:
|
||||
# https://github.com/M0r13n/mikrotik_monitoring
|
||||
# Note: You might need to build the image yourself if not on AMD64 or ARM-v7/V8
|
||||
image: leonmorten/mktxp:latest
|
||||
image: ghcr.io/akpw/mktxp:gha-4093170275
|
||||
volumes:
|
||||
# Since Version v0.37 mktxp runs as single user
|
||||
# Prior it was root
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ apiVersion: 1
|
|||
providers:
|
||||
- name: 'Prometheus'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
folder: 'Mikrotik Monitoring'
|
||||
type: file
|
||||
disableDeletion: false
|
||||
disableDeletion: true
|
||||
editable: true
|
||||
allowUiUpdates: true
|
||||
options:
|
||||
path: /etc/grafana/provisioning/dashboards
|
||||
path: /etc/grafana/provisioning/dashboards/mikrotik
|
||||
|
|
|
|||
|
|
@ -27,7 +27,10 @@
|
|||
installed_packages = True # Installed packages
|
||||
dhcp = True # DHCP general metrics
|
||||
dhcp_lease = True # DHCP lease metrics
|
||||
|
||||
connections = True # IP connections metrics
|
||||
connection_stats = False # Open IP connections metrics
|
||||
|
||||
pool = True # Pool metrics
|
||||
interface = True # Interfaces traffic metrics
|
||||
|
||||
|
|
@ -48,4 +51,6 @@
|
|||
user = True # Active Users metrics
|
||||
queue = True # Queues metrics
|
||||
|
||||
remote_dhcp_entry = None # An MKTXP entry for remote DHCP info resolution (capsman/wireless)
|
||||
|
||||
use_comments_over_names = True # when available, forces using comments over the interfaces names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue