<commit_before>{
    "service": {
        "name": "{{ inventory_hostname|regex_replace('\d+', '') }}",
        "id": "{{ inventory_hostname }}",
        "tags": [
            "redis"
        ],
        "port": 6379,
        "checks": [{
            "id": "{{inventory_hostname}}-ping",
            {% if inventory_hostname == 'db-redis-story' %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_story?consul=1",
            {% elif inventory_hostname == 'db-redis-user' %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_user?consul=1",
            {% elif inventory_hostname == 'db-redis-pubsub' %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_pubsub?consul=1",
            {% elif inventory_hostname == 'db-redis-sessions' %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_sessions?consul=1",            
            {% else %}
                "http": "http://{{ ansible_ssh_host }}:5000/db_check/redis?consul=1",
            {% endif %}
            "interval": "15s",
            "failures_before_critical": 4
        }]
    }
}  
<commit_msg>Redis consul<commit_after>{
    "service": {
        "name": "{{ inventory_hostname|regex_replace('\d+', '') }}",
        "id": "{{ inventory_hostname }}",
        "tags": [
            "redis"
        ],
        "port": 6379,
        "checks": [{
            "id": "{{inventory_hostname}}-ping",
            {% if inventory_hostname.startswith('db-redis-story') %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_story?consul=1",
            {% elif inventory_hostname.startswith('db-redis-user') %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_user?consul=1",
            {% elif inventory_hostname.startswith('db-redis-pubsub') %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_pubsub?consul=1",
            {% elif inventory_hostname.startswith('db-redis-sessions') %}
                "http": "http://{{ ansible_ssh_host }}:5579/db_check/redis_sessions?consul=1",            
            {% else %}
                "http": "http://{{ ansible_ssh_host }}:5000/db_check/redis?consul=1",
            {% endif %}
            "interval": "15s",
            "failures_before_critical": 4
        }]
    }
}  

{'fraction_non_alphanumeric': 0.18646232439335889, 'fraction_numerical': 0.02724563644103874, 'mean_word_length': 2.0440414507772022, 'pattern_counts': {'":': 28, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6607068', 'n_tokens_mistral': 842, 'n_tokens_neox': 771, 'n_words': 99}