Skip to content

Commit

Permalink
update Prometheus docs (kedacore#528)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
  • Loading branch information
zroubalik authored Sep 20, 2021
1 parent 25ad105 commit 06f1744
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/docs/2.5/scalers/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ This specification describes the `prometheus` trigger that scales based on a Pro
triggers:
- type: prometheus
metadata:
# Required
# Required fields:
serverAddress: http://<prometheus-host>:9090
metricName: http_requests_total
metricName: http_requests_total # Note: name to identify the metric, generated value would be `prometheus-http_requests_total`
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m])) # Note: query must return a vector/scalar single element response
threshold: '100'
```
**Parameter list:**
- `serverAddress` - Address of Prometheus
- `metricName` - Metric name to use
- `serverAddress` - Address of Prometheus server
- `metricName` - Name to identify the Metric in the external.metrics.k8s.io API. If using more than one trigger it is required that all `metricName`(s) be unique.
- `query` - Query to run
- `threshold` - Value to start scaling for

Expand Down

0 comments on commit 06f1744

Please sign in to comment.