Jean-Philippe Quéméner
4fef791c7c
Alerting: enable e2e tests to run in production mode ( #45073 )
...
* Alerting: run e2e tests in production mode
* adapt expected messages
* switch expected and actual to have the right order
2022-02-09 10:26:06 +01:00
Jean-Philippe Quéméner and gillesdemey
8ee3f59cd4
Alerting: recognize Cortex datasources correctly in the frontend ( #44316 )
...
* Alerting: always use msg field for user facing errors
* fix: revert front-end Cortex detection
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com >
2022-01-21 15:44:11 +01:00
Jean-Philippe Quéméner
ffc72aa255
Alerting: fix gosec warning that is not valid ( #43425 )
2021-12-21 19:47:47 +01:00
Jean-Philippe Quéméner
b605340668
Alerting: log errors happening in the API on server side ( #43192 )
...
* Alerting: log errors happening in the API on server side
* adapt tests to reflect changed payload
2021-12-16 13:33:10 +01:00
Jean-Philippe Quéméner
e70cdb3f49
Alerting: add documentation about alertmanager contactpoint support ( #42799 )
2021-12-07 09:04:47 +01:00
Jean-Philippe Quéméner
cec2d965ec
Alerting: validate mute timings in the alertmanager configuration ( #42125 )
...
* Alerting: check for uniqueness of mutetime names
* add some testing
* add name validation
* add root route validation
* add tests for validation
* add check for root route mute_time_intervals
* add duplicate test
* remove useless yaml test
* refactor table test
2021-11-23 16:25:20 +01:00
Jean-Philippe Quéméner
f3b023ffa6
Fix: add the babel config to the dockerfiles ( #42021 )
2021-11-20 15:40:13 +01:00
Jean-Philippe Quéméner
b9cdad3814
Alerting: support mute timings configuration through the api for the embedded alertmanager ( #41533 )
...
* Alerting: accept mute_timing_intervals through the api for the embedded alertmanager
* add workaround for mutetimeinterval
* add mute timings to routes
* revert changes
* Update pkg/services/ngalert/api/api_alertmanager.go
* Update pkg/services/ngalert/api/api_alertmanager.go
* Update pkg/services/ngalert/api/api_alertmanager.go
* update prometheus/alertmanager dependency
* add some var docs
2021-11-19 16:50:55 +01:00
Jean-Philippe Quéméner
2319c52c85
Alerting: fix a bug where the metric in the evaluation string was not correctly populated ( #41731 )
...
Instead of using the frame name as the series name, we now use the name of the series value column if the frame name is not set. Queries to some datasources may end up with an empty frame name, which leads to an empty series name. As the series name is used in the frontend to display which metrics were queried etc. it shouldn't be empty.
2021-11-17 11:00:59 +01:00
Jean-Philippe Quéméner
d1aefa1792
Alerting: fix ngalert alertmanager SQL Syntax Errors ( #40827 )
...
* test kvstore in intregration tests with different databases
* escape 'key' in delete query
* export quote and use it in kvstore
2021-10-25 11:53:41 +02:00
Jean-Philippe Quéméner
74aa105b86
docs: fix typos in unified alerting ( #40696 )
2021-10-20 14:52:57 +02:00
Jean-Philippe Quéméner
153c356993
Alerting: delete orphaned records from kvstore ( #40337 )
2021-10-14 12:04:00 +02:00
Jean-Philippe Quéméner
1b7ca0413a
Alerting: add docs for the new webhook ( #40314 )
2021-10-14 11:07:31 +02:00
Jean-Philippe Quéméner
e1dfec49f9
Alerting: cleanup alert resources on org removal ( #39938 )
2021-10-12 12:05:02 +02:00
Jean-Philippe Quéméner
d9c0220824
Alerting: add organziation ID to the ngAlert webhook payload ( #40189 )
...
* Alerting: add organziation ID to the ngAlert webhook payload
2021-10-08 14:52:44 +02:00