@@ -924,10 +924,9 @@ To configure a Provider for Prometheus Alertmanager, authentication can be done
924924Both methods are supported, but using authentication is optional based on your setup.
925925
926926Basic Authentication :
927- Create a Secret with [the `address`](#address-example) set to the Prometheus Alertmanager [HTTP API
928- URL](https://prometheus.io/docs/alerting/latest/https/#http-traffic)
929- including Basic Auth credentials, and an `alertmanager` Provider with a [Secret
930- reference](#secret-reference).
927+ Create a Secret with [the `username` and `password`](#secret-reference) set to the Basic Auth
928+ credentials, and the [`.spec.address`](#address) field set to the Prometheus Alertmanager
929+ [HTTP API URL](https://prometheus.io/docs/alerting/latest/https/#http-traffic).
931930
932931` ` ` yaml
933932---
@@ -938,17 +937,20 @@ metadata:
938937 namespace: default
939938spec:
940939 type: alertmanager
940+ address: https://<alertmanager-hostport>/api/v2/alerts/
941941 secretRef:
942- name: alertmanager-address
942+ name: alertmanager-basic-auth
943943---
944944apiVersion: v1
945945kind: Secret
946946metadata:
947- name: alertmanager-address
947+ name: alertmanager-basic-auth
948948 namespace: default
949949stringData:
950- address: https://<username>:<password>@<alertmanager-hostport>/api/v2/alerts/
950+ username: <username>
951+ password: <password>
951952` ` `
953+
952954Bearer Token Authentication :
953955Create a Secret with [the `token`](#token-example), and an `alertmanager` Provider with a [Secret
954956reference](#secret-reference) and the Prometheus Alertmanager [HTTP API
@@ -973,7 +975,7 @@ metadata:
973975 name: alertmanager-token
974976 namespace: default
975977stringData:
976- token: <token>
978+ token: <token>
977979` ` `
978980
979981# #### Webex
@@ -1100,6 +1102,7 @@ The Kubernetes secret can have any of the following keys:
11001102- ` proxy` - overrides `.spec.proxy` (deprecated, use `.spec.proxySecretRef` instead. **Support for this key will be removed in v1**)
11011103- ` token` - used for authentication
11021104- ` username` - overrides `.spec.username`
1105+ - ` password` - used for authentication, often in combination with `username` (or `.spec.username`)
11031106- ` headers` - HTTP headers values included in the POST request
11041107
11051108# ### Address example
0 commit comments