Skip to content

Instantly share code, notes, and snippets.

@lyda

lyda/metrics.lua

Last active Feb 20, 2020
Embed
What would you like to do?
Prometheus node-exporter in lua for openwrt
#!/usr/bin/lua
-- Metrics web server (0.1)
-- Copyright (c) 2015 Kevin Lyda
-- Apache 2.0 License
socket = require("socket")
netsubstat = {"IcmpMsg", "Icmp", "IpExt", "Ip", "TcpExt", "Tcp", "UdpLite", "Udp"}
cpu_mode = {"user", "nice", "system", "idle", "iowait", "irq",
"softirq", "steal", "guest", "guest_nice"}
netdevsubstat = {"receive_bytes", "receive_packets", "receive_errs",
"receive_drop", "receive_fifo", "receive_frame", "receive_compressed",
"receive_multicast", "transmit_bytes", "transmit_packets",
"transmit_errs", "transmit_drop", "transmit_fifo", "transmit_colls",
"transmit_carrier", "transmit_compressed"}
function space_split(s)
elements = {}
for element in s:gmatch("%S+") do
table.insert(elements, element)
end
return elements
end
function line_split(s)
elements = {}
for element in s:gmatch("[^\n]+") do
table.insert(elements, element)
end
return elements
end
function metrics_header()
client:send("HTTP/1.1 200 OK\r\nServer: lua-metrics\r\n")
client:send("Content-Type: text/plain; version=0.0.4\r\n\r\n")
end
function metrics_404()
client:send("HTTP/1.1 404 Not Found\r\nServer: lua-metrics\r\n")
client:send("Content-Type: text/plain\r\n\r\nERROR: File Not Found.\r\n")
end
function get_contents(filename)
local f = io.open(filename, "rb")
local contents = ""
if f then
contents = f:read "*a"
f:close()
end
return contents
end
function print_metric_type(metric, mtype)
this_metric = metric
client:send("# TYPE " .. metric .. " " .. mtype .. "\n")
end
function print_metric(labels, value)
if labels then
client:send(string.format("%s{%s} %g\n", this_metric, labels, value))
else
client:send(string.format("%s %g\n", this_metric, value))
end
end
function serve(request)
if not string.match(request, "GET /metrics.*") then
metrics_404()
client:close()
return true
end
metrics_header()
local uname = space_split(io.popen("uname -a"):read("*a"))
local stat = get_contents("/proc/stat")
local file_nr = space_split(get_contents("/proc/sys/fs/file-nr"))
local loadavg = space_split(get_contents("/proc/loadavg"))
local meminfo = line_split(get_contents(
"/proc/meminfo"):gsub("[):]", ""):gsub("[(]", "_"))
local netstat = get_contents("/proc/net/netstats") .. get_contents("/proc/net/snmp")
local netdevstat = line_split(get_contents("/proc/net/dev"))
for i, line in ipairs(netdevstat) do
netdevstat[i] = string.match(netdevstat[i], "%S.*")
end
print_metric_type("node_boot_time", "gauge")
print_metric(nil, string.match(stat, "btime ([0-9]+)"))
print_metric_type("node_context_switches", "counter")
print_metric(nil, string.match(stat, "ctxt ([0-9]+)"))
print_metric_type("node_cpu", "counter")
local i = 0
while string.match(stat, string.format("cpu%d ", i)) do
cpu = space_split(string.match(stat, string.format("cpu%d ([0-9 ]+)", i)))
local label = string.format('cpu="cpu%d",mode="%%s"', i)
for ii, mode in ipairs(cpu_mode) do
print_metric(string.format(label, mode), cpu[ii] / 100)
end
i = i + 1
end
print_metric_type("node_filefd_allocated", "gauge")
print_metric(nil, file_nr[1])
print_metric_type("node_filefd_maximum", "gauge")
print_metric(nil, file_nr[3])
print_metric_type("node_forks", "counter")
print_metric(nil, string.match(stat, "processes ([0-9]+)"))
print_metric_type("node_intr", "counter")
print_metric(nil, string.match(stat, "intr ([0-9]+)"))
print_metric_type("node_load1", "gauge")
print_metric(nil, loadavg[1])
print_metric_type("node_load15", "gauge")
print_metric(nil, loadavg[3])
print_metric_type("node_load5", "gauge")
print_metric(nil, loadavg[2])
for i, mi in ipairs(meminfo) do
local mia = space_split(mi)
print_metric_type("node_memory_" .. mia[1], "gauge")
if table.getn(mia) == 3 then
print_metric(nil, mia[2] * 1024)
else
print_metric(nil, mia[2])
end
end
for i, nss in ipairs(netsubstat) do
local substat_s = string.match(netstat, nss .. ": ([A-Z][A-Za-z0-9 ]+)")
if substat_s then
local substat = space_split(substat_s)
local substatv = space_split(string.match(netstat, nss .. ": ([0-9 -]+)"))
for ii, ss in ipairs(substat) do
print_metric_type("node_netstat_" .. nss .. "_" .. ss, "gauge")
print_metric(nil, substatv[ii])
end
end
end
local nds_table = {}
local devs = {}
for i, nds in ipairs(netdevstat) do
local dev, stat_s = string.match(netdevstat[i], "([^:]+): (.*)")
if dev then
nds_table[dev] = space_split(stat_s)
table.insert(devs, dev)
end
end
for i, ndss in ipairs(netdevsubstat) do
print_metric_type("node_network_" .. ndss, "gauge")
for ii, d in ipairs(devs) do
print_metric('device="' .. d .. '"', nds_table[d][i])
end
end
print_metric_type("node_procs_blocked", "gauge")
print_metric(nil, string.match(stat, "procs_blocked ([0-9]+)"))
print_metric_type("node_procs_running", "gauge")
print_metric(nil, string.match(stat, "procs_running ([0-9]+)"))
print_metric_type("node_time", "counter")
print_metric(nil, os.time())
print_metric_type("node_uname_info", "gauge")
print_metric(string.format('domainname="(none)",machine="%s",nodename="%s",' ..
'release="%s",sysname="%s",version="%s %s %s %s %s %s %s"',
uname[11], uname[2], uname[3], uname[1], uname[4], uname[5],
uname[6], uname[7], uname[8], uname[9], uname[10]), 1)
client:close()
return true
end
-- Main program.
server = assert(socket.bind("*", 9100))
while 1 do
client = server:accept()
client:settimeout(60)
local request, err = client:receive()
if not err then
if not serve(request) then
break
end
end
end
# TYPE node_boot_time gauge
node_boot_time 1.44566e+09
# TYPE node_context_switches counter
node_context_switches 5.45431e+07
# TYPE node_cpu counter
node_cpu{cpu="cpu0",mode="user"} 682.58
node_cpu{cpu="cpu0",mode="nice"} 0
node_cpu{cpu="cpu0",mode="system"} 832.19
node_cpu{cpu="cpu0",mode="idle"} 397411
node_cpu{cpu="cpu0",mode="iowait"} 2.33
node_cpu{cpu="cpu0",mode="irq"} 0
node_cpu{cpu="cpu0",mode="softirq"} 3427.71
node_cpu{cpu="cpu0",mode="steal"} 0
node_cpu{cpu="cpu0",mode="guest"} 0
node_cpu{cpu="cpu0",mode="guest_nice"} 0
# TYPE node_filefd_allocated gauge
node_filefd_allocated 198
# TYPE node_filefd_maximum gauge
node_filefd_maximum 8192
# TYPE node_forks counter
node_forks 25944
# TYPE node_intr counter
node_intr 1.06594e+08
# TYPE node_load1 gauge
node_load1 0.02
# TYPE node_load15 gauge
node_load15 0.05
# TYPE node_load5 gauge
node_load5 0.04
# TYPE node_memory_MemTotal gauge
node_memory_MemTotal 2.99213e+07
# TYPE node_memory_MemFree gauge
node_memory_MemFree 3.19898e+06
# TYPE node_memory_Buffers gauge
node_memory_Buffers 520192
# TYPE node_memory_Cached gauge
node_memory_Cached 1.11739e+07
# TYPE node_memory_SwapCached gauge
node_memory_SwapCached 0
# TYPE node_memory_Active gauge
node_memory_Active 1.24396e+07
# TYPE node_memory_Inactive gauge
node_memory_Inactive 1.3271e+06
# TYPE node_memory_Active_anon gauge
node_memory_Active_anon 4.096e+06
# TYPE node_memory_Inactive_anon gauge
node_memory_Inactive_anon 77824
# TYPE node_memory_Active_file gauge
node_memory_Active_file 8.34355e+06
# TYPE node_memory_Inactive_file gauge
node_memory_Inactive_file 1.24928e+06
# TYPE node_memory_Unevictable gauge
node_memory_Unevictable 0
# TYPE node_memory_Mlocked gauge
node_memory_Mlocked 0
# TYPE node_memory_SwapTotal gauge
node_memory_SwapTotal 0
# TYPE node_memory_SwapFree gauge
node_memory_SwapFree 0
# TYPE node_memory_Dirty gauge
node_memory_Dirty 0
# TYPE node_memory_Writeback gauge
node_memory_Writeback 0
# TYPE node_memory_AnonPages gauge
node_memory_AnonPages 2.07258e+06
# TYPE node_memory_Mapped gauge
node_memory_Mapped 1.62202e+06
# TYPE node_memory_Shmem gauge
node_memory_Shmem 2.10125e+06
# TYPE node_memory_Slab gauge
node_memory_Slab 7.80288e+06
# TYPE node_memory_SReclaimable gauge
node_memory_SReclaimable 2.03981e+06
# TYPE node_memory_SUnreclaim gauge
node_memory_SUnreclaim 5.76307e+06
# TYPE node_memory_KernelStack gauge
node_memory_KernelStack 483328
# TYPE node_memory_PageTables gauge
node_memory_PageTables 315392
# TYPE node_memory_NFS_Unstable gauge
node_memory_NFS_Unstable 0
# TYPE node_memory_Bounce gauge
node_memory_Bounce 0
# TYPE node_memory_WritebackTmp gauge
node_memory_WritebackTmp 0
# TYPE node_memory_CommitLimit gauge
node_memory_CommitLimit 1.49586e+07
# TYPE node_memory_Committed_AS gauge
node_memory_Committed_AS 7.72506e+06
# TYPE node_memory_VmallocTotal gauge
node_memory_VmallocTotal 1.07353e+09
# TYPE node_memory_VmallocUsed gauge
node_memory_VmallocUsed 1.29434e+06
# TYPE node_memory_VmallocChunk gauge
node_memory_VmallocChunk 1.05242e+09
# TYPE node_netstat_IcmpMsg_InType0 gauge
node_netstat_IcmpMsg_InType0 5
# TYPE node_netstat_IcmpMsg_InType3 gauge
node_netstat_IcmpMsg_InType3 33211
# TYPE node_netstat_IcmpMsg_InType8 gauge
node_netstat_IcmpMsg_InType8 742
# TYPE node_netstat_IcmpMsg_InType11 gauge
node_netstat_IcmpMsg_InType11 3
# TYPE node_netstat_IcmpMsg_OutType0 gauge
node_netstat_IcmpMsg_OutType0 742
# TYPE node_netstat_IcmpMsg_OutType3 gauge
node_netstat_IcmpMsg_OutType3 145828
# TYPE node_netstat_IcmpMsg_OutType5 gauge
node_netstat_IcmpMsg_OutType5 29931
# TYPE node_netstat_IcmpMsg_OutType8 gauge
node_netstat_IcmpMsg_OutType8 23
# TYPE node_netstat_IcmpMsg_OutType11 gauge
node_netstat_IcmpMsg_OutType11 77
# TYPE node_netstat_Icmp_InMsgs gauge
node_netstat_Icmp_InMsgs 33961
# TYPE node_netstat_Icmp_InErrors gauge
node_netstat_Icmp_InErrors 39
# TYPE node_netstat_Icmp_InDestUnreachs gauge
node_netstat_Icmp_InDestUnreachs 33211
# TYPE node_netstat_Icmp_InTimeExcds gauge
node_netstat_Icmp_InTimeExcds 3
# TYPE node_netstat_Icmp_InParmProbs gauge
node_netstat_Icmp_InParmProbs 0
# TYPE node_netstat_Icmp_InSrcQuenchs gauge
node_netstat_Icmp_InSrcQuenchs 0
# TYPE node_netstat_Icmp_InRedirects gauge
node_netstat_Icmp_InRedirects 0
# TYPE node_netstat_Icmp_InEchos gauge
node_netstat_Icmp_InEchos 742
# TYPE node_netstat_Icmp_InEchoReps gauge
node_netstat_Icmp_InEchoReps 5
# TYPE node_netstat_Icmp_InTimestamps gauge
node_netstat_Icmp_InTimestamps 0
# TYPE node_netstat_Icmp_InTimestampReps gauge
node_netstat_Icmp_InTimestampReps 0
# TYPE node_netstat_Icmp_InAddrMasks gauge
node_netstat_Icmp_InAddrMasks 0
# TYPE node_netstat_Icmp_InAddrMaskReps gauge
node_netstat_Icmp_InAddrMaskReps 0
# TYPE node_netstat_Icmp_OutMsgs gauge
node_netstat_Icmp_OutMsgs 176601
# TYPE node_netstat_Icmp_OutErrors gauge
node_netstat_Icmp_OutErrors 0
# TYPE node_netstat_Icmp_OutDestUnreachs gauge
node_netstat_Icmp_OutDestUnreachs 145828
# TYPE node_netstat_Icmp_OutTimeExcds gauge
node_netstat_Icmp_OutTimeExcds 77
# TYPE node_netstat_Icmp_OutParmProbs gauge
node_netstat_Icmp_OutParmProbs 0
# TYPE node_netstat_Icmp_OutSrcQuenchs gauge
node_netstat_Icmp_OutSrcQuenchs 0
# TYPE node_netstat_Icmp_OutRedirects gauge
node_netstat_Icmp_OutRedirects 29931
# TYPE node_netstat_Icmp_OutEchos gauge
node_netstat_Icmp_OutEchos 23
# TYPE node_netstat_Icmp_OutEchoReps gauge
node_netstat_Icmp_OutEchoReps 742
# TYPE node_netstat_Icmp_OutTimestamps gauge
node_netstat_Icmp_OutTimestamps 0
# TYPE node_netstat_Icmp_OutTimestampReps gauge
node_netstat_Icmp_OutTimestampReps 0
# TYPE node_netstat_Icmp_OutAddrMasks gauge
node_netstat_Icmp_OutAddrMasks 0
# TYPE node_netstat_Icmp_OutAddrMaskReps gauge
node_netstat_Icmp_OutAddrMaskReps 0
# TYPE node_netstat_Ip_Forwarding gauge
node_netstat_Ip_Forwarding 1
# TYPE node_netstat_Ip_DefaultTTL gauge
node_netstat_Ip_DefaultTTL 64
# TYPE node_netstat_Ip_InReceives gauge
node_netstat_Ip_InReceives 4.94927e+07
# TYPE node_netstat_Ip_InHdrErrors gauge
node_netstat_Ip_InHdrErrors 78
# TYPE node_netstat_Ip_InAddrErrors gauge
node_netstat_Ip_InAddrErrors 49
# TYPE node_netstat_Ip_ForwDatagrams gauge
node_netstat_Ip_ForwDatagrams 4.57965e+07
# TYPE node_netstat_Ip_InUnknownProtos gauge
node_netstat_Ip_InUnknownProtos 0
# TYPE node_netstat_Ip_InDiscards gauge
node_netstat_Ip_InDiscards 0
# TYPE node_netstat_Ip_InDelivers gauge
node_netstat_Ip_InDelivers 730434
# TYPE node_netstat_Ip_OutRequests gauge
node_netstat_Ip_OutRequests 4.67162e+07
# TYPE node_netstat_Ip_OutDiscards gauge
node_netstat_Ip_OutDiscards 29931
# TYPE node_netstat_Ip_OutNoRoutes gauge
node_netstat_Ip_OutNoRoutes 0
# TYPE node_netstat_Ip_ReasmTimeout gauge
node_netstat_Ip_ReasmTimeout 1
# TYPE node_netstat_Ip_ReasmReqds gauge
node_netstat_Ip_ReasmReqds 4.21374e+06
# TYPE node_netstat_Ip_ReasmOKs gauge
node_netstat_Ip_ReasmOKs 1.40732e+06
# TYPE node_netstat_Ip_ReasmFails gauge
node_netstat_Ip_ReasmFails 1
# TYPE node_netstat_Ip_FragOKs gauge
node_netstat_Ip_FragOKs 1.48918e+06
# TYPE node_netstat_Ip_FragFails gauge
node_netstat_Ip_FragFails 29116
# TYPE node_netstat_Ip_FragCreates gauge
node_netstat_Ip_FragCreates 4.44171e+06
# TYPE node_netstat_Tcp_RtoAlgorithm gauge
node_netstat_Tcp_RtoAlgorithm 1
# TYPE node_netstat_Tcp_RtoMin gauge
node_netstat_Tcp_RtoMin 200
# TYPE node_netstat_Tcp_RtoMax gauge
node_netstat_Tcp_RtoMax 120000
# TYPE node_netstat_Tcp_MaxConn gauge
node_netstat_Tcp_MaxConn -1
# TYPE node_netstat_Tcp_ActiveOpens gauge
node_netstat_Tcp_ActiveOpens 7
# TYPE node_netstat_Tcp_PassiveOpens gauge
node_netstat_Tcp_PassiveOpens 13941
# TYPE node_netstat_Tcp_AttemptFails gauge
node_netstat_Tcp_AttemptFails 0
# TYPE node_netstat_Tcp_EstabResets gauge
node_netstat_Tcp_EstabResets 189
# TYPE node_netstat_Tcp_CurrEstab gauge
node_netstat_Tcp_CurrEstab 2
# TYPE node_netstat_Tcp_InSegs gauge
node_netstat_Tcp_InSegs 196430
# TYPE node_netstat_Tcp_OutSegs gauge
node_netstat_Tcp_OutSegs 208112
# TYPE node_netstat_Tcp_RetransSegs gauge
node_netstat_Tcp_RetransSegs 113
# TYPE node_netstat_Tcp_InErrs gauge
node_netstat_Tcp_InErrs 0
# TYPE node_netstat_Tcp_OutRsts gauge
node_netstat_Tcp_OutRsts 134
# TYPE node_netstat_UdpLite_InDatagrams gauge
node_netstat_UdpLite_InDatagrams 0
# TYPE node_netstat_UdpLite_NoPorts gauge
node_netstat_UdpLite_NoPorts 0
# TYPE node_netstat_UdpLite_InErrors gauge
node_netstat_UdpLite_InErrors 0
# TYPE node_netstat_UdpLite_OutDatagrams gauge
node_netstat_UdpLite_OutDatagrams 0
# TYPE node_netstat_UdpLite_RcvbufErrors gauge
node_netstat_UdpLite_RcvbufErrors 0
# TYPE node_netstat_UdpLite_SndbufErrors gauge
node_netstat_UdpLite_SndbufErrors 0
# TYPE node_netstat_Udp_InDatagrams gauge
node_netstat_Udp_InDatagrams 456955
# TYPE node_netstat_Udp_NoPorts gauge
node_netstat_Udp_NoPorts 8948
# TYPE node_netstat_Udp_InErrors gauge
node_netstat_Udp_InErrors 0
# TYPE node_netstat_Udp_OutDatagrams gauge
node_netstat_Udp_OutDatagrams 518577
# TYPE node_netstat_Udp_RcvbufErrors gauge
node_netstat_Udp_RcvbufErrors 0
# TYPE node_netstat_Udp_SndbufErrors gauge
node_netstat_Udp_SndbufErrors 0
# TYPE node_network_receive_bytes gauge
node_network_receive_bytes{device="eth0.1"} 4.44607e+09
node_network_receive_bytes{device="lo"} 237995
node_network_receive_bytes{device="wlan0"} 5.09979e+06
node_network_receive_bytes{device="eth0"} 3.50552e+09
node_network_receive_bytes{device="br-lan"} 4.446e+09
node_network_receive_bytes{device="eth0.2"} 1.10518e+10
# TYPE node_network_receive_packets gauge
node_network_receive_packets{device="eth0.1"} 2.60457e+07
node_network_receive_packets{device="lo"} 3400
node_network_receive_packets{device="wlan0"} 44118
node_network_receive_packets{device="eth0"} 4.95829e+07
node_network_receive_packets{device="br-lan"} 2.606e+07
node_network_receive_packets{device="eth0.2"} 2.3537e+07
# TYPE node_network_receive_errs gauge
node_network_receive_errs{device="eth0.1"} 0
node_network_receive_errs{device="lo"} 0
node_network_receive_errs{device="wlan0"} 0
node_network_receive_errs{device="eth0"} 0
node_network_receive_errs{device="br-lan"} 0
node_network_receive_errs{device="eth0.2"} 0
# TYPE node_network_receive_drop gauge
node_network_receive_drop{device="eth0.1"} 0
node_network_receive_drop{device="lo"} 0
node_network_receive_drop{device="wlan0"} 0
node_network_receive_drop{device="eth0"} 0
node_network_receive_drop{device="br-lan"} 15812
node_network_receive_drop{device="eth0.2"} 4
# TYPE node_network_receive_fifo gauge
node_network_receive_fifo{device="eth0.1"} 0
node_network_receive_fifo{device="lo"} 0
node_network_receive_fifo{device="wlan0"} 0
node_network_receive_fifo{device="eth0"} 60651
node_network_receive_fifo{device="br-lan"} 0
node_network_receive_fifo{device="eth0.2"} 0
# TYPE node_network_receive_frame gauge
node_network_receive_frame{device="eth0.1"} 0
node_network_receive_frame{device="lo"} 0
node_network_receive_frame{device="wlan0"} 0
node_network_receive_frame{device="eth0"} 0
node_network_receive_frame{device="br-lan"} 0
node_network_receive_frame{device="eth0.2"} 0
# TYPE node_network_receive_compressed gauge
node_network_receive_compressed{device="eth0.1"} 0
node_network_receive_compressed{device="lo"} 0
node_network_receive_compressed{device="wlan0"} 0
node_network_receive_compressed{device="eth0"} 0
node_network_receive_compressed{device="br-lan"} 0
node_network_receive_compressed{device="eth0.2"} 0
# TYPE node_network_receive_multicast gauge
node_network_receive_multicast{device="eth0.1"} 41016
node_network_receive_multicast{device="lo"} 0
node_network_receive_multicast{device="wlan0"} 0
node_network_receive_multicast{device="eth0"} 0
node_network_receive_multicast{device="br-lan"} 0
node_network_receive_multicast{device="eth0.2"} 7849
# TYPE node_network_transmit_bytes gauge
node_network_transmit_bytes{device="eth0.1"} 1.1659e+10
node_network_transmit_bytes{device="lo"} 237995
node_network_transmit_bytes{device="wlan0"} 2.6692e+07
node_network_transmit_bytes{device="eth0"} 3.53248e+09
node_network_transmit_bytes{device="br-lan"} 1.16697e+10
node_network_transmit_bytes{device="eth0.2"} 4.55953e+09
# TYPE node_network_transmit_packets gauge
node_network_transmit_packets{device="eth0.1"} 2.45859e+07
node_network_transmit_packets{device="lo"} 3400
node_network_transmit_packets{device="wlan0"} 151345
node_network_transmit_packets{device="eth0"} 4.97224e+07
node_network_transmit_packets{device="br-lan"} 2.462e+07
node_network_transmit_packets{device="eth0.2"} 2.51364e+07
# TYPE node_network_transmit_errs gauge
node_network_transmit_errs{device="eth0.1"} 0
node_network_transmit_errs{device="lo"} 0
node_network_transmit_errs{device="wlan0"} 0
node_network_transmit_errs{device="eth0"} 0
node_network_transmit_errs{device="br-lan"} 0
node_network_transmit_errs{device="eth0.2"} 0
# TYPE node_network_transmit_drop gauge
node_network_transmit_drop{device="eth0.1"} 0
node_network_transmit_drop{device="lo"} 0
node_network_transmit_drop{device="wlan0"} 0
node_network_transmit_drop{device="eth0"} 0
node_network_transmit_drop{device="br-lan"} 0
node_network_transmit_drop{device="eth0.2"} 0
# TYPE node_network_transmit_fifo gauge
node_network_transmit_fifo{device="eth0.1"} 0
node_network_transmit_fifo{device="lo"} 0
node_network_transmit_fifo{device="wlan0"} 0
node_network_transmit_fifo{device="eth0"} 0
node_network_transmit_fifo{device="br-lan"} 0
node_network_transmit_fifo{device="eth0.2"} 0
# TYPE node_network_transmit_colls gauge
node_network_transmit_colls{device="eth0.1"} 0
node_network_transmit_colls{device="lo"} 0
node_network_transmit_colls{device="wlan0"} 0
node_network_transmit_colls{device="eth0"} 0
node_network_transmit_colls{device="br-lan"} 0
node_network_transmit_colls{device="eth0.2"} 0
# TYPE node_network_transmit_carrier gauge
node_network_transmit_carrier{device="eth0.1"} 0
node_network_transmit_carrier{device="lo"} 0
node_network_transmit_carrier{device="wlan0"} 0
node_network_transmit_carrier{device="eth0"} 0
node_network_transmit_carrier{device="br-lan"} 0
node_network_transmit_carrier{device="eth0.2"} 0
# TYPE node_network_transmit_compressed gauge
node_network_transmit_compressed{device="eth0.1"} 0
node_network_transmit_compressed{device="lo"} 0
node_network_transmit_compressed{device="wlan0"} 0
node_network_transmit_compressed{device="eth0"} 0
node_network_transmit_compressed{device="br-lan"} 0
node_network_transmit_compressed{device="eth0.2"} 0
# TYPE node_procs_blocked gauge
node_procs_blocked 0
# TYPE node_procs_running gauge
node_procs_running 3
# TYPE node_time counter
node_time 1.44606e+09
# TYPE node_uname_info gauge
node_uname_info{domainname="(none)",machine="mips",nodename="owsla",release="3.3.8",sysname="Linux",version="#2 Sat Oct 20 12:31:22 UTC 2012"} 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment