alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

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

Open ManjhiRaushan opened this issue 2 years ago • 2 comments

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

  • System information: windows 10

  • Alertmanager version: v0.25.0

  • Prometheus version: prometheus:v2.27.1

  • Alertmanager configuration file: image

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="

ManjhiRaushan avatar May 10 '23 11:05 ManjhiRaushan

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.

dswarbrick avatar May 15 '23 01:05 dswarbrick

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

TheMeier avatar Mar 10 '24 13:03 TheMeier