# Openshift Pod - Alert if state is not ready.

**URL:** <https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363>\
**Category:** Container platforms\
**Tags:** openshift\
**Created:** [July 23, 2019, 9:01pm UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363 "2019-07-23T21:01:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [July 23, 2019, 9:01pm UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/1 "2019-07-23T21:01:47Z")

</div>

Hi! we where wondering if is possible to monitor (and how) the state of the pod as seen at the Openshift console in case that a pod is not ready.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 23, 2019, 9:16pm UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/2 "2019-07-23T21:16:26Z")

</div>

Right now there is no such function out of the box. It may be possible by creating ActiveGate plugin that will fetch some extra metrics from OpenShift api (if they are available).

Sebastian

---

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [July 24, 2019, 3:29am UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/3 "2019-07-24T03:29:36Z")

</div>

Thanks [@sebastian k.](https://answers.dynatrace.com/users/15061/view.html) After checking all the options, we found out that in the case of unhealthy state a log is created. So we setup a log detection to check that use case. Will check tomorrow and report back. Thanks!

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 24, 2019, 6:35am UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/4 "2019-07-24T06:35:56Z")

</div>

If you have log analytics license this will be great as well 🙂 Good luck!.

Sebastian

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [July 29, 2019, 10:42am UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/5 "2019-07-29T10:42:28Z")

</div>

Our workaround for a similar case (i.e. raising alerts when any warning events are detected for a given namespace) has been implementing of synthetic HTTP monitors that poll the Kubernetes Events API and check the response via regex. Maybe you could do something similar for your pod state. Although I agree it is additional manual work to set up but better than nothing…

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [December 14, 2021, 2:31pm UTC](https://community.dynatrace.com/t/openshift-pod-alert-if-state-is-not-ready/21363/6 "2021-12-14T14:31:50Z")

</div>

The pod unified analysis page is now available for Openshift (in Early Adopter release at the moment):

[Monitor OpenShift workloads](https://www.dynatrace.com/support/help/how-to-use-dynatrace/infrastructure-monitoring/container-platform-monitoring/openshift-monitoring/monitor-workloads-openshift#pods)
