<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Logical operator similar to Prometheus &amp;quot;unless&amp;quot; in DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240769#M758</link>
    <description>&lt;P&gt;I have Prometheus query where it has "unless" logical operator to DQL. (Ref:&amp;nbsp;&lt;A href="https://prometheus.io/docs/prometheus/latest/querying/operators/#logical-set-binary-operators" target="_self"&gt;logical-set-binary-operators&lt;/A&gt; )&lt;BR /&gt;Is there a similar logical operator which I could utilze in DQL?&amp;nbsp;&lt;BR /&gt;If not, how can I use existing features to achieve a similar result to Prometheus?&lt;/P&gt;</description>
    <pubDate>Sun, 24 Mar 2024 23:39:27 GMT</pubDate>
    <dc:creator>cabeywardhana</dc:creator>
    <dc:date>2024-03-24T23:39:27Z</dc:date>
    <item>
      <title>Logical operator similar to Prometheus "unless" in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240769#M758</link>
      <description>&lt;P&gt;I have Prometheus query where it has "unless" logical operator to DQL. (Ref:&amp;nbsp;&lt;A href="https://prometheus.io/docs/prometheus/latest/querying/operators/#logical-set-binary-operators" target="_self"&gt;logical-set-binary-operators&lt;/A&gt; )&lt;BR /&gt;Is there a similar logical operator which I could utilze in DQL?&amp;nbsp;&lt;BR /&gt;If not, how can I use existing features to achieve a similar result to Prometheus?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 23:39:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240769#M758</guid>
      <dc:creator>cabeywardhana</dc:creator>
      <dc:date>2024-03-24T23:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logical operator similar to Promethesu "unless" in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240852#M760</link>
      <description>&lt;P&gt;I think you have &lt;STRONG&gt;&lt;EM&gt;not in&lt;/EM&gt;&lt;/STRONG&gt; operators in mind. This is example DQL query which operated on 2 different data sets (like&amp;nbsp;&lt;SPAN&gt;Prometheus instant vectors&lt;/SPAN&gt;) and does what "unless" does:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data 
record(val=1,  label="a"),
record(val=2,  label="b"),
record(val=3,  label="c")
| filter not label in [
  data
  record(val2=10,  label="a")
  | fields label
]&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1711135124947.png" style="width: 673px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18483iC4C5A51FC98CA5AC/image-dimensions/673x515?v=v2" width="673" height="515" role="button" title="krzysztof_hoja_0-1711135124947.png" alt="krzysztof_hoja_0-1711135124947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give example of data you work with?&lt;/P&gt;&lt;P&gt;Kris&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 19:21:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240852#M760</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-03-22T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Logical operator similar to Promethesu "unless" in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240914#M761</link>
      <description>&lt;P&gt;Thank you for the prompt response&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am working with two timeseries metrics combined using a join in my Grail DQL query.&lt;BR /&gt;The following is a representation of what my query looks like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(metric1)
    interval: 10m
    by: {id}
| join [ 
    timeseries avg(metric2)
    interval: 10m
    by: {id}
], on: {id}, kind: ???&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What I am after is to combine/join two timeseries metrics with an operator which does the same as&amp;nbsp;&lt;STRONG&gt;unless&lt;/STRONG&gt;&amp;nbsp;operator in Prometheus.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 00:38:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/240914#M761</guid>
      <dc:creator>cabeywardhana</dc:creator>
      <dc:date>2024-03-25T00:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logical operator similar to Prometheus "unless" in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/241271#M785</link>
      <description>&lt;P&gt;Please check if this query gives what you need:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(dt.host.cpu.system), by:{dt.entity.host}, filter:aws.region=="us-east-1"
| filterOut dt.entity.host in [
    timeseries avg(dt.host.memory.usage), by:{dt.entity.host} , filter:aws.region=="us-east-1"
    | fields dt.entity.host
]&lt;/LI-CODE&gt;&lt;P&gt;IMHO it works like &lt;EM&gt;&lt;STRONG&gt;unless&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;On my test tenant, results of component queries and combined one look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1711572478995.png" style="width: 843px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18551i0C1D048A62E919B3/image-dimensions/843x663?v=v2" width="843" height="663" role="button" title="krzysztof_hoja_0-1711572478995.png" alt="krzysztof_hoja_0-1711572478995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 20:56:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/241271#M785</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-03-27T20:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logical operator similar to Prometheus "unless" in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/241279#M787</link>
      <description>&lt;P&gt;This solution works for me. Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 02:56:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Logical-operator-similar-to-Prometheus-quot-unless-quot-in-DQL/m-p/241279#M787</guid>
      <dc:creator>cabeywardhana</dc:creator>
      <dc:date>2024-03-28T02:56:00Z</dc:date>
    </item>
  </channel>
</rss>

