<?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: Copy dashboards between environments in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180693#M337</link>
    <description>&lt;P&gt;Hi Antonio&lt;BR /&gt;No, not directly.&lt;/P&gt;&lt;P&gt;In the json-editor you can directly edit the json for a dashboard and you can copy this from one environment into another.&lt;BR /&gt;For such tasks I use monaco where this is possible. See&lt;BR /&gt;&lt;A href="https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/blob/main/README.md" target="_blank"&gt;https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/blob/main/README.md&lt;/A&gt;&lt;BR /&gt;See also my post&lt;BR /&gt;&lt;A href="https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/discussions/522" target="_blank"&gt;https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/discussions/522&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In monaco you can use variables in the json for the dashboard. As soon as you need some more flexibility, a template engine integrated in monaco would help a lot.&lt;/P&gt;&lt;P&gt;For now, I use the jinja2 template engine yasha. I have a file *Vars.json with variable definitions like the names of hosts in an environment. Then I have a *.json.j2 with a jinja2 template to generate dashboard-json files with e.g. a dashboard tile for every host in the variable file and the position of the tile set correctly. Then I have a skript file yasha.sh with a loop to call a yasha command for all dashboards and templates to generate all dashboard-json files for all environments. And finally I can deploy the dashboards with monaco to all dynatrace environments.&lt;BR /&gt;As a starting point, you can interactively create a dashboard and then download it with monaco. You then can use the downloaded dashboard-json to create the jinja2-template and then to compare the template generated new dashboard-json with the downloaded one.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 11:29:04 GMT</pubDate>
    <dc:creator>matthias_dillie</dc:creator>
    <dc:date>2022-02-14T11:29:04Z</dc:date>
    <item>
      <title>Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/175637#M273</link>
      <description>&lt;P&gt;This tip comes from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.dynatrace.com/t5/Community-challenges/Take-the-quot-Knowledge-sharing-quot-challenge/td-p/9819" target="_self"&gt;Knowledge sharing challenge&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Author:&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6226"&gt;@JamesKitson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Copy dashboards between environments&lt;/H3&gt;
