{% extends "base.html" %} {% block title %}Database Configuration - Hermetic Suite{% endblock %} {% block content %}

Collection Schedule

{% if schedule_info.error %}
Scheduling unavailable: {{ schedule_info.error }}

To enable scheduling, ensure the hsuite user has cron access. You can manually set up a cron job:

# Run every 15 minutes */15 * * * * /opt/hsuite/venv/bin/python /opt/hsuite/plugins/databases/collect_all.py
{% else %}

{% if schedule_info.current and schedule_info.current != 'disabled' %} Active Currently collecting metrics {{ schedule_info.current_label|lower }}. {% else %} Inactive Automatic collection is disabled. Use manual collection or enable a schedule. {% endif %}

{% endif %}

Default Thresholds

These thresholds apply to all databases unless overridden in the database's edit page.

{% for t in thresholds if t.connection_id is none %} {% endfor %}
Metric Comparison Warning Critical Enabled Actions
{{ t.metric_type|replace('_', ' ')|title }}
{% if t.metric_type == 'connection_percent' %} Percentage of max connections in use {% elif t.metric_type == 'query_duration_ms' %} Query duration in milliseconds {% elif t.metric_type == 'cache_hit_ratio' %} Buffer/cache hit ratio percentage {% endif %}
{{ t.comparison }} {% if t.comparison == '>' %}(greater than){% else %}(less than){% endif %}

Threshold Explanations

Connection Percent ( > )
Alerts when the percentage of active connections exceeds the threshold. Default: Warning at 80%, Critical at 95%.
Query Duration ( > )
Alerts when queries run longer than the threshold (in milliseconds). Default: Warning at 2000ms, Critical at 10000ms.
Cache Hit Ratio ( < )
Alerts when the buffer/cache hit ratio falls below the threshold. A low hit ratio indicates poor cache utilization. Default: Warning below 90%, Critical below 80%.
{% endblock %}