Skip to content

Commit

Permalink
Update dashboard with TASK_OUTCOME_COUNT widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorguidi committed Dec 13, 2024
1 parent 562fe50 commit 237d6c5
Showing 1 changed file with 65 additions and 8 deletions.
73 changes: 65 additions & 8 deletions infra/terraform/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
display_name = "ClusterFuzz General Health"
dashboard_json = <<JSON
{
"displayName": "ClusterFuzz General Health",
"displayName": "vitor-experimentation-sli",
"mosaicLayout": {
"columns": 48,
"tiles": [
Expand Down Expand Up @@ -599,7 +599,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
}
},
{
"yPos": 108,
"yPos": 124,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -636,7 +636,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
},
{
"xPos": 16,
"yPos": 108,
"yPos": 124,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -673,7 +673,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
},
{
"xPos": 32,
"yPos": 108,
"yPos": 124,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -709,7 +709,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
}
},
{
"yPos": 124,
"yPos": 140,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -746,7 +746,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
},
{
"xPos": 16,
"yPos": 124,
"yPos": 140,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -783,7 +783,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
},
{
"xPos": 32,
"yPos": 124,
"yPos": 140,
"width": 16,
"height": 16,
"widget": {
Expand Down Expand Up @@ -1587,7 +1587,7 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
},
{
"xPos": 16,
"yPos": 140,
"yPos": 108,
"width": 16,
"height": 16,
"widget": {
Expand All @@ -1613,6 +1613,63 @@ resource "google_monitoring_dashboard" "clusterfuzz_sli_dashboard" {
}
}
}
},
{
"xPos": 32,
"yPos": 108,
"width": 16,
"height": 16,
"widget": {
"title": "uworker_main overall retry rate (by task) - CAN BE DRILLED BY JOB",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"plotType": "LINE",
"targetAxis": "Y1",
"timeSeriesQuery": {
"prometheusQuery": "100 * sum by (task)(rate(custom_googleapis_com:task_outcome{monitored_resource=\"gce_instance\",subtask=\"uworker_main\", outcome=\"maybe_retry\"}[${__interval}]))\n/ sum by (task)(rate(custom_googleapis_com:task_outcome{monitored_resource=\"gce_instance\",subtask=\"uworker_main\"}[${__interval}]))",
"unitOverride": "%"
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
},
{
"yPos": 108,
"width": 16,
"height": 16,
"widget": {
"title": "uworker_main overall success rate (by task) - CAN BE DRILLED BY JOB",
"xyChart": {
"chartOptions": {
"mode": "COLOR"
},
"dataSets": [
{
"plotType": "LINE",
"targetAxis": "Y1",
"timeSeriesQuery": {
"prometheusQuery": "100 * sum by (task)(rate(custom_googleapis_com:task_outcome{monitored_resource=\"gce_instance\",subtask=\"uworker_main\", outcome=\"success\"}[${__interval}]))\n/ sum by (task)(rate(custom_googleapis_com:task_outcome{monitored_resource=\"gce_instance\",subtask=\"uworker_main\"}[${__interval}]))",
"unitOverride": "%"
}
}
],
"thresholds": [],
"yAxis": {
"label": "",
"scale": "LINEAR"
}
}
}
}
]
},
Expand Down

0 comments on commit 237d6c5

Please sign in to comment.