Open fis opened 5 years ago
The following dump is from a minimal OpenWrt r8614-78ca6a5578 build on Linksys WRT32X. Only potentially interesting calls (from the monitoring perspective) are included; there's a lot of calls that modify device state.
dnsmasq
metrics
hostapd.wlan0
get_clients
list_bans
get_features
hostapd.wlan1
log
read
(args: int lines
, bool stream
, bool oneshot
)network
network.device
status
(args: string name
)network.interface
dump
network.interface.X
status
network.wireless
status
service
list
(args: string name
, bool verbose
)get_data
(args: string name
, string instance
, string type
)state
(args: bool spawn
, string name
)system
board
info
reboot
watchdog
(args: int frequency
, int timeout
, bool magicclose
, bool stop
)signal
(args: int pid
, int signum
)sysupgrade
(args: string path
, string prefix
, string command
){
"dns_cache_inserted": 547229,
"dns_cache_live_freed": 0,
"dns_queries_forwarded": 187265,
"dns_auth_answered": 0,
"dns_local_answered": 263961,
"bootp": 0,
"pxe": 0,
"dhcp_ack": 107,
"dhcp_decline": 0,
"dhcp_discover": 45,
"dhcp_inform": 0,
"dhcp_nak": 0,
"dhcp_offer": 45,
"dhcp_release": 0,
"dhcp_request": 107,
"noanswer": 0,
"leases_allocated_4": 14,
"leases_pruned_4": 12,
"leases_allocated_6": 0,
"leases_pruned_6": 0
}
{
"freq": 5180,
"clients": {
"xx:xx:xx:xx": { auth, assoc, authorized, preauth, wds, wmm, ht, vht, wps, mfp, rrm, aid },
...
}
}
These are more or less redundant with the netdev
collector, so probably don't need to be included.
Mostly static state, not so interesting as metrics. Though the radioX.config.channel
might be a plausible metric, if it reflects an automatically assigned channel state.
{
...,
"nano-exporter": {
"instances": {
"instance1": {
"running": true,
"pid": 11606,
"command": [
"\/usr\/sbin\/nano-exporter",
"--foreground"
],
"term_timeout": 5
}
}
},
...
{
"kernel": "4.14.82",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 1 (v7l)",
"model": "Linksys WRT32X",
"board_name": "armada-385-linksys-venom",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"revision": "r8614-78ca6a5578",
"target": "mvebu\/cortexa9",
"description": "OpenWrt SNAPSHOT r8614-78ca6a5578"
}
}
{
"localtime": 1543982110,
"uptime": 345449,
"load": [
0,
0,
0
],
"memory": {
"total": 523218944,
"free": 330235904,
"shared": 102400,
"buffered": 3940352
},
"swap": {
"total": 0,
"free": 0
}
}
dnsmasq
openwrt_dnsmasq_X N
- all the metrics from dnsmasq metrics
callhostapd
openwrt_hostapd_authorized_clients{interface="wlanX"} N
openwrt_hostapd_unauthorized_clients{interface="wlanX"} N
service
openwrt_service_running_instances{name="x"} N
system
openwrt_system_board_info{kernel,hostname,system,model,board} 1
openwrt_system_release_info{distribution,version,revision,target} 1
OpenWrt has a system bus called
uBus
. We could add an (optional, enabled by default in the OpenWrt build) collector similar to the node_exporter systemd collector, reporting service/system statistics available over the bus.