Mikrocount pulls data from Mikrotik's accounting service, parses it, and stores it into influxdb.
50K+
Mikrocount is a tool written in go that pulls data from Mikrotik's accounting service, parses it, and stores it into InfluxDB2.
Note: For compatibility with InfluxDB1, please use the v1 tag; atajsic/mikrocount:v1 and see the v1 README
Your Mikrotik router will need to have accounting with web access enabled.
Mikrotik Manual:IP/Accounting
Example:
/ip accounting
set enabled=yes threshold=2000
/ip accounting web-access
set accessible-via-web=yes
Notes:
threshold: maximum number of IP pairs in the accounting table (maximal value is 8192).docker create \
--name=mikrocount
-e INFLUX_URL=http://influxdb:8086 \
-e INFLUX_TOKEN=my-token \
-e INFLUX_ORG=my-org \
-e INFLUX_BUCKET=my-bucket \
-e LOCAL_CIDR=192.168.0.0/16 \
-e MIKROTIK_ADDR=192.168.0.1 \
-e MIKROCOUNT_TIMER=15 \
--restart unless-stopped \
atajsic/mikrocount
version: "3"
services:
mikrocount:
image: atajsic/mikrocount
environment:
- INFLUX_URL=http://influxdb:8086
- INFLUX_TOKEN=my-token
- INFLUX_ORG=my-org
- INFLUX_BUCKET=my-bucket
- LOCAL_CIDR=192.168.0.0/16
- MIKROTIK_ADDR=192.168.0.1
- MIKROCOUNT_TIMER=15
restart: unless-stopped
This software is distributed under the MIT License. See the LICENSE file for more details.
Content type
Image
Digest
Size
6.7 MB
Last updated
over 4 years ago
docker pull atajsic/mikrocount