Prometheus Metrics (#797)

* Basic memory, filesystem, cpu and networking

* Split metrics out

* Run hourly metrics tasks if people are actively gathering metrics

* Hourly metrics

* Add LQM metrics

* Fixes

* OLSR link info

* Improve error handling

* Basic node details

* Add bitrates and ping times

* Remove periodic tasks

* Migrate metrics to package

* Metrics config file
This commit is contained in:
Tim Wilkinson 2023-04-20 18:34:52 -07:00 committed by GitHub
parent 07bad2d173
commit 291ba2d012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,7 @@ feeds-update: stamp-clean-feeds-updated .stamp-feeds-updated
cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages olsrd cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages olsrd
cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages vtun cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages vtun
cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages dd-wrt-ath10k-firmware cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages dd-wrt-ath10k-firmware
cd $(OPENWRT_DIR); ./scripts/feeds install -p arednpackages prometheus-exporter
cd $(OPENWRT_DIR); ./scripts/feeds install snmpd cd $(OPENWRT_DIR); ./scripts/feeds install snmpd
cd $(OPENWRT_DIR); ./scripts/feeds install curl cd $(OPENWRT_DIR); ./scripts/feeds install curl
cd $(OPENWRT_DIR); ./scripts/feeds install ntpclient cd $(OPENWRT_DIR); ./scripts/feeds install ntpclient

View File

@ -139,6 +139,7 @@ CONFIG_PACKAGE_ppp=m
CONFIG_PACKAGE_ppp-mod-pppoe=m CONFIG_PACKAGE_ppp-mod-pppoe=m
CONFIG_PACKAGE_procd-seccomp=n CONFIG_PACKAGE_procd-seccomp=n
CONFIG_PACKAGE_procd-ujail=n CONFIG_PACKAGE_procd-ujail=n
CONFIG_PACKAGE_prometheus-exporter=y
CONFIG_PACKAGE_rpcd-mod-file=y CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-luci=y CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd=y CONFIG_PACKAGE_rpcd=y

View File

@ -13,6 +13,7 @@
/etc/config.mesh/network_tun /etc/config.mesh/network_tun
/etc/config.mesh/aredn /etc/config.mesh/aredn
/etc/config.mesh/xlink /etc/config.mesh/xlink
/etc/config.mesh/metrics
/etc/aredn_include/swconfig.user /etc/aredn_include/swconfig.user
/etc/aredn_include/static_routes /etc/aredn_include/static_routes
/etc/aredn_include/fixedmac.lan /etc/aredn_include/fixedmac.lan