# Is it possible to use the value of another metric as a condition for a metric event?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417>\
**Category:** Alerting\
**Tags:** problem-detection, ibm, anomaly-detection, problems-classic\
**Created:** [May 2, 2024, 8:34pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417 "2024-05-02T20:34:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose\_araya](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jose\_araya](https://community.dynatrace.com/u/jose_araya)\
**Post date:** [May 2, 2024, 8:34pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417/1 "2024-05-02T20:34:56Z")

</div>

Hello the scenario is the following:

1. We need to alert on the status of certain jobs (IBM i Jobs). If they are not active we need to create a new alert/problem in Dynatrace.

2. First we have to take into account which IBM i is the Active node, because we don’t need to create alerts for jobs running on other systems that are currently passive (avoid false positives).

3. In order to be sure about which one is the Active node at the moment, we have to query a specific table inside one of the IBM i. This query returns the current active node.

So the use case is the following:

1. How to create metric events for those jobs but only when they are running on the Active IBM i node?

2. Is it possible to add inside a metric event a condition that evaluates the value of another metric? Because we already have the metric that returns the current active node.

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [May 2, 2024, 8:42pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417/2 "2024-05-02T20:42:13Z")

</div>

Hello&nbsp;[@jose\_araya](https://community.dynatrace.com/user/33470)&nbsp;this could be a great use case for&nbsp;[Workflows](https://docs.dynatrace.com/docs/shortlink/workflows-quickstart)&nbsp;!!!

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [May 3, 2024, 6:19am UTC](https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417/3 "2024-05-03T06:19:22Z")

</div>

Hi&nbsp;[@jose\_araya](https://community.dynatrace.com/user/33470)&nbsp;, unfortunately this is not possible using Metric Events, but&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;pointed you to the right direction.  
Take a look on

[![](https://global.discourse-cdn.com/dynatrace/original/3X/c/3/c3e866e60219aba66a07a70abe134f7c3741710b.jpeg "Dynatrace Tips & Tricks #20 - Automation Workflow Best Practices") ](https://www.youtube.com/watch?v=xOFzaOzvUPE)

> **[Event triggers for workflows](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/build/trigger/event-trigger)**
>
> Choose event-based triggers configuration options in Dynatrace Workflows.

---

<div class="post-metadata">

**Author:** ![jose\_araya](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jose\_araya](https://community.dynatrace.com/u/jose_araya)\
**Post date:** [May 8, 2024, 9:35pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-the-value-of-another-metric-as-a-condition-for-a-metric-event/45417/4 "2024-05-08T21:35:12Z")

</div>

Thank you all very much! I will investigate further.
