Interface network stats to Grafana
Trevor Dunstan <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
Hey guys,
Currently using Grafana as a front end for OpenNMS and I want to graph Bits in / Bits out utilisation for a network interface. OpenNMS gets the raw data (ifinoctets and ifoutoctets) and performs the required calculations in the snmp-graph.properties.d and displays the correct data in the form if bits per second in and out.
As I am pretty new to OpenNMS and Grafana, the problem I am having is that Grafana only gets the raw data from OpenNMS (ifinoctets and ifoutoctets) and I am not sure how to perform the calculations in Grafana to convert the data to bits per second in / out. Ideally I would like to just query the below OpenNMS report / graph in snmp-graph.properties.d from Grafana and graph it directly but really not sure how to do that.
report.mib2.bits.name=Bits In/Out
report.mib2.bits.columns=ifInOctets,ifOutOctets
report.mib2.bits.type=interfaceSnmp
report.mib2.bits.command=--title="Bits In/Out" \
--vertical-label="Bits per second" \
DEF:octIn={rrd1}:ifInOctets:AVERAGE \
DEF:octOut={rrd2}:ifOutOctets:AVERAGE \
CDEF:rawbitsIn=octIn,8,* \
CDEF:rawbitsOut=octOut,8,* \
CDEF:rawbitsOutNeg=0,rawbitsOut,- \
CDEF:rawtotBits=octIn,octOut,+,8,* \
CDEF:bitsIn=rawbitsIn,UN,0,rawbitsIn,IF \
CDEF:bitsOut=rawbitsOut,UN,0,rawbitsOut,IF \
CDEF:totBits=rawtotBits,UN,0,rawtotBits,IF \
CDEF:outSum=bitsOut,{diffTime},* \
CDEF:inSum=bitsIn,{diffTime},* \
CDEF:totSum=totBits,{diffTime},* \
AREA:rawbitsIn#73d216: \
I did see this on the discuss forums https://sourceforge.net/p/opennms/mailman/message/34418809/ and it sort of looks like what I want to do, but it doesn't have the exact detail I need to get it sorted.
Has anyone had any experience graphing network stats in graphana with opennms ??
Thanks
Trev
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss