On 13/10/2021 22:16, Fenrir Sivar wrote:
Hi,

i'm using node_exporter to export stats for all my nodes. I have two nodes however that have no network connection, but I still want to monitor them.(all ports closed, except for ssh and nfs from one other machine, and I cannot change this.
They do however have a mounted nfs fileshare.
What would be a good solution to export the node info to a prometheus server since I cannot scrape those nodes and pushgateway is also not possible. is there a way to save the node_exporter info as file and push it to prometheus from the other machine that also has access to the file share?

While not ideal you could try creating a cron job that runs every minutes that does a local curl to the node exporter (which is just listening on localhost/loopback) and saves the resulting metrics in a file on your NFS share. Another server which does have both NFS & network access could then use the textfile collector to pick up those metrics. You would need to do something to munge the metrics before they are written to the NFS share as otherwise the metrics would conflict with the ones being created normally by the node exporter that is running the textfile collector.

--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6e9584ed-a82c-4311-35c1-04e9eae6749f%40Jahingo.com.

Reply via email to