mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2026-05-29 23:35:19 +00:00
Introduced min-pod-age configuration key. Added Pod condition handling
Signed-off-by: Anatolii Dutchak <adutchak-x@tunein.com>
This commit is contained in:
@@ -111,6 +111,7 @@ metadata:
|
||||
metric-config.pods.requests-per-second.json-path/scheme: "https"
|
||||
metric-config.pods.requests-per-second.json-path/aggregator: "max"
|
||||
metric-config.pods.requests-per-second.json-path/interval: "60s" # optional
|
||||
metric-config.pods.requests-per-second.json-path/min-pod-age: "30s" # optional
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
@@ -175,6 +176,11 @@ metric-config.pods.requests-per-second.json-path/connect-timeout: 500ms
|
||||
|
||||
The default for both of the above values is 15 seconds.
|
||||
|
||||
The `min-pod-age` configuration option instructs the service to start collecting metrics from the pods only if they are "older" than the specified amount of time.
|
||||
This is handy when pods need to warm up before HPAs will start tracking their metrics.
|
||||
|
||||
The default value is 0 seconds.
|
||||
|
||||
## Prometheus collector
|
||||
|
||||
The Prometheus collector is a generic collector which can map Prometheus
|
||||
|
||||
Reference in New Issue
Block a user