George Robinson
924deda589
Fix Discord Webhook URL for invalid template ( #44763 )
...
This commit fixes an issue where an invalid template for Discord would change the Webhook URL to "" and cause "unsupported protocol scheme" errors.
2022-02-02 14:28:41 +01:00
George Robinson
8b2fe460e2
Remove EvaluationValue to avoid redundant copies of labels ( #44603 )
2022-02-01 09:58:18 +00:00
George Robinson
5e2280ceee
Add metrics to ngalert scheduler ( #44602 )
...
This pull request adds metrics to the ngalert scheduler so we can see how long it takes to evaluate a tick.
2022-01-31 16:56:43 +00:00
George Robinson
c932dc959c
Alerting: Add Ref ID to DatasourceNoData and DatasourceError alerts ( #42630 )
2021-12-03 09:55:16 +00:00
George Robinson
1b26d4d88e
Alerting: Create DatasourceError alert if evaluation returns error ( #41869 )
...
* Alerting: Create DatasourceError alert if evaluation returns error
* Alerting: Add docs for DatasourceError alert
* Alerting: Fix DatasourceError alert does not have dashboard_uid label
* Alerting: Add break when datasource_uid found
* Alerting: Update TestProcessEvalResults
2021-11-25 11:46:47 +01:00
George Robinson
1e5b0e64ac
Alerting: Add comments to ScheduleService interface ( #42228 )
2021-11-25 10:12:04 +00:00
George Robinson
2863af3bc3
Alerting: Add docs for DatasourceNoData alert ( #42265 )
2021-11-25 09:41:55 +00:00
George Robinson
9122e7f647
Alerting: Check for nil model.Settings and models.SecureSettings ( #37738 )
2021-11-22 11:56:18 +00:00
George Robinson
ac59b7615d
Alerting: README.md for ngalert
2021-11-18 10:26:42 +00:00
George Robinson
708bdc80cb
Alerting: Support Unwrap for QueryError in expr package ( #41743 )
2021-11-17 10:07:24 +00:00
George Robinson
5f5298ad25
Alerting: Use require.ElementsMatch in TestEvaluateExecutionResultsNoData
2021-11-16 18:58:48 +01:00
George Robinson
4d288cc6c7
Alerting: Fix NoData tests ( #41759 )
2021-11-16 16:41:32 +00:00
George Robinson
543b1a7e39
Alerting: Add QueryError to expr package ( #41737 )
2021-11-16 13:42:22 +00:00
George Robinson
d363e19517
Alerting: Add datasource_uid label to DatasourceNoData alerts ( #41621 )
2021-11-16 10:03:18 +00:00
George Robinson
d6ed5d295e
Alerting: Fix NoDataFound for alert rules using the AND operator ( #41305 )
...
This commit fixes an issue in alerting where NoDataFound is false
when using the AND operator to compare two conditions in an alert
rule and one of the conditions has no data.
2021-11-10 10:28:49 +00:00
George Robinson
967721068e
Alerting: Support custom annotations and labels when testing contact points
...
Support custom annotations and labels when testing contact points
2021-10-21 13:47:06 +01:00
George Robinson
8318e45452
Alerting: Fix error message in ngalert when notifications cannot be sent to alertmanager ( #40158 )
2021-10-11 14:50:50 +01:00
George Robinson
935bd34a30
Panel ID annotation cannot be set without Dashboard UID ( #40019 )
2021-10-06 11:34:11 +01:00
George Robinson
2a4c1b1aa6
You can now get alert rules for a dashboard or a panel using /api/v1/rules endpoints. ( #39476 )
...
Get alert rules for a dashboard and panel in /api/v1/rules
2021-10-04 16:33:55 +01:00
George Robinson
27609dc2c5
Fix alerts with evaluation interval more than 30 seconds resolving in Alertmanager ( #39513 )
2021-09-22 14:55:46 +01:00
George Robinson
5caf6cb369
Change templateCaptureValue to support using template functions ( #38766 )
...
* Change templateCaptureValue to support using template functions
This commit changes templateCaptureValue to use float64 for the value
instead of *float64. This change means that annotations and labels can
use the float64 value with functions such as printf and avoid having to
check for nil. It also means that absent values are now printed as 0.
* Use math.NaN() instead of 0 for absent value
2021-09-08 10:46:15 +01:00