I am using an alert template and want to be able to extract the alert history
I know on the normal grafana alerts you can send them to a loki instance and get it from the state-history
Reason:
As this screenshot I can not seem to expand the box (the weburl is farther out and I cant expand the box, nor seem to find a means to export what I am seeing) I want to make a dashboard for it and transform it… Bu I really don’t know where this data is being stored
Additional Detail: This is using the blackbox exporter and sending the metrics to an external promethus system (not PMM) then I used a template (Attached) to built the alert…
templates:
- name: WebSiteStatus
version: 1
summary: WebSiteStatus
expr: |
(probe_http_status_code{job="blackbox_exporter_http_latency"} == 200 or absent(probe_http_status_code{job="blackbox_exporter_http_latency"})) * 1 +
(probe_http_status_code{job="blackbox_exporter_http_latency"} != 200) * 0
for: 1m
severity: critical
annotations:
description: '{{ $labels.node_name }} {{ $labels.appid }} {{ $labels.environment }} Website is {{ if eq $value 1 }}UP{{ else }}DOWN{{ end }}.'`Preformatted text`