Skip to content

Commit

Permalink
[receiver/awscontainerinsightreceiver] Rollback addition of container…
Browse files Browse the repository at this point in the history
… processes metrics (open-telemetry#31)
  • Loading branch information
sky333999 authored Jun 7, 2023
1 parent a785b2e commit 8179e2e
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 142 deletions.
9 changes: 0 additions & 9 deletions internal/aws/containerinsight/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ const (
FSInodesfree = "filesystem_inodes_free"
FSUtilization = "filesystem_utilization"

Processes = "processes"
ProcessesThreads = "processes_threads"
ProcessesFileDescriptors = "processes_file_descriptors"

StatusConditionReady = "status_condition_ready"
StatusConditionDiskPressure = "status_condition_disk_pressure"
StatusConditionMemoryPressure = "status_condition_memory_pressure"
Expand Down Expand Up @@ -240,11 +236,6 @@ func init() {
FSInodesfree: UnitCount,
FSUtilization: UnitPercent,

// processes metrics
Processes: UnitCount,
ProcessesFileDescriptors: UnitCount,
ProcessesThreads: UnitCount,

// status & spec metrics
StatusConditionReady: UnitCount,
StatusConditionDiskPressure: UnitCount,
Expand Down
6 changes: 0 additions & 6 deletions internal/aws/containerinsight/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ func TestConvertToOTLPMetricsForContainerMetrics(t *testing.T) {
"container_memory_utilization": 0.16909561488772057,
"container_memory_utilization_over_container_limit": 13.560546875,
"container_memory_working_set": int64(28438528),
"container_processes": int64(5),
"container_processes_threads": int64(10),
"container_processes_file_descriptors": int64(15),
}
expectedUnits = map[string]string{
"container_cpu_limit": "",
Expand All @@ -342,9 +339,6 @@ func TestConvertToOTLPMetricsForContainerMetrics(t *testing.T) {
"container_memory_utilization": UnitPercent,
"container_memory_utilization_over_container_limit": UnitPercent,
"container_memory_working_set": UnitBytes,
"container_processes": UnitCount,
"container_processes_threads": UnitCount,
"container_processes_file_descriptors": UnitCount,
}
tags = map[string]string{
"AutoScalingGroupName": "eks-a6bb9db9-267c-401c-db55-df8ef645b06f",
Expand Down
3 changes: 0 additions & 3 deletions receiver/awscontainerinsightreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,6 @@ kubectl apply -f config.yaml
| container_status_terminated | Count |
| container_status_waiting | Count |
| container_status_waiting_reason_crashed | Count |
| container_processes | Count |
| container_processes_threads | Count |
| container_processes_file_descriptors | Count |

<br/><br/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ func (c *Cadvisor) initManager(createManager createCadvisorManager) error {
cadvisormetrics.DiskIOMetrics: struct{}{},
cadvisormetrics.NetworkUsageMetrics: struct{}{},
cadvisormetrics.DiskUsageMetrics: struct{}{},
cadvisormetrics.ProcessMetrics: struct{}{},
}
var cgroupRoots []string
if c.containerOrchestrator == ci.EKS {
Expand Down Expand Up @@ -400,7 +399,6 @@ func (c *Cadvisor) initManager(createManager createCadvisorManager) error {
metricsExtractors = append(metricsExtractors, extractors.NewDiskIOMetricExtractor(c.logger))
metricsExtractors = append(metricsExtractors, extractors.NewNetMetricExtractor(c.logger))
metricsExtractors = append(metricsExtractors, extractors.NewFileSystemMetricExtractor(c.logger))
metricsExtractors = append(metricsExtractors, extractors.NewProcessesMetricExtractor(c.logger))

return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func TestProcessContainers(t *testing.T) {
metricsExtractors = append(metricsExtractors, extractors.NewDiskIOMetricExtractor(zap.NewNop()))
metricsExtractors = append(metricsExtractors, extractors.NewNetMetricExtractor(zap.NewNop()))
metricsExtractors = append(metricsExtractors, extractors.NewFileSystemMetricExtractor(zap.NewNop()))
metricsExtractors = append(metricsExtractors, extractors.NewProcessesMetricExtractor(zap.NewNop()))

containerInfos := testutils.LoadContainerInfo(t, "./extractors/testdata/CurInfoContainer.json")
podInfos := testutils.LoadContainerInfo(t, "./extractors/testdata/InfoPod.json")
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"has_filesystem": true,
"has_diskio": true,
"has_custom_metrics": false,
"has_processes": true,
"image": "ubuntu@sha256:017eef0b616011647b269b5c65826e2e2ebddbe5d1f8c1e56b3599fb14fabec8"
},
"stats": [
Expand Down Expand Up @@ -190,11 +189,6 @@
"nr_stopped": 0,
"nr_uninterruptible": 0,
"nr_io_wait": 0
},
"processes": {
"process_count": 10,
"threads_current": 20,
"fd_count": 30
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"has_filesystem": true,
"has_diskio": true,
"has_custom_metrics": false,
"has_processes": true,
"image": "ubuntu@sha256:017eef0b616011647b269b5c65826e2e2ebddbe5d1f8c1e56b3599fb14fabec8"
},
"stats": [
Expand Down Expand Up @@ -190,11 +189,6 @@
"nr_stopped": 0,
"nr_uninterruptible": 0,
"nr_io_wait": 0
},
"processes": {
"process_count": 5,
"threads_current": 15,
"fd_count": 25
}
}
]
Expand Down

0 comments on commit 8179e2e

Please sign in to comment.