업데이트로 돌아가기
New releaseSep 3, 2026

suricata_exporter v0.6.0

A Prometheus Exporter for Suricata

공유

Suricata Prometheus Exporter

이것은 유닉스 소켓을 통해 dump-counters를 사용하여 메트릭을 조회하는 Suricata용 Prometheus Exporter입니다.

사용법

$ ./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)

Suricata 설정에서 exporter가 제대로 작동하는지 확인하려면 다음 명령을 사용하여 캡처 메트릭의 일부를 확인하세요.

$ 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

이제 Prometheus 서버를 구성하여 정기적으로 Suricata exporter를 스크래핑하고 나중에 시각화 및 분석에 사용할 수 있습니다.

메트릭

현재 decoder, flow, flow_bypassed, app_layertcp에 대한 스레드별 메트릭을 생성합니다. memuse 메트릭은 전역적으로 보고됩니다.

호환성

Suricata 6.0.4 및 af-packet을 대상으로 개발되었습니다. 지원되는 대부분의 메트릭은 하드코딩되어 있습니다.

Suricata 7.0.0용으로 업데이트되었지만 모든 새 메트릭이 추가된 것은 아닙니다.

카테고리