cortexproject / cortex

A horizontally scalable, highly available, multi-tenant, long term Prometheus.
https://cortexmetrics.io/
Apache License 2.0
5.45k stars 793 forks source link

AlertManager collect metrics on traffic it receives #5606

Open emanlodovice opened 11 months ago

emanlodovice commented 11 months ago

Is your feature request related to a problem? Please describe. Because majority of the traffic the AlertManager receives can be coming from ruler, the request will not be seen in the logs/metrics in the cluster's ingress.

Describe the solution you'd like To improve observability, I think it would be nice for AM to collect metrics for the traffic it is receiving specially on the create alerts path.

emanlodovice commented 11 months ago

ops we actually have this metric under cortex_request_duration. closing

qinxx108 commented 11 months ago

We only have route like "/alertmanagerpb.Alertmanager/HandleRequest", we can't distinguish if the handle request is alerts/silences apis