Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add k8s.container.status.waiting_reason resource attribute #996

Closed
povilasv opened this issue May 2, 2024 · 0 comments · Fixed by #997
Closed

add k8s.container.status.waiting_reason resource attribute #996

povilasv opened this issue May 2, 2024 · 0 comments · Fixed by #997
Assignees
Labels

Comments

@povilasv
Copy link
Contributor

povilasv commented May 2, 2024

Area(s)

No response

Is your change request related to a problem? Please describe.

Original request to add such attribute in open-telemetry/opentelemetry-collector-contrib#32457

Basically user wants to monitor/alert CrashLoopBackOff reason.

Example Pod in such state:

  containerStatuses:
  - containerID: containerd://6bb73f56d9f34abc2015629d594625e8e637582ecf94b7e5067171c647a773fd
    image: docker.io/library/nginx:latest
    imageID: docker.io/library/nginx@sha256:ed6d2c43c8fbcd3eaa44c9dab6d94cb346234476230dc1681227aa72d07181ee
    lastState:
      terminated:
        containerID: containerd://6bb73f56d9f34abc2015629d594625e8e637582ecf94b7e5067171c647a773fd
        exitCode: 0
        finishedAt: "2024-05-02T12:30:53Z"
        reason: Completed
        startedAt: "2024-05-02T12:30:41Z"
    name: test
    ready: false
    restartCount: 2
    started: false
    state:
      waiting:
        message: back-off 20s restarting failed container=test pod=dns-example_default(dbd4171d-fcef-45d5-8caf-be07213e1bf6)
        reason: CrashLoopBackOff

Describe the solution you'd like

Add k8s.container.status.waiting_reason resource attribute.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants