iobroker-community-adapters / ioBroker.rpi2

RPI-Monitor Adapter for ioBroker
MIT License
10 stars 13 forks source link

Adding metrics #172

Closed Docjones closed 6 months ago

Docjones commented 6 months ago

Is your feature request related to a problem? Please describe. My mini-switch sometimes reduces the link speed from 1GB/s to 100M/s (reason: unknown). I added the following metric to rpi's network.conf to get a grip if that happens:

dynamic.12.name=net_speed
dynamic.12.source=/dockerhost/sys/class/net/eth0/speed
dynamic.12.regexp=(.*)
dynamic.12.postprocess=
dynamic.12.rrd=DERIVE
dynamic.12.min=1000

...

web.status.1.content.8.line.3="Ethernet Speed....: "+Badge(data.net_speed,"==1000"," "+KMG(data.net_speed)+"/s","success")+" "+Badge(data.net_speed,"!=1000"," "+KMG(data.net_speed)+"/s","danger")+" "

Works fine :)

Describe the solution you'd like It would be great to have this a possibility to add this dynamic rpimonitor-metric as datapoint to iobroker, because i want to centralize my notifications there

Docjones commented 6 months ago

I just discovered, that this adapter does not utilize rpimonitors output, but retrieves the metrics itself. And so - i think this feature request here is useless...