mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
Rename the various metric keys so they don't accidentally overlap
This commit is contained in:
@@ -27,7 +27,7 @@ var (
|
||||
)
|
||||
hostNodeMetrics = renderMetrics(
|
||||
MetricRow{ID: host.CPUUsage, Label: "CPU", Format: percentFormat},
|
||||
MetricRow{ID: host.MemUsage, Label: "Memory", Format: filesizeFormat},
|
||||
MetricRow{ID: host.MemoryUsage, Label: "Memory", Format: filesizeFormat},
|
||||
MetricRow{ID: host.Load1, Label: "Load (1m)", Format: defaultFormat, Group: "load"},
|
||||
MetricRow{ID: host.Load5, Label: "Load (5m)", Format: defaultFormat, Group: "load"},
|
||||
MetricRow{ID: host.Load15, Label: "Load (15m)", Format: defaultFormat, Group: "load"},
|
||||
|
||||
@@ -76,7 +76,7 @@ func TestNodeMetrics(t *testing.T) {
|
||||
Metric: &fixture.ClientHostCPUMetric,
|
||||
},
|
||||
{
|
||||
ID: host.MemUsage,
|
||||
ID: host.MemoryUsage,
|
||||
Label: "Memory",
|
||||
Format: "filesize",
|
||||
Group: "",
|
||||
|
||||
@@ -90,7 +90,7 @@ var (
|
||||
topologyID string
|
||||
NodeSummaryGroup
|
||||
}{
|
||||
{report.Host, NodeSummaryGroup{TopologyID: "hosts", Label: "Hosts", Columns: []string{host.CPUUsage, host.MemUsage}}},
|
||||
{report.Host, NodeSummaryGroup{TopologyID: "hosts", Label: "Hosts", Columns: []string{host.CPUUsage, host.MemoryUsage}}},
|
||||
{report.Pod, NodeSummaryGroup{TopologyID: "pods", Label: "Pods", Columns: []string{}}},
|
||||
{report.ContainerImage, NodeSummaryGroup{TopologyID: "containers-by-image", Label: "Container Images", Columns: []string{}}},
|
||||
{report.Container, NodeSummaryGroup{TopologyID: "containers", Label: "Containers", Columns: []string{docker.CPUTotalUsage, docker.MemoryUsage}}},
|
||||
|
||||
@@ -55,7 +55,7 @@ func TestMakeDetailedHostNode(t *testing.T) {
|
||||
Metric: &fixture.ClientHostCPUMetric,
|
||||
},
|
||||
{
|
||||
ID: host.MemUsage,
|
||||
ID: host.MemoryUsage,
|
||||
Format: "filesize",
|
||||
Label: "Memory",
|
||||
Value: 0.08,
|
||||
|
||||
Reference in New Issue
Block a user