bilalcaliskan / redis_exporter-ansible-role

An Ansible role which installs and configures Redis exporter on Redhat/Debian based hosts
https://galaxy.ansible.com/bilalcaliskan/redis_exporter
Apache License 2.0
0 stars 2 forks source link

how to expose redis_key_size metrics #5

Open wenzizone opened 1 year ago

wenzizone commented 1 year ago

ExecStart=/usr/local/bin/redis_exporter --web.listen-address=:{{ exporter_port }} --redis.addr=redis://{% if redis_bind_localhost == true %}localhost{% else %}{{ ansible_default_ipv4.address }}{% endif %}:{{ redis_port }}

redis_exporter has a parameter "-check-keys string", this can expose key size metrics.

what i want /usr/local/bin/redis_exporter --web.listen-address=:{{ exporter_port }} --redis.addr=redis://{% if redis_bind_localhost == true %}localhost{% else %}{{ ansible_default_ipv4.address }}{% endif %}:{{ redis_port }} -check-keys key1,key2,key3

so i think we have to add a new part in template.

bilalcaliskan commented 1 year ago

indeed @wenzizone! i will see if i can do that because of work load, in the mean time you are more than welcome to throw a PR!

cheers.