Skip to content

Commit b396c23

Browse files
Furistoroboquat
authored andcommitted
Show difference between agent-smith and ws-manager
1 parent c694273 commit b396c23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

operations/observability/mixins/workspace/dashboards/components/agent-smith.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
"type": "prometheus",
616616
"uid": "${datasource}"
617617
},
618-
"description": "The number of workspaces detected by agent-smith",
618+
"description": "Difference between workspaces found by agent-smith and workspaces ws-manager knows about",
619619
"fieldConfig": {
620620
"defaults": {
621621
"color": {
@@ -690,13 +690,13 @@
690690
"uid": "P1809F7CD0C75ACF3"
691691
},
692692
"exemplar": true,
693-
"expr": "sum(gitpod_agent_smith_procfs_detector_workspace_count{cluster=~\"$cluster\"}) by (cluster)",
693+
"expr": "sum(gitpod_ws_manager_workspace_phase_total{cluster=~\"()\", phase=\"RUNNING\", type=\"REGULAR\"}) by (cluster) - on (cluster) sum(gitpod_agent_smith_procfs_detector_workspace_count{cluster=~\"()\"}) by (cluster)",
694694
"interval": "",
695-
"legendFormat": "{{cluster}}",
695+
"legendFormat": "Difference",
696696
"refId": "A"
697697
}
698698
],
699-
"title": "Detected Workspaces",
699+
"title": "Workspace Difference",
700700
"type": "timeseries"
701701
},
702702
{

0 commit comments

Comments
 (0)