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
Next revision
Previous revision
nms:prometheus [2021/06/29 16:39] – ` 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
      
 \\ \\
-  * Exporter (in the server/device to be monitored)+  * Exporter (in the server/device to be monitored). Metrics are pulled (scraped) from exporters
     * node exporter (linux box)     * node exporter (linux box)
     * snmp exporter (really anything)     * snmp exporter (really anything)
Line 14: Line 14:
 \\ \\
 ''cardinality'' in lables (?) ''cardinality'' in lables (?)
 +\\
 +prometheus stores its data in a time series database
nms/prometheus.1624984746.txt.gz · Last modified: (external edit)