grafana/pkg/services/ngalert/state
gotjosh 59694fb2be
Alerting: Don't use a separate collection system for metrics (#75296)
* Alerting: Don't use a separate collection system for metrics

The state package had a metric collection system that ran every 15s updating the values of the metrics - there is a common pattern for this in the Prometheus ecosystem called "collectors".

I have removed the behaviour of using a time-based interval to "set" the metrics in favour of a set of functions as the "value" that get called at scrape time.
2023-09-25 10:27:30 +01:00
..
historian Alerting: Add dashboardUID and panelID query parameters for loki state history (#72119) 2023-07-24 23:46:46 -05:00
template Alerting: do not expand template for labels\annotations if value is not a template (#71492) 2023-07-12 14:53:40 -04:00
cache_bench_test.go Alerting: Improve performance of cache.getOrCreate (#63909) 2023-06-15 09:37:47 -04:00
cache_test.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
cache.go Alerting: Don't use a separate collection system for metrics (#75296) 2023-09-25 10:27:30 +01:00
compat_test.go Alerting: Use only token for images in notifications (#70196) 2023-06-21 20:53:45 -03:00
compat.go Alerting: Use only token for images in notifications (#70196) 2023-06-21 20:53:45 -03:00
image_mock.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
manager_bench_test.go Alerting: Pass loggers into SchedulerCfg and ManagerCfg. (#75158) 2023-09-20 15:07:02 +02:00
manager_private_test.go Alerting: Don't use a separate collection system for metrics (#75296) 2023-09-25 10:27:30 +01:00
manager_test.go Alerting: Don't use a separate collection system for metrics (#75296) 2023-09-25 10:27:30 +01:00
manager.go Alerting: Don't use a separate collection system for metrics (#75296) 2023-09-25 10:27:30 +01:00
persist.go Alerting: Remove and revert flag alertingBigTransactions (#65976) 2023-04-06 18:06:25 +02:00
state_test.go Alerting: Use URLs in image annotations (#66804) 2023-04-26 13:06:18 -03:00
state.go SSE: Use errutil to show better error messages in prod (#71658) 2023-07-21 06:38:29 -04:00
testing.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00