prometheus-node-exporter-lua: add openwrt exporter 6007/head
authorPaul Spooren <spooren@informatik.uni-leipzig.de>
Sat, 5 May 2018 12:10:45 +0000 (21:10 +0900)
committerPaul Spooren <spooren@informatik.uni-leipzig.de>
Sat, 5 May 2018 12:15:48 +0000 (21:15 +0900)
commit053487cca7be7e77350cacf2a3e6123177c03658
tree9f6446e49b3f1448f0d7ec65de9a7a02e157f9fa
parentb0f5972a16b7514da1b6727a401eee8e2eb5469d
prometheus-node-exporter-lua: add openwrt exporter

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>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua [new file with mode: 0644]