Skip to content

Commit

Permalink
Merge pull request #284 from mayorova/remove-obsolete-system-graphs
Browse files Browse the repository at this point in the history
Update graphs on System dashboard
  • Loading branch information
3scale-robot authored Jan 9, 2024
2 parents eeabf68 + 737c83e commit e30da3a
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions pkg/assets/dashboards/system.json.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status=~'2[0-9]*'}[1m])) by (controller)",
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status='2xx'}[1m])) by (controller)",
"format": "time_series",
"interval": "1m",
"intervalFactor": 10,
Expand Down Expand Up @@ -374,7 +374,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status=~'4[0-9]*'}[1m])) by (controller)",
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status='4xx'}[1m])) by (controller)",
"format": "time_series",
"interval": "1m",
"intervalFactor": 10,
Expand Down Expand Up @@ -472,7 +472,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status=~'5[0-9]*'}[1m])) by (controller)",
"expr": "sum(rate(rails_requests_total{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+',status='5xx'}[1m])) by (controller)",
"format": "time_series",
"interval": "1m",
"intervalFactor": 10,
Expand Down Expand Up @@ -576,22 +576,6 @@
"intervalFactor": 10,
"legendFormat": "Total",
"refId": "A"
},
{
"expr": "sum(rate(rails_db_runtime_seconds_sum{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+'}[1m])) / sum(rate(rails_db_runtime_seconds_count{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+'}[1m]))",
"format": "time_series",
"interval": "1m",
"intervalFactor": 10,
"legendFormat": "ActiveRecord",
"refId": "B"
},
{
"expr": "sum(rate(rails_view_runtime_seconds_sum{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+'}[1m])) / sum(rate(rails_view_runtime_seconds_count{namespace='$namespace',pod=~'system-app-[a-z0-9]+-[a-z0-9]+'}[1m]))",
"format": "time_series",
"interval": "1m",
"intervalFactor": 10,
"legendFormat": "View",
"refId": "C"
}
],
"thresholds": [],
Expand Down

0 comments on commit e30da3a

Please sign in to comment.