I added below config in opsgenie_configs, but still same result as earlier. 
I tried this setup in alertmanager version v0.28.0 as well.


*    http_config:        proxy_from_environment: true*

Proxy variables do populate when accessing api.opsgenie.com but getting 
error in response. This behavior was present also when haven't used 
http_config.











*/alertmanager $ wget -S https://<apikey>@api.opsgenie.com/v2/alerts 
--no-check-certificateConnecting to 10.2.7.10:8080 (10.2.7.10:8080)wget: 
error getting response: Resource temporarily unavailable/alertmanager $ 
alertmanager --versionalertmanager, version 0.28.1 (branch: HEAD, revision: 
b2099eaa2c9ebc25edb26517cb9c732738e93910)  build user:       
root@fa3ca569dfe4  build date:       20250307-15:05:18  go version:       
go1.23.7  platform:         linux/amd64  tags:             
netgo/alertmanager $*



On Monday, July 14, 2025 at 7:11:44 PM UTC+5:30 Brian Candler wrote:

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` 
<http://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/c11a115e-7fa6-4dd1-afe8-c6f8e5fdcee8n%40googlegroups.com.

Reply via email to