Wrong URL to the prometheus (Alert source links)

This issue has been tracked since 2021-12-02.

I noticed that in the data/time section I have option to go right away to the Prometheus instance but instead of the proper Prometheus URL I see some random string.

Screenshot 2021-12-02 at 17 12 32

Is it a but in Karma or I did something wrong? I cannot find any reference about it.


wolfedale wrote this answer on 2021-12-02

I think it's this part:

       <h6 className="dropdown-header">Alert source links:</h6>
        {alert.alertmanager.map((am) => (

So looks like am.source is wrong. This data is coming from the alert-manager?

prymitive wrote this answer on 2021-12-02

It comes from alertmanager.
Sounds like you need to configure --web.external-url

See https://www.robustperception.io/using-external-urls-and-proxies-with-prometheus

wolfedale wrote this answer on 2021-12-03

Thanks for the answer. I think that's not the issue. I see that I have --web.external-url specified in every single alert-manager deployment. I also noticed that for some alerts I see it correct and for most I see some random string. I have no idea what's the difference between them. I'm trying to figure it out.

wolfedale wrote this answer on 2021-12-03

I found the problem. Some of my alerts were from the other Prometheus instance (but by mistake they had wrong cluster-name and ID in the alert spec). This is why I was thinking alerts are coming from the proper Prometheus server. The other one had no --web.external-url like @prymitive said. Thanks! I'm closing it.

More Details About Repo
Owner Name prymitive
Repo Name karma
Full Name prymitive/karma
Language TypeScript
Created Date 2018-09-09
Updated Date 2023-03-17
Star Count 1921
Watcher Count 33
Fork Count 166
Issue Count 2


Issue Title Created Date Updated Date