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

Best way to get data into Grafana? #673

Closed
TopBanana123 opened this issue Feb 12, 2022 · 8 comments
Closed

Best way to get data into Grafana? #673

TopBanana123 opened this issue Feb 12, 2022 · 8 comments
Labels
automation - monitoring apps interfacing to external home automation and monitoring apps

Comments

@TopBanana123
Copy link

TopBanana123 commented Feb 12, 2022

Hopefully this is the right place to post. I'm looking to get some basic information into Grafana, either through InfluxDB or any other method

All I need is the Generator Status, battery Voltage, Charger Status and RPM. I'm making a power dashboard and I'd like to get stats from Genmon in there

I've seen some posts on going from MQTT to HA to InfluxDB to Grafana. Not being an HA user, I'm trying to find out if there is a way without getting that setup too?

Screenshots of my progress (IoTaWatt + InfluxDB + Grafana)

The "Off - Ready" is what I need from Genmon in this one

2022-02-12 16_44_43-Power - Grafana

In this one I need the RPM etc

image

@skipfire
Copy link
Contributor

Grafana has a couple of ways to directly interface without going through any middlemen, apparently there is a specific JSON format that is natively supported by grafana for any system that implements it. I am working on one, but I haven't had the free time I'd like to just crank it out.

@TopBanana123
Copy link
Author

I'll email you some of my free time if that helps

@skipfire
Copy link
Contributor

I wish, I've got some time blocked tomorrow to work on it, so I will see how straightforward it is then.

@TopBanana123
Copy link
Author

Just to put it out there, I would pay for the feature

@skipfire
Copy link
Contributor

Are you using a local or cloud Grafana? I'm looking at local and cloud I expect would work basically the same, but of course would have router/firewall concerns.

@TopBanana123
Copy link
Author

I'm using local, my goal is for all of my monitoring to work during a 2 week outage with no internet

@skipfire
Copy link
Contributor

skipfire commented Feb 13, 2022

There is a plugin that can read from genmon; if it has no security enabled. I'm not sure if there is a way to handle the security with what the plug and genmon already do or if something custom has to be written. Maybe an option in genmon to allow no security on just the status_json route.

https://marcus.se.net/grafana-json-datasource/installation/

Once that is done you can configure the datasource to the genmon status_json route, http://{genmonip}/cmd/status_json and save/test. With that done you can add panels using the "JSON API" data source and a field path like "$.Status[].Engine[].Battery Voltage" and the configure the rest as needed.

@jgyates jgyates added the automation - monitoring apps interfacing to external home automation and monitoring apps label Feb 13, 2022
@TopBanana123
Copy link
Author

Thanks Skipfire, I am going to try that tonight. I've also been modifying the Generator Dashboard. Currently the information on the top right is non-functional

I think I've got it in a pretty good place. Would like better Min/Max displays for Voltage and Frequency though

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation - monitoring apps interfacing to external home automation and monitoring apps
Projects
None yet
Development

No branches or pull requests

3 participants