constant.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. // Constant attributes for aws ecs container metrics.
  5. const (
  6. attributeECSDockerName = "aws.ecs.docker.name"
  7. attributeECSCluster = "aws.ecs.cluster.name"
  8. attributeECSTaskID = "aws.ecs.task.id"
  9. attributeECSTaskRevision = "aws.ecs.task.version"
  10. attributeECSServiceName = "aws.ecs.service.name"
  11. attributeECSTaskPullStartedAt = "aws.ecs.task.pull_started_at"
  12. attributeECSTaskPullStoppedAt = "aws.ecs.task.pull_stopped_at"
  13. attributeECSTaskKnownStatus = "aws.ecs.task.known_status"
  14. attributeECSTaskLaunchType = "aws.ecs.task.launch_type"
  15. attributeContainerImageID = "aws.ecs.container.image.id"
  16. attributeContainerCreatedAt = "aws.ecs.container.created_at"
  17. attributeContainerStartedAt = "aws.ecs.container.started_at"
  18. attributeContainerFinishedAt = "aws.ecs.container.finished_at"
  19. attributeContainerKnownStatus = "aws.ecs.container.know_status"
  20. attributeContainerExitCode = "aws.ecs.container.exit_code"
  21. cpusInVCpu = 1024
  22. bytesInMiB = 1024 * 1024
  23. taskPrefix = "ecs.task."
  24. containerPrefix = "container."
  25. attributeMemoryUsage = "memory.usage"
  26. attributeMemoryMaxUsage = "memory.usage.max"
  27. attributeMemoryLimit = "memory.usage.limit"
  28. attributeMemoryReserved = "memory.reserved"
  29. attributeMemoryUtilized = "memory.utilized"
  30. attributeCPUTotalUsage = "cpu.usage.total"
  31. attributeCPUKernelModeUsage = "cpu.usage.kernelmode"
  32. attributeCPUUserModeUsage = "cpu.usage.usermode"
  33. attributeCPUSystemUsage = "cpu.usage.system"
  34. attributeCPUCores = "cpu.cores"
  35. attributeCPUOnlines = "cpu.onlines"
  36. attributeCPUReserved = "cpu.reserved"
  37. attributeCPUUtilized = "cpu.utilized"
  38. attributeCPUUsageInVCPU = "cpu.usage.vcpu"
  39. attributeNetworkRateRx = "network.rate.rx"
  40. attributeNetworkRateTx = "network.rate.tx"
  41. attributeNetworkRxBytes = "network.io.usage.rx_bytes"
  42. attributeNetworkRxPackets = "network.io.usage.rx_packets"
  43. attributeNetworkRxErrors = "network.io.usage.rx_errors"
  44. attributeNetworkRxDropped = "network.io.usage.rx_dropped"
  45. attributeNetworkTxBytes = "network.io.usage.tx_bytes"
  46. attributeNetworkTxPackets = "network.io.usage.tx_packets"
  47. attributeNetworkTxErrors = "network.io.usage.tx_errors"
  48. attributeNetworkTxDropped = "network.io.usage.tx_dropped"
  49. attributeStorageRead = "storage.read_bytes"
  50. attributeStorageWrite = "storage.write_bytes"
  51. attributeDuration = "duration"
  52. unitBytes = "Bytes"
  53. unitMegaBytes = "Megabytes"
  54. unitNanoSecond = "Nanoseconds"
  55. unitBytesPerSec = "Bytes/Second"
  56. unitCount = "Count"
  57. unitVCpu = "vCPU"
  58. unitSecond = "Seconds"
  59. unitNone = "None"
  60. )