AthennaMind / opnsense-exporter

OPNsense Exporter for Prometheus
Apache License 2.0
88 stars 9 forks source link

[FEATURE]: Add cpu and memory usage #26

Open raydoom opened 5 months ago

raydoom commented 5 months ago

What would you like to be added?

cpu and memory usage

Why is this needed?

cpu and memory usage

Any implementation details that are not related to source code may be included here.

No response

ihatemodels commented 5 months ago

Currently, this isn't possible. The OPNsense team has not made the dashboard values accessible via the API. Refer to https://github.com/opnsense/core/issues/7031.

Although I initially considered creating a plugin for this, I think there are better courses of action than this one, like fixing the dashboard values to be retrieved via an API endpoint. Introducing a plugin to this exporter will be one more dependency just for a few metrics. We don't have the time to argue and present the ideas with the OPNsense team.

I strongly believe their implementation of the dashboard widgets is inconvenient, but I will not blame them or spam them with this. They have more important work. We should also be grateful for their vision and dedication. When they rework the dashboard widgets API, we will introduce these metrics to the exporter.

tsdmgz commented 5 months ago

@raydoom if you are open to having another exporter alongside, node_exporter is available in opnsense repositories and does what you're looking for

github-actions[bot] commented 2 months ago

Stale issue message