From 44247d8756e958d043b66b07adc7aab9f66eb219 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 2 Apr 2021 17:43:22 +0200 Subject: [PATCH] sysop: Add manual alert creation --- docs/sysop.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sysop.md b/docs/sysop.md index 9c9e31e..fa2830b 100644 --- a/docs/sysop.md +++ b/docs/sysop.md @@ -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