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

Feature Request : Allow specific commands to run so that we can define what metrics to be fetched #3

Open
arjun-udaan opened this issue Sep 29, 2023 · 2 comments

Comments

@arjun-udaan
Copy link

Hi,

This works great, thank you for providing this here,

One feature i think which would help is to allow specific commands to run on AOS so that we have more control on what metrics are exported

@slashdoom
Copy link
Owner

Can you provide examples of what you're looking for?

It does run specific commands, for example for interface stats on a non-CX switch...
https://github.com/slashdoom/aruba_exporter/blob/main/interfaces/interface_collector.go#L115
it runs both "show interfaces ethernet all" and "display interface".

But the hard part is parsing. Once run, its has to so all of this to parse those outputs into metrics...
https://github.com/slashdoom/aruba_exporter/blob/main/interfaces/parser.go#L314-L507

@arjun-udaan
Copy link
Author

Yes, I understand; thank you for responding.
The point I make here is that we don't always want to export all of the metrics. For example, let's say we have 2000+ apps and simply want to capture up status and connected client count (ignoring RF). As it is a waste of infra resources to repeatedly pull RF data that is never utilized, could you suggest a means for us to configure which metrics to export even within a category (wireless)?

I do understand this is not a common use case.

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

2 participants