User Tools

Site Tools


nms:prometheus

This is an old revision of the document!


Example of query for total traffic (sum all servers in a site with In/Out traffic):

# prometheus.XX.grapeshot.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


  • Exporter (in the server/device to be monitored)
    • node exporter (linux box)
    • snmp exporter (really anything)
  • Dashboard
    • Grafana
  • Alert
    • YAML configuration for prometheus


cardinality in lables (?)
prometheus stores its data in a time series database

nms/prometheus.1624984806.txt.gz · Last modified: (external edit)