mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Merge pull request #421 from ashishranjan1457/issue-412-ashishranjan1457
Fix external rule tag in documentation
This commit is contained in:
commit
2dbb46f158
2 changed files with 3 additions and 3 deletions
|
|
@ -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`:
|
The configuration for `external` metrics rules is almost identical to the normal `rules`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
external:
|
externalRules:
|
||||||
- seriesQuery: '{__name__="queue_consumer_lag",name!=""}'
|
- seriesQuery: '{__name__="queue_consumer_lag",name!=""}'
|
||||||
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -38,7 +38,7 @@ This is done by setting `namespaced: false` in the `resources` section of the `e
|
||||||
```yaml
|
```yaml
|
||||||
# rules: ...
|
# rules: ...
|
||||||
|
|
||||||
external:
|
externalRules:
|
||||||
- seriesQuery: '{__name__="queue_depth",name!=""}'
|
- seriesQuery: '{__name__="queue_depth",name!=""}'
|
||||||
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
||||||
resources:
|
resources:
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ rules:
|
||||||
|
|
||||||
# external rules are not tied to a Kubernetes resource and can reference any metric
|
# 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
|
# 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!=""}'
|
- seriesQuery: '{__name__="queue_consumer_lag",name!=""}'
|
||||||
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
metricsQuery: sum(<<.Series>>{<<.LabelMatchers>>}) by (name)
|
||||||
- seriesQuery: '{__name__="queue_depth",topic!=""}'
|
- seriesQuery: '{__name__="queue_depth",topic!=""}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue