diff --git a/README.md b/README.md index 1330166..fa23b0e 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@

## What is Murre? -Murre is an **on-demand, scaleable source of container resource metrics for K8s**. +Murre is an **on-demand, scalable source of container resource metrics for K8s**. -Murre fetchs CPU & memory resource metrics directly from the kubelet on each K8s Node. +Murre fetches CPU & memory resource metrics directly from the kubelet on each K8s Node. Murre also enriches the resources with the relevant K8s requests and limits from each PodSpec. ## Why Murre? diff --git a/pkg/murre.go b/pkg/murre.go index b5a54a8..754ef69 100644 --- a/pkg/murre.go +++ b/pkg/murre.go @@ -137,16 +137,16 @@ func (m *Murre) updateContainers() error { } func (m *Murre) filter(stats []*k8s.Stats) []*k8s.Stats { - filterdStats := make([]*k8s.Stats, 0) + filteredStats := make([]*k8s.Stats, 0) for _, s := range stats { isNamespaceMatch := m.config.Filters.Namespace == "" || m.config.Filters.Namespace == s.Namespace isPodMatch := m.config.Filters.Pod == "" || m.config.Filters.Pod == s.PodName isContainerMatch := m.config.Filters.Container == "" || m.config.Filters.Container == s.ContainerName if isNamespaceMatch && isPodMatch && isContainerMatch { - filterdStats = append(filterdStats, s) + filteredStats = append(filteredStats, s) } } - return filterdStats + return filteredStats } func (m *Murre) sort(stats []*k8s.Stats) { diff --git a/pkg/ui/table.go b/pkg/ui/table.go index dfbeb31..d4ba07b 100644 --- a/pkg/ui/table.go +++ b/pkg/ui/table.go @@ -85,7 +85,7 @@ func (t *Table) getCell(stats *k8s.Stats, column int) *tview.TableCell { return tview.NewTableCell("\u23F1").SetAlign(tview.AlignCenter) } - //convet bytes to MiB + //convert bytes to MiB memoryInMiB := stats.MemoryBytes / 1024 / 1024 memoryLimitInMib := stats.MemoryLimitBytes / 1024 / 1024 if stats.MemoryUsagePercent > 0 {