Merge pull request #421 from ashishranjan1457/issue-412-ashishranjan1457

Fix external rule tag in documentation
This commit is contained in:
Kubernetes Prow Robot 2021-07-02 08:06:13 -07:00 committed by GitHub
commit 2dbb46f158
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ It's possible to configure [Autoscaling on metrics not related to Kubernetes obj
The configuration for `external` metrics rules is almost identical to the normal `rules`:
```yaml
external:
externalRules:
- seriesQuery: '{__name__="queue_consumer_lag",name!=""}'
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
resources:
@ -38,7 +38,7 @@ This is done by setting `namespaced: false` in the `resources` section of the `e
```yaml
# rules: ...
external:
externalRules:
- seriesQuery: '{__name__="queue_depth",name!=""}'
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
resources:

View file

@ -67,7 +67,7 @@ rules:
# external rules are not tied to a Kubernetes resource and can reference any metric
# https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects
external:
externalRules:
- seriesQuery: '{__name__="queue_consumer_lag",name!=""}'
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
- seriesQuery: '{__name__="queue_depth",topic!=""}'