Skip to content

Commit

Permalink
add tonumber to error-rate (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kalantar <[email protected]>
  • Loading branch information
kalantar authored Feb 24, 2023
1 parent c135cb7 commit ddd8164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/custommetrics/istio-prom.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ metrics:
}[{{ .elapsedTimeSeconds }}s])) or on() vector(0))/(sum(last_over_time(istio_requests_total{
{{- template "labels" . }}
}[{{ .elapsedTimeSeconds }}s])) or on() vector(0))
jqExpression: .data.result.[0].value.[1]
jqExpression: .data.result.[0].value.[1] | tonumber
- name: latency-mean
type: gauge
description: |
Expand All @@ -111,4 +111,4 @@ metrics:
{{- template "labels" $ }}
}[{{ $.elapsedTimeSeconds }}s])) by (le))
jqExpression: .data.result[0].value[1] | tonumber
{{- end }}
{{- end }}

0 comments on commit ddd8164

Please sign in to comment.