
suricata_exporter v0.6.0
एक Prometheus Exporter जो Suricata के लिए है
Suricata Prometheus Exporter
यह Suricata के लिए एक Prometheus Exporter है जो यूनिक्स सॉकेट के माध्यम से dump-counters का उपयोग करके मेट्रिक्स क्वेरी करता है।
उपयोग
$ ./suricata_exporter -h
Usage of ./suricata_exporter:
-suricata.socket-path string
Path to the Suricata Command socket. (default "/var/run/suricata.socket")
-version
Output version information.
-web.listen-address string
Address to listen on (default ":9917")
-quiet
supress logging messages when suricata is not enabled
-totals
Export only the overall global total metrics instead of per-thread metrics. (default false)
यह सत्यापित करने के लिए कि exporter आपके Suricata सेटअप के साथ काम कर रहा है, कैप्चर मेट्रिक्स का एक उपसमुच्चय देखने हेतु निम्न कमांड का उपयोग करें।
$ curl -s localhost:9917/metrics | grep kernel_packets_total
# HELP suricata_capture_kernel_packets_total
# TYPE suricata_capture_kernel_packets_total counter
suricata_capture_kernel_packets_total{thread="W#01-eth1"} 7744
suricata_capture_kernel_packets_total{thread="W#02-eth1"} 8435
suricata_capture_kernel_packets_total{thread="W#03-eth1"} 7564
suricata_capture_kernel_packets_total{thread="W#04-eth1"} 9747
अब आप नियमित अंतराल पर Suricata exporter से डेटा एकत्र (scrape) करने के लिए एक Prometheus सर्वर कॉन्फ़िगर कर सकते हैं, ताकि बाद में विज़ुअलाइज़ेशन और विश्लेषण किया जा सके।
मेट्रिक्स
वर्तमान में यह decoder, flow, flow_bypassed, app_layer और tcp के लिए प्रति-थ्रेड मेट्रिक्स उत्पन्न करता है। memuse के लिए मेट्रिक्स वैश्विक रूप से रिपोर्ट की जाती हैं।
संगतता
Suricata 6.0.4 और af-packet के विरुद्ध विकसित किया गया है। अधिकांश समर्थित मेट्रिक्स हार्ड-कोडेड हैं।
Suricata 7.0.0 के लिए अद्यतन किया गया है, लेकिन सभी नए मेट्रिक्स नहीं जोड़े गए हैं।