<?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: Set custom value in synthetic and show it in Dashboards in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175199#M1922</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/45731"&gt;@george_azzam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/http-monitor-pre-post-script#pre-execution" target="_blank" rel="noopener"&gt;Pre-execution script methods&lt;/A&gt;&amp;nbsp;&lt;SPAN&gt;request.addHeader(key,value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 08:33:34 GMT</pubDate>
    <dc:creator>Yosi_Neuman</dc:creator>
    <dc:date>2021-11-01T08:33:34Z</dc:date>
    <item>
      <title>Set custom value in synthetic and show it in dashboards</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175198#M1921</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to be able to set a key-value inside a synthetic script, and then be able to see this value inside a dashboard.&lt;/P&gt;
&lt;P&gt;This should be a custom key-value that I can calculate during the synthetic script run, set it as a (maybe global) key-value, and when opening a dashboard the up-to-date value should be shown.&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;
&lt;P&gt;We work with NewRelic, and we consider moving to Dynatrace, In NewRelic we could easily do this operation by using $util.insights.set(Key, Value); and then read the value inside the dashboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks very much.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 11:03:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175198#M1921</guid>
      <dc:creator>george_azzam</dc:creator>
      <dc:date>2023-05-31T11:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set custom value in synthetic and show it in Dashboards</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175199#M1922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/45731"&gt;@george_azzam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/http-monitor-pre-post-script#pre-execution" target="_blank" rel="noopener"&gt;Pre-execution script methods&lt;/A&gt;&amp;nbsp;&lt;SPAN&gt;request.addHeader(key,value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 08:33:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175199#M1922</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2021-11-01T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set custom value in synthetic and show it in Dashboards</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175200#M1923</link>
      <description>&lt;P&gt;But how can I fetch this data to a Metric inside the dashboard ?!&lt;/P&gt;&lt;P&gt;For example I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;request.addHeader("ScansCount", "8765");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can&amp;nbsp; I show the "ScansCount" value/avg/sum/etc inside a metric in a dashboard?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-- EDIT --&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We work on Clickpath scripts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6931"&gt;@Yosi_Neuman&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:50:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175200#M1923</guid>
      <dc:creator>george_azzam</dc:creator>
      <dc:date>2021-11-01T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set custom value in synthetic and show it in Dashboards</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175201#M1924</link>
      <description>&lt;P&gt;For that you will need to collect the information from server side with &lt;A href="https://www.dynatrace.com/support/help/shortlink/request-attributes-web-requests" target="_blank" rel="noopener"&gt;request attribute&lt;/A&gt;&amp;nbsp;and &lt;A href="https://www.dynatrace.com/support/help/shortlink/calculated-service-metric" target="_blank" rel="noopener"&gt;calculated metrics&lt;/A&gt;&amp;nbsp;then you will be able to chart your metrics with &lt;A href="https://www.dynatrace.com/support/help/shortlink/explorer" target="_blank" rel="noopener"&gt;data explorer&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:55:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Set-custom-value-in-synthetic-and-show-it-in-dashboards/m-p/175201#M1924</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2021-11-01T09:55:29Z</dc:date>
    </item>
  </channel>
</rss>

