knightss27 / grafana-network-weathermap

A fully featured and customizable network weathermap plugin for Grafana (9.0+).
https://grafana.com/grafana/plugins/knightss27-weathermap-panel/
Apache License 2.0
132 stars 6 forks source link

Bandwidth/speed doesn't show correctly #74

Closed st3rling closed 7 months ago

st3rling commented 7 months ago

Describe the problem Bandwidth links don't show correct amount of traffic nor interface speed. Using Zabbix data source. Values in Zabbix app are correct. This happens with Disable data alignment set to true or false. It also happens either I set bandwidth manually or through Bandwidth Query. Also it looks like sent and receive numbers are the same.

Here's the query: { "request": { "url": "api/datasources/1/resources/db-connection-post", "method": "POST", "hideFromInspector": false, "data": { "series": [ { "ts": [ { "time": 1703061326, "value": 20000 } ], "meta": { "name": "CSW-ID-SB-1: Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed", "item": { "delay": "5m", "hostid": "10549", "hosts": [ { "host": "CSW-ID-SB-1", "hostid": "10549", "name": "CSW-ID-SB-1" } ], "itemid": "47280", "key_": "net.if.speed[ifHighSpeed.204]", "name": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed", "state": "0", "status": "0", "tags": [ { "tag": "Application", "value": "Interfaces" } ], "units": "", "value_type": "3", "valuemapid": "0", "item": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed" }, "interval": 300000000000 } } ], "query": { "schema": 12, "queryType": "0", "group": { "filter": "Network SB" }, "host": { "filter": "CSW-ID-SB-1" }, "application": { "filter": "" }, "itemTag": { "filter": "Application: Interfaces" }, "item": { "filter": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed" }, "macro": { "filter": "" }, "functions": [], "trigger": { "filter": "" }, "countTriggersBy": "", "tags": { "filter": "" }, "proxy": { "filter": "" }, "textFilter": "", "options": { "showDisabledItems": false, "skipEmptyValues": false, "disableDataAlignment": false, "useZabbixValueMapping": false, "useTrends": "default", "count": false }, "table": { "skipEmptyValues": false }, "datasource": { "type": "alexanderzobnin-zabbix-datasource", "uid": "2AJ9c_VIk" }, "hide": false, "refId": "CSW-ID-SB-1 t10 speed", "resultFormat": "time_series" }, "timeRange": { "from": 1703061161, "to": 1703061461 } } }, "response": [ { "schema": { "name": "CSW-ID-SB-1: Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed", "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64", "nullable": true }, "labels": { "host": "CSW-ID-SB-1", "item": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed", "item_key": "net.if.speed[ifHighSpeed.204]" }, "config": { "displayNameFromDS": "CSW-ID-SB-1: Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed", "custom": { "scopedVars": { "zbx_host": { "text": "", "value": "CSW-ID-SB-1" }, "zbx_host_name": { "text": "", "value": "CSW-ID-SB-1" }, "zbx_item": { "text": "", "value": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed" }, "zbx_item_interval": { "text": "", "value": "5m" }, "zbx_item_key": { "text": "", "value": "net.if.speed[ifHighSpeed.204]" }, "zbx_item_name": { "text": "", "value": "Interface Eth-Trunk10(ASW-ID-RAMO-1.31-SB): Speed" } }, "units": "" } } } ] }, "data": { "values": [ [ 1703061326000 ], [ 20000 ] ] } } ] }

To Reproduce Not sure, it just always happens

Expected behavior Proper values in amount of traffic and interface speed

Screenshots image

VERSIONS! (please complete the following information):

Please let me know if you need more information and thank you!

st3rling commented 7 months ago

Sorry, my mistake. It was actually SNMP template problem within Zabbix itself for these particular switches.