Skip to content

Commit

Permalink
Update Grafana dashboards to use variable duration parameter (#9509)
Browse files Browse the repository at this point in the history
* Update Grafana dashboards to use variable duration parameter

Signed-off-by: Tarek Abdel Sater <tarek.abdelsater@sarwa.co>
  • Loading branch information
TarekAS authored Oct 5, 2022
1 parent a5797f7 commit 693231b
Show file tree
Hide file tree
Showing 15 changed files with 297 additions and 297 deletions.
34 changes: 17 additions & 17 deletions grafana/dashboards/authority.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s]))",
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval]))",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -238,7 +238,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s]))",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval]))",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -323,7 +323,7 @@
"tableColumn": "",
"targets": [
{
"expr": "histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (le, authority))",
"expr": "histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (le, authority))",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
Expand Down Expand Up @@ -399,7 +399,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (authority) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (authority)",
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (authority) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (authority)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "au/{{authority}}",
Expand Down Expand Up @@ -486,14 +486,14 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\", tls=\"true\"}[30s])) by (authority)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\", tls=\"true\"}[$__rate_interval])) by (authority)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "🔒au/{{authority}}",
"refId": "A"
},
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\", tls!=\"true\"}[30s])) by (authority)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\", tls!=\"true\"}[$__rate_interval])) by (authority)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "au/{{authority}}",
Expand Down Expand Up @@ -580,22 +580,22 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (le, authority))",
"expr": "histogram_quantile(0.5, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (le, authority))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "p50 au/{{authority}}",
"refId": "A"
},
{
"expr": "histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (le, authority))",
"expr": "histogram_quantile(0.95, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (le, authority))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "p95 au/{{authority}}",
"refId": "B"
},
{
"expr": "histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[30s])) by (le, authority))",
"expr": "histogram_quantile(0.99, sum(irate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"inbound\"}[$__rate_interval])) by (le, authority))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "p99 au/{{authority}}",
Expand Down Expand Up @@ -698,7 +698,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (deployment) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (deployment)",
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (deployment) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (deployment)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "deploy/{{deployment}}",
Expand Down Expand Up @@ -785,14 +785,14 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls=\"true\"}[30s])) by (deployment)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls=\"true\"}[$__rate_interval])) by (deployment)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "🔒deploy/{{deployment}}",
"refId": "A"
},
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls!=\"true\"}[30s])) by (deployment)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls!=\"true\"}[$__rate_interval])) by (deployment)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "deploy/{{deployment}}",
Expand Down Expand Up @@ -878,7 +878,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.95, sum(rate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (le, deployment))",
"expr": "histogram_quantile(0.95, sum(rate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (le, deployment))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "P95 deploy/{{deployment}}",
Expand Down Expand Up @@ -980,7 +980,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (pod) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (pod)",
"expr": "sum(irate(response_total{classification=\"success\", namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (pod) / sum(irate(response_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (pod)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "po/{{pod}}",
Expand Down Expand Up @@ -1067,14 +1067,14 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls=\"true\"}[30s])) by (pod)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls=\"true\"}[$__rate_interval])) by (pod)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "🔒po/{{pod}}",
"refId": "A"
},
{
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls!=\"true\"}[30s])) by (pod)",
"expr": "sum(irate(request_total{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\", tls!=\"true\"}[$__rate_interval])) by (pod)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "po/{{pod}}",
Expand Down Expand Up @@ -1160,7 +1160,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.95, sum(rate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[30s])) by (le, pod))",
"expr": "histogram_quantile(0.95, sum(rate(response_latency_ms_bucket{namespace=\"$namespace\", authority=\"$authority\", direction=\"outbound\"}[$__rate_interval])) by (le, pod))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "P95 po/{{pod}}",
Expand Down
Loading

0 comments on commit 693231b

Please sign in to comment.