<?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: Live user session : What metrics? in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/185023#M2296</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no clear answer hear as Dynatrace does not actually expose the live sessions, it is 'in memory' only and the values you see on the application and user sessions screen under 'live' are not retrievable via usql or metrics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 2 options,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; As mentioned above, use usql and extract via the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is going to have to be delayed data (e.g what happened last hour) based on the completion of user sessions, so will never be entirely accurate for what you want and because the timestamp for usql extraction doesn't have relative time frames will&amp;nbsp; be required to calculate the to / from timestamps within your calling app&amp;nbsp; or leave the default as 'last 2 hours' and then add a timestamp to the usql to limit the time (needs to be = polling time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example queries below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(distinct UserId) as 'Current Unique UserID' FROM usersession&lt;BR /&gt;Where useraction.application IN ("xxx") and userId IS NOT NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(distinct UserId) as 'Sessions with Errors' FROM usersession&lt;BR /&gt;Where useraction.application IN ("xxx") and userId IS NOT NULL and useraction.requestErrorCount &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; The better alternative is to use the inbuilt calculated metrics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.web.activeUsersEst&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.web.activeSessions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.other.userCount.osAndVersion-std&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Ralston_0-1650322755617.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5400i9B0FE6F257A7AFE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Peter_Ralston_0-1650322755617.png" alt="Peter_Ralston_0-1650322755617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These will give you Dynatrace pre calculated 'estimated' number of active users and sessions.&amp;nbsp; it is split between mobile &amp;amp; web, so you might need to show this data seperately.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is retrieved via the api v2 metrics (as above) and can do relative timestamps (last 5 min), so is much easier to handle and graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, good luck&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 23:20:36 GMT</pubDate>
    <dc:creator>gopher</dc:creator>
    <dc:date>2022-04-18T23:20:36Z</dc:date>
    <item>
      <title>Live user session: what metrics?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/179002#M2136</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;would like to retrieve "User live" sessions in dashboard created with PowerBi with API method. I had custom APP and classic APP, i'm wonder what metrics i should use. After many tests no one gave me the same value with the dashboard Dynatrace.&lt;/P&gt;
&lt;P&gt;(Api1 V1/V2, Custom metrics,)&lt;/P&gt;
&lt;P&gt;I try to find a workaround with "Active session"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone can help me?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;J.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 13:38:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/179002#M2136</guid>
      <dc:creator>jduhamel</dc:creator>
      <dc:date>2023-05-30T13:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Live user session : What metrics?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/183668#M2255</link>
      <description>&lt;P&gt;You'll want to use the API V2 -&amp;nbsp;/metrics/query. You'll build your query in USQL then paste it into the API and it will give you the CURL, URL and the json output for your Power BI. Just make sure you have created a token just for the Power BI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 17:19:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/183668#M2255</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2022-03-30T17:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Live user session : What metrics?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/184934#M2295</link>
      <description>&lt;P&gt;That's works fine!&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14877"&gt;@ChadTurner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 14:30:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/184934#M2295</guid>
      <dc:creator>_davidemascolo</dc:creator>
      <dc:date>2022-04-15T14:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Live user session : What metrics?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/185023#M2296</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no clear answer hear as Dynatrace does not actually expose the live sessions, it is 'in memory' only and the values you see on the application and user sessions screen under 'live' are not retrievable via usql or metrics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 2 options,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; As mentioned above, use usql and extract via the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is going to have to be delayed data (e.g what happened last hour) based on the completion of user sessions, so will never be entirely accurate for what you want and because the timestamp for usql extraction doesn't have relative time frames will&amp;nbsp; be required to calculate the to / from timestamps within your calling app&amp;nbsp; or leave the default as 'last 2 hours' and then add a timestamp to the usql to limit the time (needs to be = polling time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example queries below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(distinct UserId) as 'Current Unique UserID' FROM usersession&lt;BR /&gt;Where useraction.application IN ("xxx") and userId IS NOT NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(distinct UserId) as 'Sessions with Errors' FROM usersession&lt;BR /&gt;Where useraction.application IN ("xxx") and userId IS NOT NULL and useraction.requestErrorCount &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; The better alternative is to use the inbuilt calculated metrics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.web.activeUsersEst&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.web.activeSessions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;builtin:apps.other.userCount.osAndVersion-std&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Peter_Ralston_0-1650322755617.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/5400i9B0FE6F257A7AFE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Peter_Ralston_0-1650322755617.png" alt="Peter_Ralston_0-1650322755617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These will give you Dynatrace pre calculated 'estimated' number of active users and sessions.&amp;nbsp; it is split between mobile &amp;amp; web, so you might need to show this data seperately.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is retrieved via the api v2 metrics (as above) and can do relative timestamps (last 5 min), so is much easier to handle and graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, good luck&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 23:20:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/185023#M2296</guid>
      <dc:creator>gopher</dc:creator>
      <dc:date>2022-04-18T23:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Live user session : What metrics?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/194343#M2493</link>
      <description>&lt;P&gt;Unfortunately,&lt;/P&gt;&lt;P&gt;The three metrics are only available for WEB applications.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:02:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Live-user-session-what-metrics/m-p/194343#M2493</guid>
      <dc:creator>Malaik</dc:creator>
      <dc:date>2022-09-13T14:02:01Z</dc:date>
    </item>
  </channel>
</rss>

