The redisqueue exporter allows probing redis key length, support type
- list
- zset
GOOS=linux GOARCH=amd64 go build .
After a successful local build:
docker build -t redisqueue-exporter .
RedisQueue exporter implements the multi-target exporter pattern, so we advice to read the guide Understanding and using the multi-target exporter pattern to get the general idea about the configuration.
The redisqueue exporter needs to be passed the target as a parameter, this can be done with relabelling.
scrape_configs:
- job_name: redisqueue
metrics_path: /probe
static_configs:
- targets:
- 192.168.0.104:6379/0/test
- 192.168.0.104:6379/0/test*
- pwd@host:6379/0/erp_database_queues*
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- target_label: __address__
replacement: 192.168.0.104:8080