redis.services.j2 278 B

123456789
  1. {"services": [
  2. {% for port in redis_ports -%}
  3. {"name": "redis-{{ port }}",
  4. "port": {{ port }},
  5. "checks": [{"script": "redis-cli -p {{ port }} --raw RAFT.INFO |grep -q '^role:leader'", "interval": "0.5s"}]
  6. }{% if port != redis_ports[-1] %},{% endif %}
  7. {% endfor -%}
  8. ]}