jasonmcintosh / rabbitmq-zabbix

Zabbix RabbitMQ Configuration
Apache License 2.0
251 stars 168 forks source link

The problem with regexp in filter #113

Open perrfect opened 4 years ago

perrfect commented 4 years ago

Hi. I have some queues in the rabbitMQ, about 1000:

ha-collector-data-test2
ha-collector-data-1434
ha-collector-data-45-test3
ha-collector-data-terty4
ha-collector-data-341
etc.

And i need filter this queues. For example: FILTER='[{"name": "ha-collector-data-test2"}, {"name": "ha-collector-data-1434"}, {"name": "ha-collector-data-45-test3"}, {"name": "ha-collector-data-terty4"} ]'

But, describe every queues in a separate name it is difficult

So, which a regular expression should i use for my queues which have same start names? I use, but it is wrong:

FILTER='{"name": "ha-collector-data-[a-zA-Z0-9]{1,100}"}'