Exports metrics from ClamAV as Prometheus metrics.
- ClamAVUp
- ClamAVThreadsLive
- ClamAVThreadsIdle
- ClamAVThreadsMax
- ClamAVQueue
- ClamAVMemHeap
- ClamAVMemMMap
- ClamAVMemUsed
- ClamAVBuildInfo
# HELP clamav_build_info Shows ClamAV Build Info
# TYPE clamav_build_info gauge
clamav_build_info{clamav_version="0.102.4",database_version="25913"} 1
# HELP clamav_mem_heap Shows heap memory usage
# TYPE clamav_mem_heap gauge
clamav_mem_heap 3.656
# HELP clamav_mem_mmap Shows mmap memory usage
# TYPE clamav_mem_mmap gauge
clamav_mem_mmap 0.129
# HELP clamav_mem_used Shows used memory usage
# TYPE clamav_mem_used gauge
clamav_mem_used 3.236
# HELP clamav_queue Shows queued items
# TYPE clamav_queue counter
clamav_queue 0
# HELP clamav_threads_idle Shows idle threads
# TYPE clamav_threads_idle counter
clamav_threads_idle 0
# HELP clamav_threads_live Shows live threads
# TYPE clamav_threads_live counter
clamav_threads_live 1
# HELP clamav_threads_max Shows max threads
# TYPE clamav_threads_max counter
clamav_threads_max 12
# HELP clamav_up Shows UP Status
# TYPE clamav_up counter
clamav_up 1
ClamAV Prometheus Exporter requires a supported release of Go.
$ go get -u github.com/r3kzi/clamav-prometheus-exporter
To find out where clamav-prometheus-exporter
was installed you can run $ go list -f {{.Target}} github.com/r3kzi/clamav-prometheus-exporter
.
For clamav-prometheus-exporter
to be used globally add that directory to the $PATH
environment setting.
ClamAV server to connect to:
Usage of clamav-prometheus-exporter:
-clamav-address string
ClamAV address to use (default "localhost")
-clamav-port int
ClamAV port to use (default 3310)
Just scrape this, e.g.:
scrape_configs:
- job_name: 'clamav-prometheus-exporter'
static_configs:
- targets: ['localhost:9090']
Pull requests are welcome.