grafana/pkg/services/ngalert/notifier
Santiago 9e78faa7ba
Alerting: Add metrics to the remote Alertmanager struct (#79835)
* Alerting: Add metrics to the remote Alertmanager struct

* rephrase http_requests_failed description

* make linter happy

* remove unnecessary metrics

* extract timed client to separate package

* use histogram collector from dskit

* remove weaveworks dependency

* capture metrics for all requests to the remote Alertmanager (both clients)

* use the timed client in the MimirAuthRoundTripper

* HTTPRequestsDuration -> HTTPRequestDuration, clean up mimir client factory function

* refactor

* less git diff

* gauge for last readiness check in seconds

* initialize LastReadinesCheck to 0, tweak metric names and descriptions

* add counters for sync attempts/errors

* last config sync and last state sync timestamps (gauges)

* change latency metric name

* metric for remote Alertmanager mode

* code review comments

* move label constants to metrics package
2024-01-10 11:18:24 +01:00
..
alertmanager_mock Alerting: Add methods for silences to the forked Alertmanager (#77805) 2023-11-08 12:03:40 +01:00
channels_config Alerting: Add support for responders to Opsgenie integration (#77159) 2023-10-27 13:06:46 -04:00
alertmanager_config.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
alertmanager_test.go Alerting: Use the forked Alertmanager for remote secondary mode (#79646) 2023-12-21 15:26:31 +01:00
alertmanager.go Alerting: Use the forked Alertmanager for remote secondary mode (#79646) 2023-12-21 15:26:31 +01:00
alerts.go Alerting: Fetch alerts from a remote Alertmanager (#75844) 2023-10-19 11:27:37 +02:00
compat_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
compat.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
config_test.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
config.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
crypto.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
email_test.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
file_store_test.go Alerting: Add GetFullState method to FileStore (#78701) 2023-11-28 15:34:45 +01:00
file_store.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
images_test.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
images.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
log.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
multiorg_alertmanager_remote_test.go Alerting: Add metrics to the remote Alertmanager struct (#79835) 2024-01-10 11:18:24 +01:00
multiorg_alertmanager_test.go Alerting: Send state to the remote Alertmanager (#78538) 2023-11-29 12:49:39 +01:00
multiorg_alertmanager.go Alerting: Use the forked Alertmanager for remote secondary mode (#79646) 2023-12-21 15:26:31 +01:00
receivers_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
receivers.go Alerting: Fetch receivers from remote Alertmanager (#76841) 2023-10-20 11:34:17 +02:00
redis_channel_test.go Alerting: Add support for running HA using Redis (#65267) 2023-04-19 17:05:26 +02:00
redis_channel.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
redis_peer.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
sender.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
silences.go Alerting: Manage remote Alertmanager silences (#75452) 2023-10-02 07:36:11 -03:00
status.go Alerting: Use interfaces for the Alertmanager (#73900) 2023-09-06 07:59:29 -03:00
templates_test.go Alerting: Template Testing API (#67450) 2023-04-28 15:56:59 +01:00
templates.go Alerting: Use interfaces for the Alertmanager (#73900) 2023-09-06 07:59:29 -03:00
testing.go Alerting: Test MOA in remote secondary mode (#79828) 2024-01-05 11:05:27 +01:00