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

[node_exporter] Add textcollector in order to fetch more metrics #4275

Open
3 tasks done
deajan opened this issue Oct 3, 2024 · 0 comments
Open
3 tasks done

[node_exporter] Add textcollector in order to fetch more metrics #4275

deajan opened this issue Oct 3, 2024 · 0 comments

Comments

@deajan
Copy link

deajan commented Oct 3, 2024

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
I use node_exporter to monitor my opnsense firewall.
I want to know when a gateway is down.

Describe the solution you'd like
So far, I can run a script that will create a file in let's say /var/lib/node_exporter/textcollector/gateways.prom with the following content:

# TYPE opnsense_gateway gauge
# HELP opnsense_gateway zero if gateway is okay, 1 otherwise
opnsense_gateway{gateway_name="wan1"} 0
opnsense_gateway{gateway_name="wan2"} 1

Enabling text collector for node_exporter would allow to pick up these metrics.

Describe alternatives you've considered
There's SNMP, but that's alot of work.

Additional context

Perhaps there should exist some kind of repository with basic scripts that could provide more prometheus metrics.
Willing to provide my gateway script here.

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

No branches or pull requests

1 participant