<?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 Problems with query results extension 2.0 in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Problems-with-query-results-extension-2-0/m-p/253839#M5007</link>
    <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I have two queries with a warning message in the log after performing the integration, for this reason I cannot see the metrics in dynatrace.&lt;/P&gt;&lt;P&gt;El mensaje es el siguiente:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"While polling for endpoint &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;136&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;51&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;5432&lt;/SPAN&gt;&lt;SPAN&gt;:mc_db query have failed: Query &lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, Query &lt;/SPAN&gt;&lt;SPAN class=""&gt;4"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_0-1724260606492.png" style="width: 671px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21907i59720E3AE41FEFE7/image-dimensions/671x249?v=v2" width="671" height="249" role="button" title="tsagredo_0-1724260606492.png" alt="tsagredo_0-1724260606492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't find the error in the yaml code&lt;/P&gt;&lt;P&gt;This is the section dedicated to query 4, it has problems&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_1-1724260975270.png" style="width: 532px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21908iA2C0E3F259B057C8/image-dimensions/532x649?v=v2" width="532" height="649" role="button" title="tsagredo_1-1724260975270.png" alt="tsagredo_1-1724260975270.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_2-1724261085846.png" style="width: 545px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21909i6F5F7D6776138909/image-dimensions/545x589?v=v2" width="545" height="589" role="button" title="tsagredo_2-1724261085846.png" alt="tsagredo_2-1724261085846.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_3-1724261144412.png" style="width: 549px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21910i864FABB03E10503C/image-dimensions/549x364?v=v2" width="549" height="364" role="button" title="tsagredo_3-1724261144412.png" alt="tsagredo_3-1724261144412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 17:29:31 GMT</pubDate>
    <dc:creator>tsagredo</dc:creator>
    <dc:date>2024-08-21T17:29:31Z</dc:date>
    <item>
      <title>Problems with query results extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Problems-with-query-results-extension-2-0/m-p/253839#M5007</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I have two queries with a warning message in the log after performing the integration, for this reason I cannot see the metrics in dynatrace.&lt;/P&gt;&lt;P&gt;El mensaje es el siguiente:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"While polling for endpoint &lt;/SPAN&gt;&lt;SPAN class=""&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;136&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;51&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;5432&lt;/SPAN&gt;&lt;SPAN&gt;:mc_db query have failed: Query &lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, Query &lt;/SPAN&gt;&lt;SPAN class=""&gt;4"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_0-1724260606492.png" style="width: 671px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21907i59720E3AE41FEFE7/image-dimensions/671x249?v=v2" width="671" height="249" role="button" title="tsagredo_0-1724260606492.png" alt="tsagredo_0-1724260606492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't find the error in the yaml code&lt;/P&gt;&lt;P&gt;This is the section dedicated to query 4, it has problems&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsagredo_1-1724260975270.png" style="width: 532px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21908iA2C0E3F259B057C8/image-dimensions/532x649?v=v2" width="532" height="649" role="button" title="tsagredo_1-1724260975270.png" alt="tsagredo_1-1724260975270.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_2-1724261085846.png" style="width: 545px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21909i6F5F7D6776138909/image-dimensions/545x589?v=v2" width="545" height="589" role="button" title="tsagredo_2-1724261085846.png" alt="tsagredo_2-1724261085846.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_3-1724261144412.png" style="width: 549px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21910i864FABB03E10503C/image-dimensions/549x364?v=v2" width="549" height="364" role="button" title="tsagredo_3-1724261144412.png" alt="tsagredo_3-1724261144412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 17:29:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Problems-with-query-results-extension-2-0/m-p/253839#M5007</guid>
      <dc:creator>tsagredo</dc:creator>
      <dc:date>2024-08-21T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with query results extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Problems-with-query-results-extension-2-0/m-p/254972#M5100</link>
      <description>&lt;P&gt;Can you show us some examples of the result of this query?&lt;/P&gt;&lt;P&gt;As I am seeing, you are storing all the columns results as metrics, but they seems to be dimensions instead.&lt;/P&gt;&lt;P&gt;Remember that metrics can only receive numeric values.&lt;/P&gt;&lt;P&gt;If you try to store a metric value as string, it will fail.&lt;/P&gt;&lt;P&gt;Also, the dimensions seems odd, they should be "simple", but you are just replicating the metric names for those.&lt;/P&gt;&lt;P&gt;Imaging that you want to display the count (cantidad) of something, you would do like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; - group: Query 4
    featureSet: mon_grandes_comercios
    interval:
      minutes: 5
	ingest: metrics
    timeout: "60"
    query: &amp;gt;
        SELECT columns from table 
    dimensions:
        - key: "tx_nombre_canal"
          value: "col:tx_nombre_canal"
        - key: "tx_codigo_respuesta"
          value: "col:tx_codigo_respuesta"
        ...
		- key: "numero_terminal"
		  value: "col:numero_terminal"
    metrics:
      - key: my.postgresql.poc.mom_grandes_comercios.cantidad
        value: col:cantidad&lt;/LI-CODE&gt;&lt;P&gt;This way, in the same metric, you would be able to use the dimensions to filter by name, message, response code, etc. and have the quantity as result.&lt;/P&gt;&lt;P&gt;Try and let us know.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:51:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Problems-with-query-results-extension-2-0/m-p/254972#M5100</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-09-04T20:51:38Z</dc:date>
    </item>
  </channel>
</rss>

