sysop: Add manual alert creation
This commit is contained in:
parent
d43a278058
commit
44247d8756
|
@ -16,6 +16,11 @@ enabled](https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-a
|
||||||
:::shell
|
:::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
|
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
|
## OpenSSL
|
||||||
|
|
||||||
### Get certificate expiry date
|
### Get certificate expiry date
|
||||||
|
|
Loading…
Reference in a new issue