Skip to content

Commit 074d984

Browse files
kylos101roboquat
authored andcommitted
Sum by type, phase (avoids nodepools dupes)
1 parent aaf9c3a commit 074d984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operations/observability/mixins/cross-teams/dashboards/gitpod-overview.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ local workspacePhasesGraph =
189189
min=0,
190190
repeat='cluster',
191191
)
192-
.addTarget(prometheus.target('gitpod_ws_manager_workspace_phase_total{%(clusterLabel)s=~"$cluster", phase!="RUNNING"}' % _config, legendFormat='{{type}} - {{phase}}'))
192+
.addTarget(prometheus.target('sum by (type, phase)(gitpod_ws_manager_workspace_phase_total{%(clusterLabel)s=~"$cluster", phase!="RUNNING"})' % _config, legendFormat='{{type}} - {{phase}}'))
193193
// Regular use different levels of green
194194
.addSeriesOverride({ alias: 'REGULAR - INITIALIZING', color: '#C8F2C2' })
195195
.addSeriesOverride({ alias: 'REGULAR - CREATING', color: '#96D98D' })

0 commit comments

Comments
 (0)