![]() ![]() A Prometheus exporter for Mikrotik devices written in Go.A Prometheus exporter for Mikrotik devices written in Python.A blog post by Devin Smith that first got me interested.docker-armor /etc/apparmor.d/docker-armorĪpparmor_parser -r -W /etc/apparmor.d/docker-armorĭocker-compose -f docker-compose-armored.yml up -d Sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout. Generate a self signed certificate for your domain: It is also possible to access the Grafana Dashboard over HTTPS.ĭepending on your security requirements and/or threat model it might be a good idea to enable HTTPS. Just change add as many devices to mktxp/nf as you want. It is possible to monitor multiple (Mikrotik) devices. ![]() You may adjust blackbox/blackbox.yml according to your needs. This projects uses the Prometheus Blackbox exporter to measure network latency. ![]() You should now be able to open the Grafana dashboard on Port 3000 of your Raspberry Pi. You may need to adjust the following configuration files and add your own credentials for your router:ĭone. # Go into the cloned directory cd mikrotik_monitoring Install Docker + Docker-compose (reboot required) Sudo apt install python3-dev python3 python3-pip -y You need to execute the following steps on the target machine itself (e.g. This would mean, that you need to compile the mikrotik-exporter by hand, because there are no pre built 32-bit Docker images. You may also use Raspian, but then you are limited to 32bit ARM executables. You need Ubuntu Server for ARM 64 bit in order to use this setup. ![]() user add name=prometheus group=prometheus password=TOP_SECRET Prepare Raspi user group add name=prometheus policy=api,read,winbox,test before opening a new issue, please take a look at the FAQĪt first you need to prepare your router.Ĭreate a group on the device that has API and read-only access:.Raspberry Pi 4 with 2 gb RAM (other PIs may also work, but I wanted ARM 64 bit).It is designed and tested to be run on Raspberry Pis. This projects serves as a ready to use blueprint for monitoring based on Docker. Use Grafana & Prometheus to monitor Mikrotik devices. Monitor your Mikrotik router with Prometheus and Grafana ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |