mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2025-05-16 18:25:26 +00:00
Changed request-per-second metric separator to a comma (#28)
Signed-off-by: Arjun Naik <arjun.rn@gmail.com>
This commit is contained in:
@ -246,7 +246,7 @@ Skipper supports sending traffic to different backend based on annotations prese
|
|||||||
`Ingress` object. When the metric name is specified without a backend as `requests-per-second`
|
`Ingress` object. When the metric name is specified without a backend as `requests-per-second`
|
||||||
then the number of replicas will be calculated based on the full traffic served by that ingress.
|
then the number of replicas will be calculated based on the full traffic served by that ingress.
|
||||||
If however only the traffic being routed to a specific backend should be used then the
|
If however only the traffic being routed to a specific backend should be used then the
|
||||||
backend name can be specified as a metric name like `requests-per-second/backend1` which would
|
backend name can be specified as a metric name like `requests-per-second,backend1` which would
|
||||||
return the requests-per-second being sent to the `backend1`. The ingress annotation where
|
return the requests-per-second being sent to the `backend1`. The ingress annotation where
|
||||||
the backend weights can be obtained can be specified through the flag `--skipper-backends-annotation`.
|
the backend weights can be obtained can be specified through the flag `--skipper-backends-annotation`.
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
rpsQuery = `scalar(sum(rate(skipper_serve_host_duration_seconds_count{host="%s"}[1m])))`
|
rpsQuery = `scalar(sum(rate(skipper_serve_host_duration_seconds_count{host="%s"}[1m])))`
|
||||||
rpsMetricName = "requests-per-second"
|
rpsMetricName = "requests-per-second"
|
||||||
rpsMetricBackendSeparator = "/"
|
rpsMetricBackendSeparator = ","
|
||||||
)
|
)
|
||||||
|
|
||||||
// SkipperCollectorPlugin is a collector plugin for initializing metrics
|
// SkipperCollectorPlugin is a collector plugin for initializing metrics
|
||||||
|
Reference in New Issue
Block a user