From eb44e9592254edf04e898c3efeb1ceedb0c87701 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 20 Jan 2017 18:07:54 -0800 Subject: [PATCH] render.detailed: Teach detailed node view how to display ECS topologies as children Previously, they were omitted. --- render/detailed/node.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/render/detailed/node.go b/render/detailed/node.go index 16b532e8f7..fc5147ff7e 100644 --- a/render/detailed/node.go +++ b/render/detailed/node.go @@ -6,6 +6,7 @@ import ( "github.com/ugorji/go/codec" + "github.com/weaveworks/scope/probe/awsecs" "github.com/weaveworks/scope/probe/docker" "github.com/weaveworks/scope/probe/host" "github.com/weaveworks/scope/probe/kubernetes" @@ -176,6 +177,27 @@ var ( }, }, }, + { + topologyID: report.ECSService, + NodeSummaryGroup: NodeSummaryGroup{ + TopologyID: "ecs-services", + Label: "Services", + Columns: []Column{ + {ID: awsecs.ServiceRunningCount, Label: "Running", Datatype: "number"}, + {ID: awsecs.ServiceDesiredCount, Label: "Desired", Datatype: "number"}, + }, + }, + }, + { + topologyID: report.ECSTask, + NodeSummaryGroup: NodeSummaryGroup{ + TopologyID: "ecs-tasks", + Label: "Tasks", + Columns: []Column{ + {ID: awsecs.CreatedAt, Label: "Created At", Datatype: "datetime"}, + }, + }, + }, { topologyID: report.Container, NodeSummaryGroup: NodeSummaryGroup{