You can configure a proxy directly in the configuration file, or you can set "proxy_from_environment: true". See:
The http_config: block goes inside the opsgenie_configs: block(s)
However, alertmanager v0.24.0 is more than three years old (March 2022). The current version is v0.28.1.
I don't know if these features existed in v0.24.0, but they weren't documented until a year later, in March 2023:
commit 5004dff1f84caf80f342992e815ffddea85c2667
Author: Simon Pasquier <
spas...@redhat.com>
Date: Tue Mar 28 11:35:02 2023 +0200
docs: document the new proxy-related settings
The version of `
github.com/prometheus/common` imported by Alertmanager
adds several fields to the `http_config` and `oauth2` structs for
setting proxy parameters:
* `no_proxy`
* `proxy_from_environment`
* `proxy_connect_header`
Signed-off-by: Simon Pasquier <
spas...@redhat.com>