&lt;P&gt;You may already know that dashboards are represented in configuration as simple json files. These are what you work with when configuring them through the API. An update recently made it possible to work with this json directly in the UI.&lt;/P&gt;
&lt;P&gt;This makes it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;much&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;faster to copy dashboards between environments or to copy or modify some sections in bulk. You can simply copy a dashboard from your QA to Prod environment and change filters etc... instead of trying to replicate the dashboard tile by tile. There's also the standard tricks you can do with text in a text editor such as find and replacing text for example if you wanted to find all occurrences of 'qa' and replace it with 'prod.'&lt;/P&gt;
&lt;P&gt;Stuff like this had already been available through the API but with it in the UI you can make big changes in seconds&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;especially&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;if you keep configurations and conventions consistent across any environments you have.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/news/blog/manage-dashboards-more-efficiently-with-more-control-with-the-json-editor/" target="_blank" rel="noopener noreferrer"&gt;Manage dashboards more efficiently with the json editor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 13:04:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/175637#M273</guid>
      <dc:creator>Karolina_Linda</dc:creator>
      <dc:date>2021-11-10T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/175993#M287</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21724"&gt;@Karolina_Linda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the new version Dynatrace detect automatically the ENV ID and the Owner when import the Json in the new ENV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much useful.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:28:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/175993#M287</guid>
      <dc:creator>Malaik</dc:creator>
      <dc:date>2021-11-17T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180636#M334</link>
      <description>&lt;P&gt;Monaco can help here too. Download the dashboard definitions (json) with monaco and then deploy them to different environments.&lt;/P&gt;&lt;P&gt;I use this together with a template engine (yasha) to generate environment specific dashboards e.g. different number of tiles - one for each host in the environment - and then deploy them to the different environments. Setting permissions is still missing, so you have to set them in the gui.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 14:23:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180636#M334</guid>
      <dc:creator>matthias_dillie</dc:creator>
      <dc:date>2022-02-11T14:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180665#M335</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Can you tell us more about this tool?&lt;BR /&gt;Is it integrated with Dynatrace...&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 08:00:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180665#M335</guid>
      <dc:creator>Malaik</dc:creator>
      <dc:date>2022-02-12T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180668#M336</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/23195"&gt;@Malaik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose you are referring to the "json editor". It is integrated in the Dynatrace platform, and you can see more info here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/dashboards-and-charts/dashboards/dashboard-json" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/dashboards-and-charts/dashboards/dashboard-json&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 15:26:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180668#M336</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2022-02-13T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180693#M337</link>
      <description>&lt;P&gt;Hi Antonio&lt;BR /&gt;No, not directly.&lt;/P&gt;&lt;P&gt;In the json-editor you can directly edit the json for a dashboard and you can copy this from one environment into another.&lt;BR /&gt;For such tasks I use monaco where this is possible. See&lt;BR /&gt;&lt;A href="https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/blob/main/README.md" target="_blank"&gt;https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/blob/main/README.md&lt;/A&gt;&lt;BR /&gt;See also my post&lt;BR /&gt;&lt;A href="https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/discussions/522" target="_blank"&gt;https://github.com/dynatrace-oss/dynatrace-monitoring-as-code/discussions/522&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In monaco you can use variables in the json for the dashboard. As soon as you need some more flexibility, a template engine integrated in monaco would help a lot.&lt;/P&gt;&lt;P&gt;For now, I use the jinja2 template engine yasha. I have a file *Vars.json with variable definitions like the names of hosts in an environment. Then I have a *.json.j2 with a jinja2 template to generate dashboard-json files with e.g. a dashboard tile for every host in the variable file and the position of the tile set correctly. Then I have a skript file yasha.sh with a loop to call a yasha command for all dashboards and templates to generate all dashboard-json files for all environments. And finally I can deploy the dashboards with monaco to all dynatrace environments.&lt;BR /&gt;As a starting point, you can interactively create a dashboard and then download it with monaco. You then can use the downloaded dashboard-json to create the jinja2-template and then to compare the template generated new dashboard-json with the downloaded one.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 11:29:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180693#M337</guid>
      <dc:creator>matthias_dillie</dc:creator>
      <dc:date>2022-02-14T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180694#M338</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11732"&gt;@matthias_dillie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the Monaco approach is very good for automating dashboard management, including across several environments. This is related to the API approach that exists for a long time now. The UI approach is a little bit more recent, and it permits to start copying dashboards in the old copy&amp;amp;paste strategy, without the API knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:03:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/180694#M338</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2022-02-14T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/181736#M350</link>
      <description>&lt;P&gt;Yeah that's correct&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;, the UI approach is much more simpler than API and Monaco methods.&lt;/P&gt;&lt;P&gt;While Copy &amp;amp; paste Dynatrace auto detects the Env ID and other details to match up with the pasted environment, which is more hassle free. But what I see while pasting is, some metrics &amp;amp; filters doesn't cope up with the copy&amp;amp;paste mechanism(due to unavailability of metrics or syntax errors) and eventually Dashboard throws errors. We should be knowledgeable to edit/modify them to apply changes.&lt;/P&gt;&lt;P&gt;This goes more cautious with custom metric dashboards too.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:19:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/181736#M350</guid>
      <dc:creator>RajeshG</dc:creator>
      <dc:date>2022-03-03T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dashboards between environments</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/181745#M351</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/42183"&gt;@RajeshG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, if you have filters, you will have to adapt to new entities. Typically, a find&amp;amp;replace might help, but you do have to get to know where that information is. In any case, you can edit them in Data Explorer and change them; if you have a lot of dashboards, doing some find&amp;amp;replace or even automation, might help.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 09:59:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Copy-dashboards-between-environments/m-p/181745#M351</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2022-03-03T09:59:27Z</dc:date>
    </item>
  </channel>
</rss>

