diff --git a/plugins/prometheus/templates/prometheus/templates.html b/plugins/prometheus/templates/prometheus/templates.html index 8bd2423..e0375d7 100644 --- a/plugins/prometheus/templates/prometheus/templates.html +++ b/plugins/prometheus/templates/prometheus/templates.html @@ -17,7 +17,8 @@ {% endcall %}
- {%- if broken %}{{ broken|length }} template{{ "s don't" if broken|length != 1 else " doesn't" }} pass the checker; widgets drawn with {{ "them" if broken|length != 1 else "it" }} say so. + {%- if broken|length == 1 %}1 template doesn't pass the checker; widgets drawn with it say so. + {%- elif broken %}{{ broken|length }} templates don't pass the checker; widgets drawn with them say so. {%- else %}{{ templates|length }} template{{ "s" if templates|length != 1 }}: {{ templates|length - own|length }} built in, {{ own|length }} of your own.{% endif %}
A template says which of a target's series the Prometheus dashboard widget shows, and how. Built-in ones can be copied and changed; your own you write here, or paste or upload one someone shared.
diff --git a/steward/audit/service.py b/steward/audit/service.py index cad640d..b627825 100644 --- a/steward/audit/service.py +++ b/steward/audit/service.py @@ -190,6 +190,9 @@ ACTIONS = { "prometheus.target_created": "added Prometheus target", "prometheus.target_updated": "changed Prometheus target", "prometheus.target_deleted": "deleted Prometheus target", + "prometheus.template_created": "added Prometheus widget template", + "prometheus.template_updated": "changed Prometheus widget template", + "prometheus.template_deleted": "deleted Prometheus widget template", "backup.made": "sent a backup", "backup.failed": "tried to send a backup, which failed:", }