'How to set Prometheus Alertmanager externalURL and generatorURL via configuration
How to set externalURL
and generatorURL
?
Is it possible to set the URL via configuration file or environment variable?
Who can help me?
Solution 1:[1]
I think it depends on where you're setting them. Both prometheus and alertmanager have the externalURL field as an option, and can be set via command line arguments, e.g.
--web.external-url=https://my-domain.com/alertmanager/
So if you're spinning them up as containers/binaries, you'll want to add in that argument and pass the values in.
If you're using kubestack prometheus, you can set these values at the appropriate paths, i.e. alertmanager.alertmanagerConfig.externalURL
From what I can gather, the generatorURL is simply based on the externalURL though none of the documentation seems to say this explicitly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Matthew Kornfield |