ecs_metrics.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. package awsecscontainermetrics // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsecscontainermetricsreceiver/internal/awsecscontainermetrics"
  4. // ECSMetrics defines the structure container/task level metrics
  5. type ECSMetrics struct {
  6. MemoryUsage uint64
  7. MemoryMaxUsage uint64
  8. MemoryLimit uint64
  9. MemoryUtilized uint64
  10. MemoryReserved uint64
  11. CPUTotalUsage uint64
  12. CPUUsageInKernelmode uint64
  13. CPUUsageInUserMode uint64
  14. CPUOnlineCpus uint64
  15. SystemCPUUsage uint64
  16. NumOfCPUCores uint64
  17. CPUReserved float64
  18. CPUUtilized float64
  19. CPUUsageInVCPU float64
  20. NetworkRateRxBytesPerSecond float64
  21. NetworkRateTxBytesPerSecond float64
  22. NetworkRxBytes uint64
  23. NetworkRxPackets uint64
  24. NetworkRxErrors uint64
  25. NetworkRxDropped uint64
  26. NetworkTxBytes uint64
  27. NetworkTxPackets uint64
  28. NetworkTxErrors uint64
  29. NetworkTxDropped uint64
  30. StorageReadBytes uint64
  31. StorageWriteBytes uint64
  32. }