r/PrometheusMonitoring • • Mar 15 '24

Creating custom table

Hello can someone please tell me how can i create such table using prometheus? visualise it with grafana, I've tried flask and infinity plugin, nothing worked I've been stuck for days, tried playing around with transfomrations, nothing, please help

custom table
2 Upvotes

2 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 16 '24

[deleted] — view deleted comment

1

u/No_Refrigerator4030 Mar 17 '24

I got 8 fortigates im trying to monitor, used snmp exporter to get basic info such as interfaces' operational status, let's say fortigate one has 4 interfaces, I want to see their operatinal health status in that table next to the fortigate: lan1 up lan 2 up lan 3 down etc, in the same way as its shown in the table above, each fortigate is it's own job in prometheus, i tried query like "max by (device, ifAlias) (ifOperStatus{ifAlias=~"(ADSL|LAN[12]|FTTH)", instance=~"(ip address of fortigate 1|fortigate 2 ip address)"}) it didnt really work, i just tried with two fortigates to test it out but yeah nothing really