Re: [prometheus-users] Using oauth2 as client auth to alertmanager

390 views
Skip to first unread message

Ian Billett

unread,
Aug 24, 2021, 5:25:49 AM8/24/21
to Nick M, Prometheus Users
Hey Nick,

How do you mean "nothing seems to take"?

If you have an alert that is firing to alertmanager and failing, I would wager there is some useful information in the Prometheus logs.

Best,

Ian

On Tue, Aug 17, 2021 at 7:53 AM Nick M <nichola...@gmail.com> wrote:
Hi,

We have an existing alertmanager instance set up running within an OKD (openshift) cluster. This instance is behind an oauth2 proxy. Is it possible to configure prometheus to forward alerts to an alertmanager instance behind the oauth2 proxy?

I've tried every conceivable combination of configuration to get this to work but nothing seems to take.

Current configuration:

alerting:
  alertmanagers:
    - static_configs:
      - targets:
        - okd_route_to_alertmanager
      scheme: https
      tls_config: ca_file: /path/to/custom/ca_file
      server_name: okd_route_to_alertmanager
      insecure_skip_verify: true
    oauth2:
      client_id: <id>
      client_secret: <secret>
      token_url: <oauth-proxy/oauth/token/request>

It's very possible I've misunderstood something as the documentation for this feels very light.

Has anyone got this working or have any pointers for what I've done wrong?

Thanks
Nick M

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/2f82a033-8b22-4f1d-b16e-b0d965e545afn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages