prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.59k stars 2.14k forks source link

Prometheus alertmanager(v0.22.0/v0.25.0) not exposing alertmanager_cluster_members metrics #3358

Open ManjhiRaushan opened 1 year ago

ManjhiRaushan commented 1 year ago

What did you do? image

The data are showing N/A over here because I didn't get alertmanager_cluster_members metrics exposing by prometehus alertmanager and these are the query image

What did you expect to see? I wanted to see this metrics alertmanager_cluster_members

What did you see instead? Under which circumstances? image

and this is the way I followed to find metrics

so i'm getting metrics alertmanager_alerts{state="unprocessed"} but did not get those metrics which I wanted Environment

As well as we are using alertmanager without HA with launching it like this exec "/bin/alertmanager" \ "--config.file=/etc/alertmanager/alertmanager.yml" \
"--cluster.listen-address="

dswarbrick commented 1 year ago

The alertmanager_cluster_members metric is missing because you are not telling Alertmanager to listen for cluster members at all.

If you want to see the alertmanager_cluster_members metric, you'll need to specify a non-empty --cluster.listen-address (or let it use the default).

This kind of question is better asked on the prometheus-users mailing list.

TheMeier commented 6 months ago

@ManjhiRaushan please close this issue if the provided answer is sufficient