User Tools

Site Tools


nms:prometheus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
nms:prometheus [2021/06/29 16:40] jotasandokunms:prometheus [2023/11/02 14:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 Example of query for total traffic (sum all servers in a site with In/Out traffic): Example of query for total traffic (sum all servers in a site with In/Out traffic):
-  # prometheus.XX.grapeshot.co.uk:9090 from Cam +  # prometheus.XX.mycompany1.co.uk:9090 from Cam 
-  sum(irate(node_netstat_IpExt_InOctets{instance=~"^.*nj\\.grapeshot\\.co\\.uk"}[5m]) + irate(node_netstat_IpExt_OutOctets{instance=~"^.*nj\\.grapeshot\\.co\\.uk"}[5m]))*8/1000000000+  sum(irate(node_netstat_IpExt_InOctets{instance=~"^.*nj\\.mycompany1\\.co\\.uk"}[5m]) + irate(node_netstat_IpExt_OutOctets{instance=~"^.*nj\\.mycompany1\\.co\\.uk"}[5m]))*8/1000000000
      
 \\ \\
nms/prometheus.1624984847.txt.gz · Last modified: (external edit)