sysop: Add manual alert creation

This commit is contained in:
Simon Bruder 2021-04-02 17:43:22 +02:00
parent d43a278058
commit 44247d8756
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -16,6 +16,11 @@ enabled](https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-a
:::shell
curl -u user:pass -X POST -g 'https://prometheus-endpoint/api/v1/admin/tsdb/delete_series?match[]=metric{label="foo"}&start=TIMESTAMP&end=TIMESTAMP
### Add synthetic alert to alertmanager
:::javascript
await fetch("/alertmanager/api/v1/alerts", {method: "POST", body: JSON.stringify([{ "labels": {"alertname": "testalert"}, "annotations": { "description": "manual test alert"}}])})
## OpenSSL
### Get certificate expiry date