# How to adjust the Alert history (where is the data?)

**URL:** <https://forums.percona.com/t/how-to-adjust-the-alert-history-where-is-the-data/36720>\
**Category:** PMM 2.x\
**Created:** [February 14, 2025, 1:23pm UTC](https://forums.percona.com/t/how-to-adjust-the-alert-history-where-is-the-data/36720 "2025-02-14T13:23:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyerder](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/meyerder/32/16994_2.png) [@meyerder](https://forums.percona.com/u/meyerder)\
**Post date:** [February 14, 2025, 1:23pm UTC](https://forums.percona.com/t/how-to-adjust-the-alert-history-where-is-the-data/36720/1 "2025-02-14T13:23:22Z")

</div>

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…

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/8/0/80929fa869a99685b442e7d52e3b74a028d95753.png)

```auto
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`

```
