Skip to content

Commit

Permalink
fix(Scaler): Corrected Prometheus Docs (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
neelanjan00 authored Sep 28, 2022
1 parent f1dd294 commit 78990a8
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
10 changes: 5 additions & 5 deletions content/docs/2.3/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Basic Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -213,7 +213,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -274,7 +274,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand All @@ -283,4 +283,4 @@ spec:
authModes: "tls,basic"
authenticationRef:
name: keda-prom-creds
```
```
10 changes: 5 additions & 5 deletions content/docs/2.4/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Basic Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -213,7 +213,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -274,7 +274,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand All @@ -283,4 +283,4 @@ spec:
authModes: "tls,basic"
authenticationRef:
name: keda-prom-creds
```
```
10 changes: 5 additions & 5 deletions content/docs/2.5/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Basic Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -213,7 +213,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -274,7 +274,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand All @@ -283,4 +283,4 @@ spec:
authModes: "tls,basic"
authenticationRef:
name: keda-prom-creds
```
```
10 changes: 5 additions & 5 deletions content/docs/2.6/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Basic Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -162,7 +162,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -216,7 +216,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -277,7 +277,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand All @@ -286,4 +286,4 @@ spec:
authModes: "tls,basic"
authenticationRef:
name: keda-prom-creds
```
```
10 changes: 5 additions & 5 deletions content/docs/2.7/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Basic Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -164,7 +164,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -218,7 +218,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -279,7 +279,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand All @@ -288,4 +288,4 @@ spec:
authModes: "tls,basic"
authenticationRef:
name: keda-prom-creds
```
```
8 changes: 4 additions & 4 deletions content/docs/2.8/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Bearer Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -168,7 +168,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -222,7 +222,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -283,7 +283,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.9/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
```

Here is an example of a prometheus scaler with bearer authentication,
Here is an example of a prometheus scaler with Bearer Authentication, define the `Secret` and `TriggerAuthentication` as follows

```yaml
apiVersion: v1
Expand Down Expand Up @@ -170,7 +170,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -224,7 +224,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down Expand Up @@ -285,7 +285,7 @@ spec:
scaleTargetRef:
name: dummy
triggers:
- type: metrics-api
- type: prometheus
metadata:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
Expand Down

0 comments on commit 78990a8

Please sign in to comment.