<?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 Help with integration to &amp;quot;Custom database extension&amp;quot; in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Help-with-integration-to-quot-Custom-database-extension-quot/m-p/251883#M4902</link>
    <description>&lt;P&gt;Hello, I need help with the configuration of the yaml file. After integrating to the 2.0 extension for Postgres queries, the result is not as expected.&lt;/P&gt;
&lt;P&gt;To begin with, my select query is performed on several columns and its result is multiple records as in the image below.&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_3-1722282803453.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21443iB4EB18F7AA45B096/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_3-1722282803453.png" alt="tsagredo_3-1722282803453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my YAML file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_5-1722282937175.png" style="width: 272px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21445iEB42FCAE38AB9496/image-dimensions/272x432?v=v2" width="272" height="432" role="button" title="tsagredo_5-1722282937175.png" alt="tsagredo_5-1722282937175.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_6-1722282956843.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21446i89F48D639AE40E21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_6-1722282956843.png" alt="tsagredo_6-1722282956843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The metrics obtained are the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_8-1722283037822.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21447iF79693164D89646F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_8-1722283037822.png" alt="tsagredo_8-1722283037822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The need is to see all the records and not a single value (the result appears to be the sum of the number of records for the column).&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The "fantasy name" column does not show records.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_9-1722283123252.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21448iE0E8DD31D76CBC85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_9-1722283123252.png" alt="tsagredo_9-1722283123252.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What modifications should I make to my yaml file to create this type of records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 10:40:34 GMT</pubDate>
    <dc:creator>tsagredo</dc:creator>
    <dc:date>2024-07-30T10:40:34Z</dc:date>
    <item>
      <title>Help with integration to "Custom database extension"</title>
      <link>https://community.dynatrace.com/t5/Extensions/Help-with-integration-to-quot-Custom-database-extension-quot/m-p/251883#M4902</link>
      <description>&lt;P&gt;Hello, I need help with the configuration of the yaml file. After integrating to the 2.0 extension for Postgres queries, the result is not as expected.&lt;/P&gt;
&lt;P&gt;To begin with, my select query is performed on several columns and its result is multiple records as in the image below.&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_3-1722282803453.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21443iB4EB18F7AA45B096/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_3-1722282803453.png" alt="tsagredo_3-1722282803453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my YAML file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_5-1722282937175.png" style="width: 272px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21445iEB42FCAE38AB9496/image-dimensions/272x432?v=v2" width="272" height="432" role="button" title="tsagredo_5-1722282937175.png" alt="tsagredo_5-1722282937175.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_6-1722282956843.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21446i89F48D639AE40E21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_6-1722282956843.png" alt="tsagredo_6-1722282956843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The metrics obtained are the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_8-1722283037822.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21447iF79693164D89646F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_8-1722283037822.png" alt="tsagredo_8-1722283037822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The need is to see all the records and not a single value (the result appears to be the sum of the number of records for the column).&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The "fantasy name" column does not show records.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_9-1722283123252.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21448iE0E8DD31D76CBC85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tsagredo_9-1722283123252.png" alt="tsagredo_9-1722283123252.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What modifications should I make to my yaml file to create this type of records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:40:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Help-with-integration-to-quot-Custom-database-extension-quot/m-p/251883#M4902</guid>
      <dc:creator>tsagredo</dc:creator>
      <dc:date>2024-07-30T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with integration to "Custom database extension"</title>
      <link>https://community.dynatrace.com/t5/Extensions/Help-with-integration-to-quot-Custom-database-extension-quot/m-p/251900#M4903</link>
      <description>&lt;P&gt;Not exactly sure what the query in your yaml file is supposed to return since it seems to be different than the one you have in the first screenshot. However, here's a couple of considerations:&lt;/P&gt;&lt;P&gt;When you use &lt;EM&gt;ingest:&lt;/EM&gt; &lt;EM&gt;metric &lt;/EM&gt;in the yaml definition, you will be ingesting a &lt;STRONG&gt;metric timeseries &lt;/STRONG&gt;for each of your metric key you specify. As such, you need to make sure that whatever columns you specify there return numbers and not strings (those would be better used as dimension values).&lt;/P&gt;&lt;P&gt;In your query you are defining &lt;EM&gt;nombre_canal&lt;/EM&gt;, &lt;EM&gt;codigo_respuesta &lt;/EM&gt;and &lt;EM&gt;nombre_fantasia&lt;/EM&gt; as dimensions. I would guess that those don't really correspond to the values you want to have on a timeseries, but rather to dimensions.&lt;/P&gt;&lt;P&gt;Again, I'm guessing a bit here, but if you are trying to get &lt;EM&gt;cantidad&lt;/EM&gt; per &lt;EM&gt;nombre_canal, codigo_respuesta, nombre_fantasia &lt;/EM&gt;and &lt;EM&gt;stat_name&lt;/EM&gt; then it makes more sense to have &lt;EM&gt;cantidad&amp;nbsp;&lt;/EM&gt;as your only metric and all the other ones as dimensions (also, make sure that both the dimensions and the metrics you specify show as columns in the query. Right now, you seem to be missing &lt;EM&gt;stat_name&lt;/EM&gt; from your query).&lt;/P&gt;&lt;P&gt;Be aware though, that if you have a very high number of possible dimension values this approach can lead to a very high DDU consumption. If that's the case, then maybe it makes sense to ingest these records as logs instead and then use some DQL on a dashboard/notebook to do aggregations and analysis?&lt;/P&gt;&lt;P&gt;To ingest logs from an extension you simply have to specify &lt;EM&gt;ingest: logs &lt;/EM&gt;instead of &lt;EM&gt;ingest: metrics &lt;/EM&gt;and then define the &lt;EM&gt;attributes &lt;/EM&gt;instead of &lt;EM&gt;metrics &lt;/EM&gt;and &lt;EM&gt;dimensions&lt;/EM&gt;. If you download the official Postgres extension or Oracle extension from the Dynatrace Hub and ctrl+f the extension.yaml file for &lt;EM&gt;ingest: logs &lt;/EM&gt;you can find an example of how it's done (as of the time of writing this post).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 05:41:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Help-with-integration-to-quot-Custom-database-extension-quot/m-p/251900#M4903</guid>
      <dc:creator>TomásSeroteRoos</dc:creator>
      <dc:date>2024-07-30T05:41:35Z</dc:date>
    </item>
  </channel>
</rss>

