Skip to content

Commit

Permalink
add metricName field in PredictKube
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Jain <38214848+vivekjainx86@users.noreply.github.com>
  • Loading branch information
vivekjainx86 authored Jun 17, 2022
1 parent e91ad74 commit 4e40b77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/docs/2.8/scalers/predictkube.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ triggers:
query: sum(rate(http_requests_total{deployment="my-deployment"}[2m]))
queryStep: "2m"
threshold: '100'
# Optional fields:
metricName: http_requests_total
```
**Parameter list:**
Expand All @@ -38,6 +40,7 @@ triggers:
- `query` - Predict the query that will yield the value for the scaler to compare against the `threshold`. The query must return a vector/scalar single element response.
- `queryStep` - The maximum time between two slices within the boundaries for QML range query, used in the query.
- `threshold` - Value to start scaling for.
- `metricName` - Name to identify the Metric in the external.metrics.k8s.io API. (Optional, Default: `predictkube_metric`)

### Authentication Parameters

Expand Down

0 comments on commit 4e40b77

Please sign in to comment.