sberk42 / fritzbox_exporter

Fritz!Box Upnp statistics exporter for prometheus
Apache License 2.0
124 stars 42 forks source link

Devices which are connected on Mesh Repeater get not counted #26

Open MacVille opened 1 year ago

MacVille commented 1 year ago

When you have the following Configuration on your WiFi: 2023-04-04-16-25-fritz box

Only the directly Connected WiFi Devices will be "exported".

In my Case only 9 for 5.0Ghz and 2 for 2.4Ghz

But my WiFi Network is much larger because of the Mesh Repeater which are handling most of the Network.

Metrics which get Exportet:

# HELP fritzbox_exporter_collectErrors Number of collection errors.
# TYPE fritzbox_exporter_collectErrors counter
fritzbox_exporter_collectErrors 6341
# HELP fritzbox_exporter_luaCollectErrors Number of lua collection errors.
# TYPE fritzbox_exporter_luaCollectErrors counter
fritzbox_exporter_luaCollectErrors 9423
# HELP fritzbox_exporter_results_cached Number of results taken from cache.
# TYPE fritzbox_exporter_results_cached counter
fritzbox_exporter_results_cached{Cache="LUA"} 259818
fritzbox_exporter_results_cached{Cache="UPNP"} 525168
# HELP fritzbox_exporter_results_loaded Number of results loaded from fritzbox.
# TYPE fritzbox_exporter_results_loaded counter
fritzbox_exporter_results_loaded{Cache="LUA"} 13889
fritzbox_exporter_results_loaded{Cache="UPNP"} 2.172327e+06
# HELP gateway_connection_max_bitrate connection max bitrate
# TYPE gateway_connection_max_bitrate gauge
gateway_connection_max_bitrate{connection="PPP",direction="Down",gateway="fritz.box",interface="WAN"} 4.9643334e+07
gateway_connection_max_bitrate{connection="PPP",direction="Up",gateway="fritz.box",interface="WAN"} 4.0569962e+07
# HELP gateway_connection_status Connection status (Connected = 1)
# TYPE gateway_connection_status gauge
gateway_connection_status{connection="IP",gateway="fritz.box",interface="WAN"} 1
gateway_connection_status{connection="Physical Link",gateway="fritz.box",interface="DSL"} 1
gateway_connection_status{connection="Physical Link",gateway="fritz.box",interface="WAN"} 1
# HELP gateway_connection_uptime_seconds Connection uptime
# TYPE gateway_connection_uptime_seconds gauge
gateway_connection_uptime_seconds{connection="IP",gateway="fritz.box",interface="WAN"} 12603
gateway_connection_uptime_seconds{connection="PPP",gateway="fritz.box",interface="WAN"} 12603
# HELP gateway_data_ecostat_cputemp cpu temperature from data.lua?page=ecoStat
# TYPE gateway_data_ecostat_cputemp gauge
gateway_data_ecostat_cputemp{gateway="fritz.box"} 55
# HELP gateway_data_ecostat_cpuutil percentage of cpu utilization from data.lua?page=ecoStat
# TYPE gateway_data_ecostat_cpuutil gauge
gateway_data_ecostat_cpuutil{gateway="fritz.box"} 64
# HELP gateway_data_ecostat_ramusage percentage of RAM utilization from data.lua?page=energy
# TYPE gateway_data_ecostat_ramusage gauge
gateway_data_ecostat_ramusage{gateway="fritz.box",ram_type="Dynamic"} 49.1
gateway_data_ecostat_ramusage{gateway="fritz.box",ram_type="Fixed"} 32.4
gateway_data_ecostat_ramusage{gateway="fritz.box",ram_type="Free"} 18.5
# HELP gateway_data_energy_consumption percentage of energy consumed from data.lua?page=energy
# TYPE gateway_data_energy_consumption gauge
gateway_data_energy_consumption{gateway="fritz.box",name="CPU"} 81
gateway_data_energy_consumption{gateway="fritz.box",name="DSL"} 100
gateway_data_energy_consumption{gateway="fritz.box",name="Phone"} 0
gateway_data_energy_consumption{gateway="fritz.box",name="System"} 54
gateway_data_energy_consumption{gateway="fritz.box",name="USB"} 0
gateway_data_energy_consumption{gateway="fritz.box",name="WLAN"} 100
# HELP gateway_data_energy_lan_status status of LAN connection from data.lua?page=energy (1 = up)
# TYPE gateway_data_energy_lan_status gauge
gateway_data_energy_lan_status{gateway="fritz.box",name="LAN 1"} 1
gateway_data_energy_lan_status{gateway="fritz.box",name="LAN 2"} 1
gateway_data_energy_lan_status{gateway="fritz.box",name="LAN 3"} 0
gateway_data_energy_lan_status{gateway="fritz.box",name="LAN 4"} 0
# HELP gateway_data_usb_storage_total total storage in bytes from data.lua?page=usbOv
# TYPE gateway_data_usb_storage_total gauge
gateway_data_usb_storage_total{devicename="Internal eStorage",devicetype="INTERNAL_STORAGE",gateway="fritz.box"} 4.25721856e+08
# HELP gateway_data_usb_storage_used used storage in bytes from data.lua?page=usbOv
# TYPE gateway_data_usb_storage_used gauge
gateway_data_usb_storage_used{devicename="Internal eStorage",devicetype="INTERNAL_STORAGE",gateway="fritz.box"} 3.018752e+06
# HELP gateway_dect_active is dect device currently active
# TYPE gateway_dect_active gauge
gateway_dect_active{gateway="fritz.box",id="1",model="FRITZ!Fon C5",name=" "} 0
# HELP gateway_device_modelname gateway device model name
# TYPE gateway_device_modelname gauge
gateway_device_modelname{description="FRITZ!Box 7490 113.07.29",gateway="fritz.box",hardwareversion="FRITZ!Box 7490",modelname="FRITZ!Box 7490",productclass="FRITZ!Box",softwareversion="113.07.29"} 0
# HELP gateway_host_active is host currently active
# TYPE gateway_host_active gauge
gateway_host_active{gateway="fritz.box",hostname="amazon-dfb7475e1",interfacetype="802.11",ipaddress="192.168.178.49",macaddress="90:23:5b:3d:c2:8b"} 1
gateway_host_active{gateway="fritz.box",hostname="android-8f3324f3210d9174",interfacetype="",ipaddress="192.168.178.48",macaddress="e4:04:39:d9:35:a8"} 0
gateway_host_active{gateway="fritz.box",hostname="annabells-air",interfacetype="",ipaddress="192.168.178.28",macaddress="9c:f3:87:ac:5e:30"} 0
gateway_host_active{gateway="fritz.box",hostname="arlo-babycam",interfacetype="802.11",ipaddress="192.168.178.44",macaddress="08:02:8e:2c:25:e4"} 1
gateway_host_active{gateway="fritz.box",hostname="bellas-iphone",interfacetype="",ipaddress="192.168.178.23",macaddress="be:e3:02:e0:03:e4"} 0
gateway_host_active{gateway="fritz.box",hostname="bellas-iphone",interfacetype="",ipaddress="192.168.178.42",macaddress="dc:9b:9c:c1:3e:13"} 0
gateway_host_active{gateway="fritz.box",hostname="buro-eg",interfacetype="802.11",ipaddress="192.168.178.29",macaddress="58:d3:49:00:cc:d7"} 1
gateway_host_active{gateway="fritz.box",hostname="camera-hub-g3-cfb0",interfacetype="802.11",ipaddress="192.168.178.93",macaddress="54:ef:44:38:cf:b0"} 1
gateway_host_active{gateway="fritz.box",hostname="docker-pi-2",interfacetype="802.11",ipaddress="192.168.178.32",macaddress="e4:5f:01:85:96:e5"} 1
gateway_host_active{gateway="fritz.box",hostname="epson53423a",interfacetype="",ipaddress="192.168.178.35",macaddress="e0:bb:9e:53:42:3a"} 0
gateway_host_active{gateway="fritz.box",hostname="esp-70c003",interfacetype="802.11",ipaddress="192.168.178.51",macaddress="84:0d:8e:70:c0:03"} 1
gateway_host_active{gateway="fritz.box",hostname="esplesekopf-251aa4-6820",interfacetype="802.11",ipaddress="192.168.178.76",macaddress="8c:ce:4e:25:1a:a4"} 1
gateway_host_active{gateway="fritz.box",hostname="espresense-buero-eg",interfacetype="",ipaddress="192.168.178.43",macaddress="08:b6:1f:38:1a:b8"} 0
gateway_host_active{gateway="fritz.box",hostname="fb-buero",interfacetype="802.11",ipaddress="192.168.178.54",macaddress="c2:39:6f:9d:75:fe"} 1
gateway_host_active{gateway="fritz.box",hostname="fb-flur",interfacetype="802.11",ipaddress="192.168.178.46",macaddress="dc:39:6f:82:ce:0d"} 1
gateway_host_active{gateway="fritz.box",hostname="fb-kinderzimmer",interfacetype="802.11",ipaddress="192.168.178.61",macaddress="42:49:79:e9:71:f0"} 1
gateway_host_active{gateway="fritz.box",hostname="fb-kueche",interfacetype="802.11",ipaddress="192.168.178.65",macaddress="12:72:74:a0:8d:9a"} 1
gateway_host_active{gateway="fritz.box",hostname="filebrowser",interfacetype="",ipaddress="192.168.178.4",macaddress="02:42:c0:a8:b2:04"} 0
gateway_host_active{gateway="fritz.box",hostname="fritz.box",interfacetype="",ipaddress="192.168.178.1",macaddress="38:10:d5:a4:1b:08"} 1
gateway_host_active{gateway="fritz.box",hostname="garagentor",interfacetype="802.11",ipaddress="192.168.178.80",macaddress="c4:5b:be:5f:d8:b0"} 1
gateway_host_active{gateway="fritz.box",hostname="homeassistant",interfacetype="Ethernet",ipaddress="192.168.178.53",macaddress="52:54:00:57:8d:47"} 1
gateway_host_active{gateway="fritz.box",hostname="hs100",interfacetype="802.11",ipaddress="192.168.178.58",macaddress="d8:47:32:a3:e1:2e"} 1
gateway_host_active{gateway="fritz.box",hostname="ipad-von-klaus-2",interfacetype="",ipaddress="192.168.178.47",macaddress="ee:84:f1:2f:eb:98"} 0
gateway_host_active{gateway="fritz.box",hostname="ipad-von-stefan",interfacetype="802.11",ipaddress="192.168.178.59",macaddress="ae:3e:63:d7:75:26"} 1
gateway_host_active{gateway="fritz.box",hostname="iphone-x",interfacetype="802.11",ipaddress="192.168.178.34",macaddress="02:63:38:b9:7e:7b"} 1
gateway_host_active{gateway="fritz.box",hostname="iphone11promax",interfacetype="802.11",ipaddress="192.168.178.111",macaddress="d0:3f:aa:b2:50:06"} 1
gateway_host_active{gateway="fritz.box",hostname="jarvis",interfacetype="Ethernet",ipaddress="192.168.178.30",macaddress="00:11:32:61:c8:1f"} 1
gateway_host_active{gateway="fritz.box",hostname="kp115",interfacetype="802.11",ipaddress="192.168.178.75",macaddress="b0:a7:b9:c5:28:b5"} 1
gateway_host_active{gateway="fritz.box",hostname="linux",interfacetype="802.11",ipaddress="192.168.178.57",macaddress="f0:81:73:7a:59:2c"} 1
gateway_host_active{gateway="fritz.box",hostname="macbookonstefan",interfacetype="",ipaddress="192.168.178.50",macaddress="00:23:6c:8a:2a:96"} 0
gateway_host_active{gateway="fritz.box",hostname="nb-ts-r0-939",interfacetype="",ipaddress="192.168.178.25",macaddress="a4:34:d9:cd:39:b7"} 0
gateway_host_active{gateway="fritz.box",hostname="nb-ts-r0-939",interfacetype="Ethernet",ipaddress="192.168.178.37",macaddress="84:7b:eb:0c:50:50"} 1
gateway_host_active{gateway="fritz.box",hostname="nginxproxymanager",interfacetype="Ethernet",ipaddress="192.168.178.5",macaddress="02:42:c0:a8:b2:05"} 1
gateway_host_active{gateway="fritz.box",hostname="none-5",interfacetype="802.11",ipaddress="192.168.178.78",macaddress="7c:d5:66:8c:56:2e"} 1
gateway_host_active{gateway="fritz.box",hostname="p110",interfacetype="802.11",ipaddress="192.168.178.33",macaddress="14:eb:b6:c1:45:ba"} 1
gateway_host_active{gateway="fritz.box",hostname="p110",interfacetype="802.11",ipaddress="192.168.178.36",macaddress="14:eb:b6:c1:45:51"} 1
gateway_host_active{gateway="fritz.box",hostname="p110",interfacetype="802.11",ipaddress="192.168.178.39",macaddress="34:60:f9:56:97:11"} 1
gateway_host_active{gateway="fritz.box",hostname="pc-192-168-178-20",interfacetype="802.11",ipaddress="192.168.178.20",macaddress="32:e1:39:07:90:25"} 1
gateway_host_active{gateway="fritz.box",hostname="pc-192-168-178-41",interfacetype="802.11",ipaddress="192.168.178.41",macaddress="00:25:29:24:f5:1b"} 1
gateway_host_active{gateway="fritz.box",hostname="pc-192-168-178-45",interfacetype="",ipaddress="192.168.178.45",macaddress="86:e1:bd:29:04:19"} 0
gateway_host_active{gateway="fritz.box",hostname="pc-192-168-178-64",interfacetype="802.11",ipaddress="192.168.178.64",macaddress="d4:ad:fc:25:18:03"} 1
gateway_host_active{gateway="fritz.box",hostname="pc-192-168-178-84",interfacetype="802.11",ipaddress="192.168.178.84",macaddress="84:2e:14:ee:34:b6"} 1
gateway_host_active{gateway="fritz.box",hostname="pi-hole",interfacetype="Ethernet",ipaddress="192.168.178.3",macaddress="02:42:c0:a8:b2:03"} 1
gateway_host_active{gateway="fritz.box",hostname="rk3308-robot32",interfacetype="802.11",ipaddress="192.168.178.79",macaddress="f0:c8:14:37:62:0a"} 1
gateway_host_active{gateway="fritz.box",hostname="samsung-the-frame",interfacetype="802.11",ipaddress="192.168.178.22",macaddress="7c:0a:3f:72:be:70"} 1
gateway_host_active{gateway="fritz.box",hostname="shelly1-e8db84acb65d",interfacetype="802.11",ipaddress="192.168.178.69",macaddress="e8:db:84:ac:b6:5d"} 1
gateway_host_active{gateway="fritz.box",hostname="shellyht-762587",interfacetype="",ipaddress="192.168.178.21",macaddress="c4:5b:be:76:25:87"} 0
gateway_host_active{gateway="fritz.box",hostname="smuehlendick",interfacetype="",ipaddress="192.168.178.204",macaddress=""} 0
gateway_host_active{gateway="fritz.box",hostname="toniebox",interfacetype="802.11",ipaddress="192.168.178.27",macaddress="68:47:49:28:0a:5b"} 0
gateway_host_active{gateway="fritz.box",hostname="tower",interfacetype="Ethernet",ipaddress="192.168.178.2",macaddress="00:d8:61:a6:dd:3f"} 1
gateway_host_active{gateway="fritz.box",hostname="tower",interfacetype="Ethernet",ipaddress="192.168.178.2",macaddress="22:b8:ea:ac:32:e6"} 1
gateway_host_active{gateway="fritz.box",hostname="tower",interfacetype="Ethernet",ipaddress="192.168.178.2",macaddress="6a:4d:40:e4:4c:f6"} 0
gateway_host_active{gateway="fritz.box",hostname="unraid",interfacetype="",ipaddress="192.168.178.2",macaddress="1c:83:41:29:25:69"} 0
gateway_host_active{gateway="fritz.box",hostname="valhalla",interfacetype="Ethernet",ipaddress="192.168.178.31",macaddress="a8:a1:59:1a:1d:3b"} 0
gateway_host_active{gateway="fritz.box",hostname="vmb3010",interfacetype="Ethernet",ipaddress="192.168.178.68",macaddress="9c:3d:cf:3d:bf:27"} 1
gateway_host_active{gateway="fritz.box",hostname="watermeter",interfacetype="",ipaddress="192.168.178.24",macaddress="30:c6:f7:22:1d:b4"} 0
gateway_host_active{gateway="fritz.box",hostname="watermeter-reed",interfacetype="",ipaddress="192.168.178.26",macaddress="08:b6:1f:35:05:f0"} 0
gateway_host_active{gateway="fritz.box",hostname="wonderwall-smart-bueroeg",interfacetype="802.11",ipaddress="192.168.178.88",macaddress="d8:1f:12:fb:dc:4d"} 1
# HELP gateway_max_bitrate max bitrate on gateway interface
# TYPE gateway_max_bitrate gauge
gateway_max_bitrate{direction="Down",gateway="fritz.box",interface="DSL"} 1.43949e+08
gateway_max_bitrate{direction="Down",gateway="fritz.box",interface="WAN"} 1.1411e+08
gateway_max_bitrate{direction="Up",gateway="fritz.box",interface="DSL"} 4.4796e+07
gateway_max_bitrate{direction="Up",gateway="fritz.box",interface="WAN"} 4.1486e+07
# HELP gateway_traffic traffic on gateway interface
# TYPE gateway_traffic counter
gateway_traffic{direction="Received",gateway="fritz.box",interface="DSL",unit="Packets"} 117803
gateway_traffic{direction="Received",gateway="fritz.box",interface="LAN",unit="Bytes"} 2.542578392e+09
gateway_traffic{direction="Received",gateway="fritz.box",interface="WAN",unit="Bytes"} 2.540815994e+09
gateway_traffic{direction="Received",gateway="fritz.box",interface="WAN",unit="Packets"} 117803
gateway_traffic{direction="Sent",gateway="fritz.box",interface="DSL",unit="Packets"} 328163
gateway_traffic{direction="Sent",gateway="fritz.box",interface="LAN",unit="Bytes"} 2.932797116e+09
gateway_traffic{direction="Sent",gateway="fritz.box",interface="WAN",unit="Bytes"} 7.13684903e+08
gateway_traffic{direction="Sent",gateway="fritz.box",interface="WAN",unit="Packets"} 328074
# HELP gateway_traffic_rate traffic rate on gateway interface
# TYPE gateway_traffic_rate gauge
gateway_traffic_rate{direction="Received",gateway="fritz.box",interface="WAN",unit="Bytes"} 3440
gateway_traffic_rate{direction="Sent",gateway="fritz.box",interface="WAN",unit="Bytes"} 2585
# HELP gateway_uptime_seconds gateway uptime
# TYPE gateway_uptime_seconds gauge
gateway_uptime_seconds{description="FRITZ!Box 7490 113.07.29",gateway="fritz.box"} 445992
# HELP gateway_wan_connection_status WAN Connection status (Connected = 1)
# TYPE gateway_wan_connection_status gauge
gateway_wan_connection_status{connection="PPP",connectiontype="IP_Routed",externalipaddress="79.233.135.93",gateway="fritz.box",interface="WAN",macaddress="38:10:d5:a4:1b:0c"} 1
# HELP gateway_wlan_current_connections current WLAN connections
# TYPE gateway_wlan_current_connections gauge
gateway_wlan_current_connections{gateway="fritz.box",wlan="2.4 GHz"} 9
gateway_wlan_current_connections{gateway="fritz.box",wlan="5 Ghz"} 2
# HELP gateway_wlan_status WLAN status (Enabled = 1)
# TYPE gateway_wlan_status gauge
gateway_wlan_status{gateway="fritz.box",wlan="2.4 Ghz"} 1
gateway_wlan_status{gateway="fritz.box",wlan="5 Ghz"} 1
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 3.125e-05
go_gc_duration_seconds{quantile="0.25"} 4.238e-05
go_gc_duration_seconds{quantile="0.5"} 4.784e-05
go_gc_duration_seconds{quantile="0.75"} 7.6931e-05
go_gc_duration_seconds{quantile="1"} 0.00017346
go_gc_duration_seconds_sum 0.453172652
go_gc_duration_seconds_count 7607
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 12
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.16.3"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 8.083848e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 2.901196468e+10
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.677464e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 2.32893148e+08
# HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started.
# TYPE go_memstats_gc_cpu_fraction gauge
go_memstats_gc_cpu_fraction 4.176786513288098e-06
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 5.749184e+06
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 8.083848e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 5.431296e+07
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 1.1583488e+07
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 44014
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 5.3026816e+07
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 6.5896448e+07
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.6806195308395948e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 0
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 2.32937162e+08
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 19200
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 32768
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 309808
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 704512
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 9.043472e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 3.649968e+06
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 1.212416e+06
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 1.212416e+06
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 7.892276e+07
# HELP go_threads Number of OS threads created.
# TYPE go_threads gauge
go_threads 21
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 377.1
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 40960
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 12
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 4.0562688e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.68016248053e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 2.052722688e+09
# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
# TYPE process_virtual_memory_max_bytes gauge
process_virtual_memory_max_bytes 1.8446744073709552e+19
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 30429
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
sberk42 commented 1 year ago

the exporter is just collecting, what is configured in your metrics.json and reported by the fritzbox. so I guess you need to figure out if (and how) the fritzbox is making the mash details available, I at least could not find any mesh info in the documentation: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_TR-064_first_steps.pdf

if you figure out how to get it, you can simply add it to your metrics.json

BeyondVertical commented 1 year ago

Can somebody please create a metrics.json with all information and a Grafana dashboard that goes with it? Would be really awesome. I do not really understand the metrics system. :D