# Openshift alerting rules

**URL:** <https://community.dynatrace.com/t/openshift-alerting-rules/15455>\
**Category:** Alerting\
**Tags:** management-zones, openshift, dynatrace-managed, problems-classic\
**Created:** [September 7, 2018, 9:41am UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455 "2018-09-07T09:41:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [September 7, 2018, 9:41am UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/1 "2018-09-07T09:41:54Z")

</div>

Hi everyone,  
We deployed Dynatrace OneAgent on several Openshift nodes on which are deployed all the applications environments (dev, preprod, prod). As the OpenShift hosts are installed in our Production tenant, Dynatrace detects problems on all the applications environments and we receive alerts for applications that are not production.

Is there a simple way to disabled problem detection on non-prod environments? I created management zones to distinguish the various environments but it does not help for this kind of issue.

Thanks

Gilles

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [September 7, 2018, 9:53am UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/2 "2018-09-07T09:53:53Z")

</div>

Management Zones and Tags are the right way to go in combination with alerting profiles.

You can configure your alerting profiles so you are only notifited about, and see the problem indicator in the UI for, problems from production systems.

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [September 7, 2018, 3:10pm UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/3 "2018-09-07T15:10:37Z")

</div>

Also note that if all of your process groups are being detected together (i.e. big groups that contain the same application in dev, QA, prod etc…) you may need to look at splitting those up so that the process groups are split by by dev, QA, prod. Otherwise even with management zones you may have issues with troubles in pre-prod environments creating problems tagged as prod. [Hostgroups](https://www.dynatrace.com/support/help/infrastructure/hosts/how-do-i-organize-my-environment-using-host-groups/?_ga=2.210304467.775276765.1536065685-1381209659.1445263317) are usually helpful in doing that.

James

---

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [September 7, 2018, 3:37pm UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/4 "2018-09-07T15:37:23Z")

</div>

Hi Patrick,

Thanks for your quick answer.  
What I did is:  
- created a “Production” auto tag on all non-Openshift processgroups and services  
- created a “Openshift Prod” auto tag on all Openshift Prod processgroupes and services  
- created auto tag for other Openshift instances  
- created a new alerting profil based on “Production” and Openshift Prod" tags

That way, I should not receive alerts for non-production entities.

Is there a way to exclude some entities from problem detection the same way?

Gilles

---

<div class="post-metadata">

**Author:** ![g\_ciret](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@g\_ciret](https://community.dynatrace.com/u/g_ciret)\
**Post date:** [September 7, 2018, 3:40pm UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/5 "2018-09-07T15:40:17Z")

</div>

Hi James,

No, it’s OK, my pods are all separated based on the Kubernates Namespace that contains the environment.

Thanks.

Gilles

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [September 13, 2018, 8:23am UTC](https://community.dynatrace.com/t/openshift-alerting-rules/15455/6 "2018-09-13T08:23:37Z")

</div>

Yes, you can combine tags for alert rules with either _any_ or _all tags._

If you don’t want alerts for all production machines for example, you could create an _alert_ tag, and match for entities containing the alert and production tag.
