<?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: PRO TIP - Automatic grid layout on a dashboard with monaco in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284570#M1735</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41155"&gt;@36Krazyfists&lt;/a&gt;&amp;nbsp;I updated this post with Gen3 dashboard example - same approach, just you have to loop twice through the list.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 19:46:25 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2025-08-22T19:46:25Z</dc:date>
    <item>
      <title>PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284430#M1727</link>
      <description>&lt;P&gt;It's quite common to have dashboards display many tiles for individual components - for example multiple services. Luckily Monaco supports &lt;A href="https://docs.dynatrace.com/docs/shortlink/configuration-as-code-advanced-use-case" target="_blank" rel="noopener"&gt;Go Templating&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let's consider a Gen2 and a Gen3 dashboard where we want to easily generate a grid of tiles and just specify a set of parameters for each tile. It's just required to do some basic arithmetic to calculate the position of each tile and then wrap the tiles when we reach a defined width of the grid. Unfortunately,&amp;nbsp;not even basic arithmetic is possible in the gotemplate engine used by monaco, so we need to do it creatively by using printf and len functions&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I believe a sample is more than enough. I've put the examples in my GitHub repository of advanced configuration as code samples here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/juliusloman/dynatrace-configuration-as-code-advanced-samples" target="_self"&gt;https://github.com/juliusloman/dynatrace-configuration-as-code-advanced-samples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When deployed, we will get a nice grid of tiles on a dashboard, and we can add new services just in the YAML without touching the JSON:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julius_Loman_0-1755891747634.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29769iA000902FDEFB5E9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julius_Loman_0-1755891747634.png" alt="Julius_Loman_0-1755891747634.png" /&gt;&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="Julius_Loman_0-1755762910717.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29744i85ABB86CCD9E56FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julius_Loman_0-1755762910717.png" alt="Julius_Loman_0-1755762910717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 16:40:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284430#M1727</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-01-08T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284433#M1728</link>
      <description>&lt;P&gt;Elegant solution&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 08:16:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284433#M1728</guid>
      <dc:creator>lubrman</dc:creator>
      <dc:date>2025-08-21T08:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284543#M1731</link>
      <description>&lt;P&gt;For completeness, it’s even better to extract the metrics into YAML and then send them into JSON. This way, each tile can display different data. Such an approach would also allow using the tiles within a CI/CD pipeline, where, for example, during an application deployment a dashboard could be created based on the specific requirements of the application owner.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:37:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284543#M1731</guid>
      <dc:creator>lubrman</dc:creator>
      <dc:date>2025-08-22T12:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284548#M1732</link>
      <description>&lt;P&gt;Sure, this example above is the bare minimum for showcasing the possibilities. It's also possible to use different tile types of course, like service or host health.&lt;BR /&gt;&lt;BR /&gt;What I was unable to do was provide a &lt;A href="https://docs.dynatrace.com/docs/deliver/configuration-as-code/monaco/configuration/yaml-configuration#reference" target="_blank"&gt;reference&lt;/A&gt; to another Monaco configuration in the list. &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/30567"&gt;@nico_riedmann&lt;/a&gt;&amp;nbsp; any suggestions?&amp;nbsp; For example, to have the tag a reference to an auto-tag deployed by Monaco in the same project. Monaco does not seem to resolve dependencies in this parameter type.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:21:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284548#M1732</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-08-22T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284549#M1733</link>
      <description>&lt;P&gt;This is really cool.&amp;nbsp; I'd like to see something similar for modern dashboards too.&amp;nbsp; Now that RUM on Grail is available, we're starting to move more and more of our dashboards to the new framework, but I find the JSON not as friendly to read as gen 2 dashboards.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:24:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284549#M1733</guid>
      <dc:creator>36Krazyfists</dc:creator>
      <dc:date>2025-08-22T13:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284552#M1734</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41155"&gt;@36Krazyfists&lt;/a&gt;&amp;nbsp;certainly possible with Gen3 dashboards. I agree, the new dashboard JSONs are less friendly for editing&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:30:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284552#M1734</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-08-22T13:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: PRO TIP - Automatic grid layout on a dashboard with monaco</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284570#M1735</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41155"&gt;@36Krazyfists&lt;/a&gt;&amp;nbsp;I updated this post with Gen3 dashboard example - same approach, just you have to loop twice through the list.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 19:46:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Automatic-grid-layout-on-a-dashboard-with-monaco/m-p/284570#M1735</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-08-22T19:46:25Z</dc:date>
    </item>
  </channel>
</rss>

