prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.68k stars 2.16k forks source link

alertmanager.config.global.http_config.no_proxy is invalid #3708

Open lkeijser opened 9 months ago

lkeijser commented 9 months ago

What did you do? Added this piece of config to values.yaml:

alertmanager:
    config:
      global:
        http_config:
          proxy_url: 'http://webproxy.my.corp:8080'
          no_proxy: 'prometheus-msteams:2000'
        resolve_timeout: 6m

What did you expect to see? The configuration should be applied to alertmanager.yml inside the pod

What did you see instead? Under which circumstances? The configuration does not get applied. The operator logs this error message instead: level=error ts=2024-02-05T08:50:16.702986872Z caller=klog.go:126 component=k8s_client_runtime func=ErrorDepth msg="sync \"monitoring/prometheus-stack-rotterdam-alertmanager\" failed: provision alertmanager configuration: failed to initialize from secret: yaml: unmarshal errors:\n line 3: field no_proxy not found in type alertmanager.httpClientConfig"

Environment Using kube-prometheus-stack 56.3.0 on kubernetes 1.26.5

pchang388 commented 8 months ago

I am also seeing this same issue, having other problems (#4358) it seems with setting up a simple http proxy config for alertmanager

spec:

    receivers:
    - name: 'null'
    - name: ms-teams
      msteams_configs:
        - webhook_url: REDACT
          title: '[Kopje Dev] {{ template "msteams.default.title" . }}'
          http_config:
            proxy_url: REDACT
            no_proxy: ".internal,.svc.cluster.local,10.100.200.1"
            tls_config:
              insecure_skip_verify: true