Skip to content

Commit

Permalink
Issue Fix ReactiveX#470. Update Prometheus query to evaluate as regex…
Browse files Browse the repository at this point in the history
… instead of string for aggregating data of multiple instances,CircuitBreaker's | Retry's | BulkHead's or application's. (ReactiveX#471)
  • Loading branch information
knvs97 authored and RobWin committed May 25, 2019
1 parent 92ac4af commit 8919c57
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions grafana_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
"steppedLine": false,
"targets": [
{
"expr": "resilience4j_circuitbreaker_state{instance=\"$instance\"}",
"expr": "resilience4j_circuitbreaker_state{instance=~\"$instance\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ name }}: {{ state }}",
Expand Down Expand Up @@ -478,7 +478,7 @@
"tableColumn": "",
"targets": [
{
"expr": "resilience4j_circuitbreaker_failure_rate{instance=\"$instance\",name=\"$circuitbreaker_name\"}",
"expr": "resilience4j_circuitbreaker_failure_rate{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}",
"format": "time_series",
"hide": false,
"interval": "",
Expand Down Expand Up @@ -559,15 +559,15 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(resilience4j_circuitbreaker_calls_seconds_count{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m])",
"expr": "rate(resilience4j_circuitbreaker_calls_seconds_count{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "{{ kind }} ",
"refId": "A"
},
{
"expr": "rate(resilience4j_circuitbreaker_calls_total{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m])",
"expr": "rate(resilience4j_circuitbreaker_calls_total{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m])",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ kind }} ",
Expand Down Expand Up @@ -668,14 +668,14 @@
"steppedLine": false,
"targets": [
{
"expr": "resilience4j_circuitbreaker_buffered_calls{instance=\"$instance\",name=\"$circuitbreaker_name\"}",
"expr": "resilience4j_circuitbreaker_buffered_calls{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ kind }}",
"refId": "A"
},
{
"expr": "resilience4j_circuitbreaker_max_buffered_calls{instance=\"$instance\",name=\"$circuitbreaker_name\"}",
"expr": "resilience4j_circuitbreaker_max_buffered_calls{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "maximum",
Expand Down Expand Up @@ -771,29 +771,29 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.9, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=\"$application\", instance=\"$instance\", name=\"$circuitbreaker_name\"}[1m])) by (le))",
"expr": "histogram_quantile(0.9, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=~\"$application\", instance=~\"$instance\", name=~\"$circuitbreaker_name\"}[1m])) by (le))",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "90th Percentile",
"refId": "A"
},
{
"expr": "histogram_quantile(0.95, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=\"$application\", instance=\"$instance\", name=\"$circuitbreaker_name\"}[1m])) by (le))",
"expr": "histogram_quantile(0.95, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=~\"$application\", instance=~\"$instance\", name=~\"$circuitbreaker_name\"}[1m])) by (le))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "95th Percentile",
"refId": "B"
},
{
"expr": "histogram_quantile(0.98, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=\"$application\", instance=\"$instance\", name=\"$circuitbreaker_name\"}[1m])) by (le))",
"expr": "histogram_quantile(0.98, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=~\"$application\", instance=~\"$instance\", name=~\"$circuitbreaker_name\"}[1m])) by (le))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "98th Percentile",
"refId": "C"
},
{
"expr": "histogram_quantile(0.50, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=\"$application\", instance=\"$instance\", name=\"$circuitbreaker_name\"}[1m])) by (le))",
"expr": "histogram_quantile(0.50, sum(rate(resilience4j_circuitbreaker_calls_seconds_bucket{application=~\"$application\", instance=~\"$instance\", name=~\"$circuitbreaker_name\"}[1m])) by (le))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Median",
Expand Down Expand Up @@ -892,14 +892,14 @@
"steppedLine": false,
"targets": [
{
"expr": "increase(resilience4j_circuitbreaker_calls_seconds_sum{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m]) / increase(resilience4j_circuitbreaker_calls_seconds_count{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m])",
"expr": "increase(resilience4j_circuitbreaker_calls_seconds_sum{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m]) / increase(resilience4j_circuitbreaker_calls_seconds_count{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m])",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ kind }}",
"refId": "A"
},
{
"expr": "sum(increase(resilience4j_circuitbreaker_calls_seconds_sum{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m])) / sum(increase(resilience4j_circuitbreaker_calls_seconds_count{instance=\"$instance\",name=\"$circuitbreaker_name\"}[1m]))",
"expr": "sum(increase(resilience4j_circuitbreaker_calls_seconds_sum{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m])) / sum(increase(resilience4j_circuitbreaker_calls_seconds_count{instance=~\"$instance\",name=~\"$circuitbreaker_name\"}[1m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "total ",
Expand Down Expand Up @@ -1019,7 +1019,7 @@
"steppedLine": false,
"targets": [
{
"expr": "rate(resilience4j_retry_calls{application=\"$application\",name=\"$retry_name\",}[1m])",
"expr": "rate(resilience4j_retry_calls{application=~\"$application\",name=~\"$retry_name\",}[1m])",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ kind }}",
Expand Down Expand Up @@ -1134,14 +1134,14 @@
"steppedLine": false,
"targets": [
{
"expr": "resilience4j_bulkhead_available_concurrent_calls{application=\"$application\",name=\"$bulkhead_name\"}",
"expr": "resilience4j_bulkhead_available_concurrent_calls{application=~\"$application\",name=~\"$bulkhead_name\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Available Calls",
"refId": "A"
},
{
"expr": "resilience4j_bulkhead_max_allowed_concurrent_calls{application=\"$application\",name=\"$bulkhead_name\"}",
"expr": "resilience4j_bulkhead_max_allowed_concurrent_calls{application=~\"$application\",name=~\"$bulkhead_name\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Max allowed Calls",
Expand Down

0 comments on commit 8919c57

Please sign in to comment.