aboutsummaryrefslogtreecommitdiff
path: root/utils/prometheus-node-exporter-lua/Makefile
Commit message (Collapse)AuthorAge
* prometheus-node-exporter-lua: add snmp6 exporterNick Hainke2020-12-07
| | | | | | | | | | | | | If you want statistics about IPv6 you can use snmpv6 exporter. Currently, the "/proc/net/snmp6" is existing but all values are just "0". To use this plugin you have to set CONFIG_PROC_STRIPPED=n I will find a way to enable the important ipv6 statistics by default. Signed-off-by: Nick Hainke <vincent@systemli.org>
* prometheus-node-exporter-lua: fix hostapd exporterNick Hainke2020-10-29
| | | | | | | Fix "hostapd_ubus_stations.lua". The bit-lib that is imported and the one specified as the dependency do not match. Use luabitop. Signed-off-by: Nick Hainke <vincent@systemli.org>
* prometheus-node-exporter-lua: hostad ubus statsNick Hainke2020-10-12
| | | | | | | | | | | | | There is already the hostapd_stations exporter, which uses hostapd-utils (more precisely hostapd-cli) to get client statistics. However, the ubus interface is permanently integrated under hostapd in OpenWrt. So this exporter needs one dependency less. For now it exports mainly the rrm statistics. Many people are interested in what your device supports. The exporter provides information about the radio-resource-managment extensions. Signed-off-by: Nick Hainke <vincent@systemli.org>
* prometheus-node-exporter-lua: update dawn exporterNick Hainke2020-10-07
| | | | | | | Add dawn exporter to Makefile. Add hostname to export. Signed-off-by: Nick Hainke <vincent@systemli.org>
* prometheus-node-exporter-lua: Makefile alphabetical orderingGérondal Thibault2020-07-20
| | | | Signed-off-by: Gérondal Thibault <contact@tycale.be>
* prometheus-node-exporter-lua: uci_dhcp_host moduleGérondal Thibault2020-07-20
| | | | | | | | | | | Extract data from configuration file /etc/config/dhcp and create labels {name, ip, mac, dns} via uci. Those labels are useful in order to craft complex prometheus queries as replacing the MAC address to a custom name. E.g.: wifi_station_signal_dbm * on (mac) group_left(name) uci_dhcp_host or on (mac) label_replace(wifi_station_signal_dbm, "name", "$1", "mac", "(.+)") Signed-off-by: Gérondal Thibault <contact@tycale.be>
* prometheus-node-exporter-lua: add dawn exporterNick Hainke2020-06-26
| | | | | | | | | | | DAWN is a decentralized WiFi Controller. https://github.com/berlin-open-wireless-lab/DAWN The node exporter allows to gather statistics about your network: - Infos about AP (Channel Utilization, Station Count, ...) - Connected Clients (Signal, Capabilities) Signed-off-by: Nick Hainke <vincent@systemli.org>
* prometheus-node-exporter-lua: Change node_time_seconds type to "gauge"Forest Crossman2020-05-03
| | | | | | | | | | | | | The official node_exporter reports node_time_seconds as a gauge, but prometheus-node-exporter-lua reports it as a counter. To be consistent with the official implementation, and because "gauge" is more correct than "counter" for this metric (system time can decrease, but the Prometheus documentation states, "A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart."), change the type for node_time_seconds to "gauge". Signed-off-by: Forest Crossman <cyrozap@gmail.com>
* prometheus-node-exporter-lua: add hostapd exporterDavid Bauer2020-02-03
| | | | | | | | | This exporter exposes information of the connected stations acquired from hostapd. These contain additional information compared to the existing station exporter, however they require a full build of hostapd / wpad. Signed-off-by: David Bauer <mail@david-bauer.net>
* prometheus-node-exporter-lua: fixed small warningRosen Penev2020-01-27
| | | | | | | | | This happens during compilation: Enabling network ./etc/init.d/prometheus-node-exporter-lua: line 7: /lib/functions/network.sh: No such file or directory Signed-off-by: Rosen Penev <rosenp@gmail.com>
* prometheus-node-exporter-lua: bump versionEtienne Champetier2019-11-17
| | | | Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: ltq-dsl.lua: use new var names errors_fecs_*Martin Schiller2019-09-23
| | | | Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* prometheus-node-exporter-lua: add target & system to OpenWrt collectorEtienne Champetier2019-08-14
| | | | | | | | | | | | Before: node_openwrt_info{revision="r10756+1-7546be6007",model="GL.iNet GL-AR150",id="OpenWrt",board_name="glinet,gl-ar150",release="SNAPSHOT"} 1 After: node_openwrt_info{revision="r10756+1-7546be6007",target="ath79/generic",board_name="glinet,gl-ar150",id="OpenWrt",model="GL.iNet GL-AR150",release="SNAPSHOT",system="Atheros AR9330 rev 1"} 1 Fixes #9730, replace #9735 Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: Add more wifi_station metrics and fix naming ↵Kirill Lukonin2019-04-15
| | | | | | according to original wifi_linux.go node exporter Signed-off-by: Kirill Lukonin <klukonin@gmail.com>
* prometheus-node-exporter-lua: Bump PKG_RELEASEAlex Tomlins2019-04-08
| | | | Signed-off-by: Alex Tomlins <alex@tomlins.org.uk>
* prometheus-node-exporter-lua: Bump PKG_RELEASEAlex Tomlins2019-04-04
| | | | Signed-off-by: Alex Tomlins <alex@tomlins.org.uk>
* prometheus-node-exporter-lua: change network metric type to counterPiotr Machała2018-12-30
| | | | Signed-off-by: Piotr Machała <pm7gt@933x.net>
* prometheus-node-exporter-lua: add lantiq dsl modem collectorRene Treffer2018-12-16
| | | | | | | a.heider: Address PR comments and clean up. Signed-off-by: Rene Treffer <treffer+github@measite.de> Signed-off-by: Andre Heider <a.heider@gmail.com>
* prometheus-node-exporter-lua: close io.popen files to reap zombiesLeonid Evdokimov2018-11-25
| | | | Signed-off-by: Leonid Evdokimov <leon@darkk.net.ru>
* prometheus-node-exporter-lua: add conntrack collectorEtienne Champetier2018-07-25
| | | | | | Also fix missing dependency of openwrt collector Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: set myself as maintainerEtienne Champetier2018-07-25
| | | | | | | This was OKed sometimes ago by @simonswine https://github.com/openwrt/packages/pull/5128 Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: adapt 0.16 metricsPaul Spooren2018-06-28
| | | | | | | | | | Prometheus introduced some new conventions on how to name metrics. Read here https://prometheus.io/docs/practices/naming/ This PR breaks compatibility with past versions, just like the officials node exporter! 💥 Signed-off-by: Paul Spooren <mail@aparcar.org>
* prometheus-node-exporter-lua: handle fancy releasePaul Spooren2018-06-17
| | | | | | | | | | Some releases may have non letters in it's name currently resulting in an empty ("") output which is then discarded, resulting in *missing* labels in the metric. Now it uses `.-` to catch as little as possible, but anything. Signed-off-by: Paul Spooren <mail@aparcar.org>
* prometheus-node-exporter-lua: add openwrt exporterPaul Spooren2018-05-05
| | | | | | | | | | | | | | adds openwrt specific information about the device. include DISTRIB_{ID, RELEASE, REVISION}, board_name and model Example output: # TYPE node_openwrt_info gauge node_openwrt_info{revision="55a0636",model="QEMU Standard PC (i440FX + PIIX, 1996)",id="LiMe",board_name="qemu-standard-pc-i440fx-piix-1996",release="snapshot"} 1 node_scrape_collector_duration_seconds{collector="openwrt"} 3.814697265625e-05 node_scrape_collector_success{collector="openwrt"} 1 Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
* prometheus-node-exporter-lua: export static filesPaul Spooren2018-04-30
| | | | | | | Print all files from /var/prometheus/*.prom. This behaviour allow users to add metrics with non-lua scripts. Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
* prometheus-node-exporter-lua: extend bmx7 pluginPaul Spooren2018-04-14
| | | | | | | | | | | | | | | | | | | | | | Now monitors as well the tunIn parameters, aka the annoucend routes to the network. This is handy to check if a node annouces itself as a gateway. Also list all activated plugins. Example output: # TYPE bmx7_tunIn gauge bmx7_tunIn{name="myIP4",network="10.198.52.86/32"} 1 bmx7_tunIn{name="myIP6",network="2012:0:0:56::/128"} 1 bmx7_tunIn{name="inet4",network="0.0.0.0/0"} 1 # TYPE bmx7_plugin gauge bmx7_plugin{name="bmx7_config.so"} 1 bmx7_plugin{name="bmx7_json.so"} 1 bmx7_plugin{name="bmx7_sms.so"} 1 bmx7_plugin{name="bmx7_tun.so"} 1 Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
* prometheus-node-exporter-lua: add bmx6/7 scraperPaul Spooren2018-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scrapes bmx6 status and connected links. example output: bmx6_status{id="qMp-LibreMesh-1706",version="BMX6-0.1-alpha",address="fd66:66:66:a:6670:2ff:fe3e:9d28"} 1 bmx6_link_rxRate{target="UPC-CN-C6-E104-Alix",source="qMp-LibreMesh-1706",dev="wlan0-mesh_12"} 100 bmx6_link_txRate{target="UPC-CN-C6-E104-Alix",source="qMp-LibreMesh-1706",dev="wlan0-mesh_12"} 100 bmx6_link_rxRate{target="UPC-CN-C6-E104-Alix-Paul",source="qMp-LibreMesh-1706",dev="wlan1-adhoc_12"} 100 bmx6_link_txRate{target="UPC-CN-C6-E104-Alix-Paul",source="qMp-LibreMesh-1706",dev="wlan1-adhoc_12"} 100 bmx6_link_rxRate{target="UPC-CN-C6-E104-Turoffner",source="qMp-LibreMesh-1706",dev="wlan0-mesh_12"} 97 bmx6_link_txRate{target="UPC-CN-C6-E104-Turoffner",source="qMp-LibreMesh-1706",dev="wlan0-mesh_12"} 100 node_scrape_collector_duration_seconds{collector="bmx6"} 0.0025260448455811 node_scrape_collector_success{collector="bmx6"} 1 scrapes bmx7 status and connected links. example output: bmx7_status{id="C68791D2",revision="3a52f89",name="smpl-18f4ce",address="fd70:c687:91d2:8ab3:1a88:6b14:bad0:2b18"} 1 bmx7_cpu_usage 0.7 bmx7_mem_usage 3204000 bmx7_link_rxRate{target="F48239CD",dev="wlan0-mesh_13",source="C68791D2",name="smpl-07889a"} 54000 bmx7_link_txRate{target="F48239CD",dev="wlan0-mesh_13",source="C68791D2",name="smpl-07889a"} 52729 node_scrape_collector_duration_seconds{collector="bmx7"} 0.0020999908447266 node_scrape_collector_success{collector="bmx7"} 1 prometheus-node-exporter-lua: bmx6/7 netjson format adds labels called source and target to links instead of only the target previously called "id". Retrieving all *links* from prometheus now makes it easier to create a valid netjson(.org) graph. It's not feasible to use *instance* as *source* as for instance likely the name is used for dns, instead of the ID. Using the *name* instead of *id* for netjson linking results in a bad graph when two devices have the same (default) hostname. Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
* prometheus-node-exporter-lua: bump versionEtienne Champetier2017-12-08
| | | | Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: split out nat_traffic and netstatEtienne Champetier2017-12-08
| | | | | | | nat_traffic is too verbose to be really useful by default netstat is broken by default on OpenWrt/LEDE Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: put wifi collector in 2 separate packagesEtienne Champetier2017-12-08
| | | | | | | | | | | this allow to remove libubus-lua/libiwinfo-lua dependency from main package this also allow to have different scrape_interval Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com> split stations Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: make it modularEtienne Champetier2017-12-08
| | | | | | | | | | | | | | | As prometheus-node-exporter-lua is a reimplementation of node_exporter, I'm using "collector" instead of "scraper" and renaming some collectors put each collector in a separate file report collector success/failure and duration per scrape (follow https://github.com/prometheus/node_exporter/pull/516) allow to filter collectors using "collect[]" params (see https://github.com/prometheus/node_exporter#filtering-enabled-collectors) Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: rewrite wifi scraperEtienne Champetier2017-12-08
| | | | | | | | | | | On my bullet m2, scrape duration goes from between 0.2 and 0.5 to a stable 0.025 We also don't depend on luci anymore This remove wifi_network_up metric, but this metric was buggy wifi_network_up{ifname="wlan0-1",ssid="test1",channel="11",mode="Master",bssid="12:34:56:78:9A:BC",country="FR",frequency="2.462"} 1 wifi_network_up{ifname="radio0.network2",ssid="test1",channel="11",mode="Master",country="US",frequency="2.462"} 0 Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* prometheus-node-exporter-lua: adds node metrics exporterChristian Simon2017-05-08
Signed-off-by: Christian Simon <simon@swine.de>