You can configure a proxy directly in the configuration file, or you can 
set "proxy_from_environment: true". See:
https://prometheus.io/docs/alerting/latest/configuration/#http_config
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 <[email protected]>
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 <[email protected]>

On Monday, 14 July 2025 at 12:53:22 UTC+1 Dheerendra Solanki wrote:

> Hi, 
>
> I am trying to access `api.opsgenie.com` by using http_proxy, https_proxy 
> via ENV variables in alertmanager pod but its not working with opsgenie.
>
> Could you please suggest a way to fix it as I don't have internet access 
> in my kubernetes cluster?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/0d9f5ffe-ca06-4aa0-98ec-2405dacebcdan%40googlegroups.com.

Reply via email to