{# plugins/prometheus/templates/prometheus/series.html — one stored series of a target (milestone 506): its newest value and a chart over a chosen range. A *_timestamp_seconds series charts as moments, not numbers. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% block title %}{{ metric }} — {{ target.name }} — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Prometheus", "/plugins/prometheus/"), (target.name, "/plugins/prometheus/targets/" ~ target.id), (metric, "")]) }}{% endblock %} {% block content %} {% call page_header(metric, labels or none) %} {% for h in ranges %} {% if h < 168 %}{{ h }}h{% else %}7d{% endif %} {% endfor %} {% endcall %}
Now: {% if now.moment %}{{ now.moment|ago }}{% else %}{{ now.text }}{% endif %}
To be told when it crosses a line, add an alert rule on Prometheus targets → {{ resource }} → {{ metric }}. New alert rule
{% endblock %}