Files
packages/utils
Paul Spooren f7093021f9 prometheus-node-exporter-lua: add bmx6/7 scraper
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>
2018-02-12 21:41:37 +01:00
..
2018-02-04 00:02:20 +01:00
2017-10-15 17:15:08 +02:00
2017-10-17 16:44:36 +02:00
2017-12-09 18:18:05 +02:00
2017-11-30 02:33:13 +01:00
2017-09-15 16:11:57 +02:00
2017-08-29 21:41:14 -07:00
2017-01-16 03:10:38 -06:00
2018-02-04 11:57:35 -08:00
2017-09-22 21:53:40 -07:00
2017-10-17 22:07:02 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-23 00:13:13 +01:00
2017-12-31 19:04:06 +01:00
2017-09-21 01:31:45 +03:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-31 18:50:19 +01:00
2017-12-12 11:02:13 +01:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-11-26 18:53:45 +02:00
2017-12-01 17:56:52 -08:00
2017-11-19 18:10:11 -08:00
2016-12-17 15:20:05 +01:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-07 00:21:35 +01:00
2017-10-04 00:16:53 +02:00
2018-01-16 15:35:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-15 15:33:15 +02:00
2018-01-05 02:12:24 +01:00
2017-09-22 21:53:40 -07:00
2017-11-26 22:10:12 +01:00
2017-12-31 18:46:01 +01:00
2018-01-18 11:00:26 +07:00
2017-09-22 21:53:40 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2018-02-03 15:56:31 +02:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-31 18:46:42 +01:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-21 10:11:29 +01:00
2018-01-23 15:24:36 +08:00
2017-10-29 19:23:21 -07:00
2017-12-12 22:05:55 +01:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-08-29 21:41:14 -07:00
2017-12-02 01:05:01 +01:00
2017-12-31 18:44:53 +01:00
2017-10-26 14:40:52 +02:00
2018-01-09 20:20:30 +01:00
2017-10-17 22:03:55 +02:00
2017-02-05 21:36:50 +08:00
2017-06-19 21:42:41 +08:00
2017-11-17 13:39:30 +01:00
2017-08-29 21:41:14 -07:00
2017-11-29 11:20:06 +01:00
2017-08-29 21:41:14 -07:00
2017-11-17 13:39:05 +01:00
2017-10-23 18:12:11 +07:00