<?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 Re: Calculated service metrics to capture request name containing regex in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204232#M24509</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51881"&gt;@Romanenkov_Al3x&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51714"&gt;@MichalOlszewski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colleagues,&amp;nbsp; thanks for help!&lt;/P&gt;&lt;P&gt;But trouble was so easy - I missed letter "s" in word project&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 12:05:16 GMT</pubDate>
    <dc:creator>Fisher</dc:creator>
    <dc:date>2023-02-07T12:05:16Z</dc:date>
    <item>
      <title>Calculated service metrics to capture request name containing regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204171#M24505</link>
      <description>&lt;P&gt;Hello, team!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to create a calculated service metric. It must capture request like: /projects/{projectId}/files/**&lt;/P&gt;
&lt;P&gt;For example: projects/platform_features/files/help/&lt;/P&gt;
&lt;P&gt;When I create a metric, I use the condition "request name contains regex /project\/.*\/files/.*[a-zA-Z0-9]" - this condition doesn't work, because in metric there is "no data", but I see these requests in MDA.&lt;/P&gt;
&lt;P&gt;I tried to use another regex: /project/[a-zA-Z0-9]*/files/.*[a-zA-Z0-9] - but Dynatrace show me the message&amp;nbsp;&lt;SPAN&gt;"Greedy or lazy character classes are not allowed, please use a possessive quantifier instead."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;And I tried the third variant:&amp;nbsp;/project/[a-zA-Z0-9]/files/.*[a-zA-Z0-9] - Dynatrace doesn't show me an error, but when I try check this regex in regex101.com - it's an "invalid expression".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 10:58:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204171#M24505</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2023-02-07T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace regex question</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204182#M24506</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/49132"&gt;@Fisher&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;2 things with Your regexes -&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1st You forgetting to escape special char "/" which should always be "\/" - even thou some engines accept unescaped "/" is highly recommended to do so. Every one You posted here have this issue in one or more places&lt;/LI&gt;&lt;LI&gt;2nd don't use .*[set] as way out of greedy/lazy/possessive as it won't work and will cause mess.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I Believe You were looking for:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;\/project\/[a-zA-Z0-9]++\/files\/[a-zA-Z0-9]++&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichalOlszewski_0-1675747771543.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9838iBF3411821757A0BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichalOlszewski_0-1675747771543.png" alt="MichalOlszewski_0-1675747771543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Small tip for future with regexes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;+,*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is greedy - takes as much as possible - You don't want that (mostly)&lt;/LI&gt;&lt;LI&gt;++, *+&amp;nbsp; &amp;nbsp; is possessive - takes as much as needed - You usually want that (with rules and filtering)&lt;/LI&gt;&lt;LI&gt;+?, *?&amp;nbsp; &amp;nbsp; &amp;nbsp;is lazy - takes as few as needed - You might want that (with capturing)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 07 Feb 2023 05:38:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204182#M24506</guid>
      <dc:creator>MichalOlszewski</dc:creator>
      <dc:date>2023-02-07T05:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace regex question</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204223#M24507</link>
      <description>&lt;P&gt;Thank you, Michal.&lt;/P&gt;&lt;P&gt;But it doesn't work(&lt;/P&gt;&lt;P&gt;I still can't see data in this calculated metric&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 09:46:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204223#M24507</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2023-02-07T09:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated service metrics to capture request name containing regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204228#M24508</link>
      <description>&lt;P&gt;Hello from Nightmare...&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;\/projects\/(?&amp;gt;[a-zA-Z0-9-_]++)\/files\/(?&amp;gt;[a-zA-Z0-9-_]++)\/&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Romanenkov Alex&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:09:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204228#M24508</guid>
      <dc:creator>Romanenkov_Al3x</dc:creator>
      <dc:date>2023-02-07T11:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated service metrics to capture request name containing regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204232#M24509</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51881"&gt;@Romanenkov_Al3x&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51714"&gt;@MichalOlszewski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colleagues,&amp;nbsp; thanks for help!&lt;/P&gt;&lt;P&gt;But trouble was so easy - I missed letter "s" in word project&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 12:05:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204232#M24509</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2023-02-07T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated service metrics to capture request name containing regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204245#M24511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/49132"&gt;@Fisher&lt;/a&gt;&amp;nbsp;thank you for sharing what the solution happened to be! Even though it was a typo, it started a discussion that I think many people will find useful!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:04:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Calculated-service-metrics-to-capture-request-name-containing/m-p/204245#M24511</guid>
      <dc:creator>Ana_Kuzmenchuk</dc:creator>
      <dc:date>2023-02-07T14:04:09Z</dc:date>
    </item>
  </channel>
</rss>

