[arm-allstar] Fwd: prometheus/grafana measurements
Lee Woldanski
ve7fet at tparc.org
Wed Jan 4 18:07:34 EST 2023
Hi John,
FWIW, there are ARM binaries for Telegraf available, so you don't have to
compile it. I just went through that exercise to get Telegraf running on
one of my HamVoIP Pi, so that I can send MODBUS data from our solar
controller (Tristar MPPT) back to an InfluxDB (hosted on another machine),
and onto Grafana.
It was just a matter of extracting the tar, putting all the files in their
proper places, and enabling the service in systemd. I also added a telegraf
user and gave it access to the uucp group, so it could talk to the USB
serial port connected to the controller: "useradd -r -s /usr/bin/nologin -G
uucp telegraf".
Good work!
Cheers!
Lee
On Tue, Jan 3, 2023 at 5:01 PM John Hogenmiller via ARM-allstar <
arm-allstar at hamvoip.org> wrote:
> (I sent this earlier, but did not see it show up in the archive.. I had a
> screenshot attached which might have been too large. Resending without the
> screenshot, apologies if this is a duplicate).
>
>
> Happy New Years Eve Eve.
>
> If none of these tools (Grafana, Prometheus, etc) are familiar to you, this
> probably won't be that interesting. If you have familiarity with these
> tools or want to learn, I think this is an achievable addition.
>
> I have had some extra m monitoring setup on my repeaters using
> telegraf/influxdb/grafana, and I've been meaning to share it out. However,
> it was a bit complex. For instance, I had to compile the telegraf client
> for Arch/Arm, and you need a separate PC to run your own stack. This week
> I redid all my local work to use Grafana Cloud and Grafana Agent, which has
> an armv7 binary already compiled. Instead of influxdb, I switched over to
> generating prometheus metrics, which can be published to a Prometheus
> instance, such as the free one from Grafana cloud.
>
> My notes and example files are here:
> https://gist.github.com/ytjohn/40ecfffb349a4c19bf8ee99b89210ecc
>
> Here is a screenshot of my setup showing the last 3 hours of activity. The
> Grafana free plan lets you keep 14 days of activity. If you do self host
> grafana, you can store years worth of data, and you can also make these
> dashboards public. But the free cloud account is a good way to get started.
>
> I have a few more things I'd like to do. I am converting from a JSON/influx
> data to prometheus. If an asterisk image is unreachable, I should change
> "up" to 0 instead of the current php "die" statements. Grafana could then
> alert on unreachable nodes. I'd also like it to not need the node
> parameter, but rather figure it out from reading allmon.ini. I also want
> to read the astdb to get the node description/frequency/pl information.
>
> Let me know if this is of interest, I can provide updates as I improve the
> script, dashboards, etc. I'll also roll back to a self-hosted instance at
> some point, which I do using docker/docker-compose (but not on the hamvoip
> nodes). Is there any other stats people would like to see? For instance,
> I'm also looking to add the lag/jitter from "iax2 show channels".
>
> 73s,
> John/KB3DFZ
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>
--
Lee Woldanski, AScT
VE7FET
More information about the ARM-allstar
mailing list