Changed request-per-second metric separator to a comma (#28)

Signed-off-by: Arjun Naik <arjun.rn@gmail.com>
This commit is contained in:
Arjun
2019-01-17 13:46:57 +01:00
committed by GitHub
parent 72aa672f51
commit 75633d3082
2 changed files with 2 additions and 2 deletions

View File

@ -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`.

View File

@ -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