Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different features per device #119

Open
joukio opened this issue Jul 27, 2021 · 2 comments
Open

different features per device #119

joukio opened this issue Jul 27, 2021 · 2 comments

Comments

@joukio
Copy link

joukio commented Jul 27, 2021

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

@nshttpd
Copy link
Owner

nshttpd commented Aug 10, 2021

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.

@laurivosandi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants