Skip to content

Commit

Permalink
aggregating workflows running metric by container id
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Nov 7, 2024
1 parent 055ecca commit e57f541
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions observability-lib/dashboards/keystone-workflows/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,13 @@ func engine(p *Props) []*grafana.Panel {
panels = append(panels, grafana.NewTimeSeriesPanel(&grafana.TimeSeriesPanelOptions{
PanelOptions: &grafana.PanelOptions{
Datasource: p.MetricsDataSource.Name,
Title: "Workflows Running",
Title: "Workflows Running by Node",
Description: "",
Span: 8,
Height: 8,
Query: []grafana.Query{
{
Expr: `sum(platform_engine_workflow_count{` + p.QueryFilters + `}) by (workflowOwner, workflowName)`,
Legend: "{{ workflowOwner }} - {{ workflowName }}",
Expr: `sum(platform_engine_workflow_count) by (container_id)`,
},
},
},
Expand All @@ -119,7 +118,7 @@ func engine(p *Props) []*grafana.Panel {
NoDataState: alerting.RuleNoDataStateOK,
Query: []grafana.RuleQuery{
{
Expr: `platform_engine_workflow_count{` + p.AlertsFilters + `}`,
Expr: `sum(platform_engine_workflow_count{` + p.AlertsFilters + `}) by (container_id)`,
RefID: "A",
Datasource: p.MetricsDataSource.UID,
},
Expand Down

0 comments on commit e57f541

Please sign in to comment.