bairhys / prometheus-cake-autorate-exporter

A Prometheus exporter for CAKE Autorate
GNU General Public License v3.0
2 stars 1 forks source link

Are you aware of `prometheus-node-exporter-lua` and `mtail` and what made you decide to go for client_python #5

Closed Wabuo closed 6 months ago

Wabuo commented 6 months ago

Hi, I'm currently looking at adding more things running on my OpenWrt to Grafana.

In the process I came across https://openwrt.org/packages/pkgdata/prometheus-node-exporter-lua as the "official" OpenWrt exporter with a whole bunch of scripts to export specific things.

And https://github.com/google/mtail while looking for a dashboard for dnscrypt-proxy2. (I'm currently running blocky in a container as DNS/adblock, but it's not that great except for the nice dashboard)

Do you have any experience with either?

And how much work was it to write this exporter? Trying to decide if its maybe worth to play around with writing one for other stuff ...

bairhys commented 6 months ago

I wasn't sure if prometheus-node-exporter-lua can be modified or how to do it as I think it exports a set range of metrics. So I used prometheus python client for this as I have used it a few times for other things. The downside of using python is that it uses up a lot of storage on OpenWRT.

I did not know about mtail. I like using the python prometheus client, I have another exporter here in a docker container that converts http json api into prometheus metrics and another container here that runs a process that outputs json data and converts to prometheus metrics.

Wabuo commented 6 months ago

I haven't looked into how it works, but there are a lot of specific exporters, so I think they are basically just scripts using the main exporter.

Will post more on how things go after I investigate ...

prometheus-node-exporter-lua                            2022.08.08-1    5.31 KiB        Provides node metrics as Prometheus scraping endpoint.…
Install…
prometheus-node-exporter-lua-bmx7                       2022.08.08-1    1.65 KiB        Prometheus node exporter (bmx7 links collector)
Install…
prometheus-node-exporter-lua-dawn                       2022.08.08-1    1.48 KiB        Prometheus node exporter (dawn collector)
Install…
prometheus-node-exporter-lua-hostapd_stations           2022.08.08-1    2.98 KiB        Prometheus node exporter (hostapd_stations collector) - Requir>
Install…
prometheus-node-exporter-lua-hostapd_ubus_stations      2022.08.08-1    1.65 KiB        Prometheus node exporter (hostapd_ubus_stations collector)
Install…
prometheus-node-exporter-lua-nat_traffic                2022.08.08-1    1.45 KiB        Prometheus node exporter (nat_traffic collector)
Install…
prometheus-node-exporter-lua-netstat                    2022.08.08-1    1.28 KiB        Prometheus node exporter (netstat collector)
Install…
prometheus-node-exporter-lua-openwrt                    2022.08.08-1    1.20 KiB        Prometheus node exporter (openwrt collector)
Install…
prometheus-node-exporter-lua-snmp6                      2022.08.08-1    1.34 KiB        Prometheus node exporter (snmp6 collector)
Install…
prometheus-node-exporter-lua-textfile                   2022.08.08-1    1.11 KiB        Prometheus node exporter (textfile collector)
Install…
prometheus-node-exporter-lua-ubnt-manager               2022.08.08-1    2.06 KiB        Prometheus node exporter (ubnt-manager collector)
Install…
prometheus-node-exporter-lua-uci_dhcp_host              2022.08.08-1    1.19 KiB        Prometheus node exporter (uci_dhcp_host collector)
Install…
prometheus-node-exporter-lua-wifi                       2022.08.08-1    1.47 KiB        Prometheus node exporter (wifi collector)