Issues with Setting Up Telemetry - Printable Version +- Robo-Tank DIY Aquarium Controller Forum (https://www.robo-tank.ca/forum) +-- Forum: Robo-Tank (https://www.robo-tank.ca/forum/forum-1.html) +--- Forum: Reef-pi Software Questions (https://www.robo-tank.ca/forum/forum-5.html) +--- Thread: Issues with Setting Up Telemetry (/thread-1805.html) |
Issues with Setting Up Telemetry - BlakeD - 05-26-2023 The story so far... I have Reef-pi running, set up on a Rpi3B. I have the software auto-starting AFTER the network comes up, and is now binding to HTTPS automagically. I've got the sensors and outputs all working and doing reef-pi things as they should. Okay, the next chapter in my adventure with reef-pi... Telemetry. In this same network, I have two more servers (both VM's). One is running Prometheus (via docker container managed via Portainer), and another is running Grafana. Not liking the graphs in Reef-Pi, I wanted to stitch together the various parts mentioned so as to leverage Grafana for graphing. The post on R2R is based on running Reef-pi on a x86 environment and is a vertical stack on a single host, so I've had to deviate from the published directions. And it's bitten me in the @#$%. :P (IP's in this post changed for security) So, I have set up Reef-pi and Node_Exporter on the Rpi (192.168.1.2). The post doesn't provide installation guidance for Node_Exporter, so I had to fart around a little but now have it installed and running: Code: # node_exporter --version If I browse to http://192.168.1.2:9100/metrics - I can see data (Exert): Code: # HELP node_scrape_collector_duration_seconds node_exporter: Duration of a collector scrape. On a second server, I have Prometheus up on running in a container. I've modified the /etc/prometheus/prometheus.yml file to add the reef-pi job. I had to modify the 'metrics path' as there was none published at /x/metrics: Code: global: Finally, I have a third server (192.168.1.4) with Grafana installed. I've created a Prometheus data source, provided the http://192.168.1.3:9090 URL and set it to server mode. Hitting "Save & Test", it tells me "Data source is working". Finally, I have the Node_Exporter dashboard installed (ID: 1860). I SHOULD, I would think, be able to open the dashboard, select my data source, job, and host, and see data. I can't. When I open the dashboard, I get three errors: "{Templating} Failed to upgrade legacy queries e.replace is not a function", "{Templating [job]} Error updating options: e.replace is not a function", and "{Templating [node]} Error updating options: e.replace is not a function". The Datasource drop-down populates, but the Job and Host drop-downs do not. Any help is appreciated. RE: Issues with Setting Up Telemetry - Rob F - 05-27-2023 Sorry wish I could help but I don't know anything about this but yeah does seem rather complicated. Your best option is to post on R2R, someone there can probably help. |