Grafana-Mikrotik
This public repository does not include a GitHub description yet.
0
Stars
0
Forks
0
Watchers
0
Issues
7763
Size (KB)
main
Branch
Files
5 folders · 16 files- .github
- grafana
- prometheus
- readme
- snmp
- .env23 B
- .grafana94 B
- .prometheus76 B
- LICENSE34.3 KB
- Mikrotik-snmp-prometheus.json234.9 KB
- README.md4.8 KB
- checklist.sh1.2 KB
- docker-compose.yml890 B
- fix-network.sh1.9 KB
- install.sh5.0 KB
- manage-ips.sh4.9 KB
- quick-fix.sh1.0 KB
- run.sh5.7 KB
- test-core.sh2.2 KB
- test-snmp.sh2.8 KB
- update.sh2.4 KB
Click a file to open it on GitHub. Browse full tree →
README.md
View raw on GitHub →Grafana Mikrotik Monitoring
!logo
!visitors
!example branch parameter
!mikrotikOS
!Grafana
!Prometheus
!snmp_exporter
---
🚀 Quick Install (One Command)
Auto Installer (Recommended)
curl -fsSL https://raw.githubusercontent.com/TEGAR-SRC/Grafana-Mikrotik/main/install.sh | bash
Download & Run Manual
# Linux/macOS
wget https://raw.githubusercontent.com/TEGAR-SRC/Grafana-Mikrotik/main/install.sh
chmod +x install.sh
./install.sh
# Windows PowerShell
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/TEGAR-SRC/Grafana-Mikrotik/main/install.sh" -OutFile "install.sh"
bash install.sh
Direct Download
- Repository: https://github.com/TEGAR-SRC/Grafana-Mikrotik.git
- ZIP Download: https://github.com/TEGAR-SRC/Grafana-Mikrotik/archive/refs/heads/main.zip
Update Existing Installation
If you already have Grafana-Mikrotik installed and want to update:
cd Grafana-Mikrotik
curl -fsSL https://raw.githubusercontent.com/TEGAR-SRC/Grafana-Mikrotik/main/update.sh | bash
Manage IPs and Settings
Easily add/remove IPs or update credentials:
cd Grafana-Mikrotik
curl -fsSL https://raw.githubusercontent.com/TEGAR-SRC/Grafana-Mikrotik/main/manage-ips.sh | bash
🐳 Deploy with docker-compose
Deploy with bash script
git clone https://github.com/TEGAR-SRC/Grafana-Mikrotik.git
cd ./Grafana-Mikrotik
bash ./run.sh --config
You can also pass some arguments to script to set some these options: --config: change the user and password to grafana and specify the mikrotik IP address
--stop: stop docker containers
--help
For example:
bash run.sh --config
deploy with docker-compose manual
1. Change targets IP in file prometheus/prometheus.yml (already configured with multiple IPs)
2. Run
docker-compose up -d
3. Open localhost:3000
Login credentials are configured in .grafana file.
📊 Current Configuration
Mikrotik IPs Being Monitored:
- 10.10.10.1
- 172.16.1.1
- 103.144.46.1
- 103.144.46.18
- 103.144.46.219
SNMP Community String
- Community:
xxkenxyz
To Add/Remove IPs
Edit
prometheus/prometheus.yml:- job_name: Mikrotik
static_configs:
- targets:
- YOUR_IP_HERE
Edit .prometheus file:
MIKROTIK_IP=IP1,IP2,IP3
To Change SNMP Community
Edit
snmp/snmp.yml:auths:
public_v2:
community: YOUR_COMMUNITY_STRING
To Change Grafana Credentials
Edit
.grafana file:GF_SECURITY_ADMIN_USER=YOUR_USERNAME
GF_SECURITY_ADMIN_PASSWORD=YOUR_PASSWORD
🔧 Commands
- Stop services:
docker-compose down
- Restart services:
docker-compose restart
- View logs:
docker-compose logs -f
- Update config:
docker-compose up -d --force-recreate
- Update installation:
bash update.sh
- Manage IPs/settings:
bash manage-ips.sh
- Fix network issues:
bash fix-network.sh
📋 Requirements
- Docker
- Docker Compose
- Mikrotik devices with SNMP enabled
🔒 Mikrotik SNMP Setup
On each Mikrotik device:
/snmp
set enabled=yes
/community
add name=xxkenxyz addresses=YOUR_GRAFANA_IP
---
Manual deploy
1.add into prometheus.yml
- job_name: Mikrotik
static_configs:
- targets:
- 192.168.88.1 # SNMP device IP.
metrics_path: /snmp
params:
module: [mikrotik]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9116 # The SNMP exporter's real hostname:port.
2.Configure Prometheus and run /snmp/snmp_exporter
3.Add dashboard <https://grafana.com/grafana/dashboards/14420>
---
Docker snmp_exporter (deprecated)
> amd64-linux container
sudo docker run -d -p 9116:9116 mashinkopochinko/snmp_exporter_mikrotik:latest
---
!img1
Repository metadata
- Owner
- TEGAR-SRC
- Primary language
- Shell
- License
- GPL-3.0
- Created
- Feb 11, 2026
- Last pushed
- Feb 11, 2026
- Last updated
- Feb 11, 2026
Clone this repository
HTTPS
git clone https://github.com/TEGAR-SRC/Grafana-Mikrotik.gitSSH
git clone git@github.com:TEGAR-SRC/Grafana-Mikrotik.gitMore Shell repositories
BUG-XL-AKRAB-UNLIMTED
BUG INI TELAH DI ENCRYPT KAALU MAU PAKE SILAHKAN EMAIL SAYA
DEV
No description
dokploy-auto-installer-private-ip
dokploy-auto-installer-private-ip access
cloud-ready-installer
A fully automated Linux server setup script designed for cloud environments and bare-metal installations. It performs essential system configurations, installs popular tools (like htop, btop, zsh, neofetch), sets timezone via Indonesia NTP servers, enables root SSH access, and ensures your system is cloud-ready within minutes.