Skip to content

Commit 06aad45

Browse files
Merge pull request #125 from smarterclayton/gather_cpu_mem
gather: Collect namespace level cpu and memory metrics
2 parents 7e61d90 + 00851f8 commit 06aad45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/gather/clusterconfig/clusterconfig.go

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func (i *Gatherer) Gather(ctx context.Context, recorder record.Interface) error
110110
// ALERTS
111111
// etcd_object_counts
112112
// cluster_installer
113+
// namespace CPU and memory usage
113114
//
114115
// Location in archive: config/metrics/
115116
// See: docs/insights-archive-sample/config/metrics
@@ -122,6 +123,8 @@ func GatherMostRecentMetrics(i *Gatherer) func() ([]record.Record, []error) {
122123
Param("match[]", "ALERTS").
123124
Param("match[]", "etcd_object_counts").
124125
Param("match[]", "cluster_installer").
126+
Param("match[]", "namespace:container_cpu_usage_seconds_total:sum_rate").
127+
Param("match[]", "namespace:container_memory_usage_bytes:sum").
125128
DoRaw()
126129
if err != nil {
127130
// write metrics errors to the file format as a comment

0 commit comments

Comments
 (0)