-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add k8s.container.status.state metric
- Loading branch information
Showing
4 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# | ||
# If your change doesn't affect end users you should instead start | ||
# your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: new_component | ||
|
||
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db) | ||
component: k8s | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Add k8s.container.status.state" | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
# The values here must be integers. | ||
issues: [1672] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,3 +232,69 @@ groups: | |
value: 'terminating' | ||
brief: "Terminating namespace phase as described by [K8s API](https://pkg.go.dev/k8s.io/[email protected]/core/v1#NamespacePhase)" | ||
stability: experimental | ||
- id: k8s.container.state | ||
stability: experimental | ||
brief: > | ||
The state of the container. | ||
type: | ||
members: | ||
- id: terminated | ||
value: 'terminated' | ||
brief: 'The container has terminated.' | ||
stability: experimental | ||
- id: running | ||
value: 'running' | ||
brief: 'The container is running.' | ||
stability: experimental | ||
- id: waiting | ||
value: 'waiting' | ||
brief: 'The container is waiting.' | ||
stability: experimental | ||
examples: ['terminated', 'running', 'waiting'] | ||
- id: k8s.container.reason | ||
type: | ||
members: | ||
- id: container_creating | ||
value: 'ContainerCreating' | ||
brief: 'The container is being created.' | ||
stability: experimental | ||
- id: crash_loop_back_off | ||
value: 'CrashLoopBackOff' | ||
brief: 'The container is in a crash loop back off state.' | ||
stability: experimental | ||
- id: create_container_config_error | ||
value: 'CreateContainerConfigError' | ||
brief: 'There was an error creating the container configuration.' | ||
stability: experimental | ||
- id: err_image_pull | ||
value: 'ErrImagePull' | ||
brief: 'There was an error pulling the container image.' | ||
stability: experimental | ||
- id: image_pull_back_off | ||
value: 'ImagePullBackOff' | ||
brief: 'The container image pull is in back off state.' | ||
stability: experimental | ||
- id: oom_killed | ||
value: 'OOMKilled' | ||
brief: 'The container was killed due to out of memory.' | ||
stability: experimental | ||
- id: completed | ||
value: 'Completed' | ||
brief: 'The container has completed execution.' | ||
stability: experimental | ||
- id: error | ||
value: 'Error' | ||
brief: 'There was an error with the container.' | ||
stability: experimental | ||
- id: container_cannot_run | ||
value: 'ContainerCannotRun' | ||
brief: 'The container cannot run.' | ||
stability: experimental | ||
- id: empty | ||
value: '' | ||
brief: 'Reason unknown.' | ||
stability: experimental | ||
stability: experimental | ||
brief: > | ||
The reason for the container state. | ||
examples: ['ContainerCreating', 'CrashLoopBackOff', 'CreateContainerConfigError', 'ErrImagePull', 'ImagePullBackOff', 'OOMKilled', 'Completed', 'Error', 'ContainerCannotRun'] |