mikrotik-exporter icon indicating copy to clipboard operation
mikrotik-exporter copied to clipboard

different features per device

Open joukio opened this issue 3 years ago • 2 comments

hi,

I just tried to use it on my switch (CRS112-8P-4S) which doesn't have any wireless packages enabled, which failed with the below message: {"device":"switch","error":"from RouterOS device: no such command or directory (wireless)","level":"error","msg":"error fetching wireless interface names","time":"2021-07-27T13:00:22+02:00"} {"level":"error","msg":"ERROR: switch collector failed after 2.207442s: from RouterOS device: no such command or directory (wireless)","time":"2021-07-27T13:00:22+02:00"}

I know it would be possible to run an exporter for every different configuration/device, but IMHO it would be very convenient if one could enable the features per device.

regards Jouk

joukio avatar Jul 27 '21 11:07 joukio

This is a good idea. I haven't pointed my collector yet at the cloud switch because I don't really have a lot of stuff plugged into it. Let me see if I can figure out a good clean way to do it without to much configuration changes for what's in the wild.

nshttpd avatar Aug 10 '21 02:08 nshttpd

I think graceful failure per feature would be okay approach for me, perhaps export metrics per device which features were unavailable on a particular target

laurivosandi avatar Nov 15 '21 08:11 laurivosandi