3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services/ngalert/metrics
gotjosh 59694fb2be
Alerting: Don't use a separate collection system for metrics ()
* 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
..
alertmanager.go Alerting: Add matchers metrics to Alertmanager () 2023-06-15 09:18:01 +01:00
api.go Alerting: Refactor metrics/ngalert.go into seperate files () 2023-01-27 18:49:49 +00:00
historian.go Alerting: Add "backend" label to state history writes metrics () 2023-03-28 08:49:51 -05:00
multi_org_alertmanager.go Alerting: Add matchers metrics to Alertmanager () 2023-06-15 09:18:01 +01:00
ngalert.go Alerting: Instrument outgoing state history requests using weaveworks/common () 2023-02-23 17:52:02 -06:00
scheduler.go Alerting: Add new metrics and tracings to state manager and scheduler () 2023-08-16 09:04:18 +02:00
state.go Alerting: Don't use a separate collection system for metrics () 2023-09-25 10:27:30 +01:00
util.go Chore: Fix goimports grouping in alerting () 2023-01-30 09:55:35 +01:00