-
Notifications
You must be signed in to change notification settings - Fork 9
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
Update the docs on how to export the data to grafana. #10
Comments
Nice! Thanks @sebasdt ! I appreciate all the feedback and contributions! Added the |
Hey, How is your mission going for getting the data off from your old laptop? Greetings, Sebastiaan |
Hi, |
@sebasdt |
Nice, thanks! I'm still just a bottleneck here. Later this month or early May is probably when I'll have my next round of updates. |
Hi, good day!
In the last week, I was searching for a way to export NUT data from the host to the Grafana dashboard and I found a solution.
The exporter uses Prometheus for data collection and docker. Also, it was easy to set up for me.
Yes, there are plenty of ways how to achieve the same goal, but this is the best way I could find.
It might be useful to document it for now until a better solution is found.
This is just to get people started.
Your setup may differ from what I got, this is how I did it.
Like for me all docker containers are on the same host as the NUT-server.
Installation process:
Here is the Prometheus nut exporter.
You will need docker compose and docker.
Install docker with this command:
curl -sSL https://get.docker.com/ | CHANNEL=stable bash && systemctl enable --now docker
And for docker-compose you can follow this guide
Read the README and Grab the docker-compose file on the GitHub page.
Follow the usual steps to create a stack, you may also use Portainer.
Now if you don't already have Prometheus and Grafana installed do it now.
The exporter exports the data to Prometheus so grab the Prometheus config on GitHub.
Prometheus config provides the NUT-server and Prometheus-server ip, The exporter must have access to the nut server without any credentials.
For me, it worked out of the box and started to collect data.
Log into Grafana and if you haven't already added the data source and then the dashboard.
Here below is the dashboard I've used, make it to your liking:
https://grafana.com/grafana/dashboards/15406-yet-another-prometheus-nut-exporter/
If you would like to add another graph but don't know the keyword look here
This is just a template you or someone else can expand on.
Thank you for your time and awesome repo!
edit:
It has been a while now and perfected my dashboard for my needs. here below is how its looks.
https://imgur.com/a/BTbXn0V
The text was updated successfully, but these errors were encountered: