Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions entity-types/infra-container/golden_metrics.stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ networkTrafficTotal:
# defaulting to newRelic query for now since we cannot match value functions for OpenTelemetry cumulative metrics.
opentelemetry:
select: rate(max(container.storage.write_bytes), 1 second) + rate(max(container.storage.read_bytes), 1 second) AS 'Network traffic (bytes per second)'
containerRestart:
title: Container restarts
unit: COUNT
queries:
newRelic:
select: latest(restartCount) AS 'Container restarts'
from: K8sContainerSample
opentelemetry:
# via kubeletstatsreceiver
select: latest(k8s.container.restartCount) AS 'Container restarts'
29 changes: 29 additions & 0 deletions entity-types/infra-container/summary_metrics.stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
containerState:
title: Container state
unit: STRING
tag:
key: container.state
cpuUsage:
goldenMetric: cpuUsage
title: CPU usage (cores)
unit: COUNT
cpuUtilization:
goldenMetric: cpuUtilization
unit: PERCENTAGE
title: CPU utilization (%)
storageUsage:
goldenMetric: storageUsage
title: Storage usage (bytes)
unit: BYTES
memoryUsage:
goldenMetric: memoryUsage
title: Memory usage (bytes)
unit: BYTES
networkTrafficTotal:
goldenMetric: networkTrafficTotal
title: Network traffic (bytes per second)
unit: BYTES_PER_SECOND
containerRestart:
goldenMetric: containerRestart
title: Container restarts
unit: COUNT
Loading