Telegraf is a highly modular software provided by InfluxData that allows us to configure numerous Inputs and Outputs to collect any information.
In this case I have done the tests with my MikroTik hEX S router.
Mikrotik provides you with a MIB file with the OID addresses of its Routers.
Create a file in /etc/telegraf/telegraf.d/
with extension .conf
with the following content: