<?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 Prometheus metrics topology in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Prometheus-metrics-topology/m-p/239298#M4179</link>
    <description>&lt;P&gt;I have created a custom extension using the Dynatrace Extensions VSCode app.&amp;nbsp; Everything is working as expected, when I scrape my metrics it is able to find all metrics and generate keys and values.&amp;nbsp; The issue I am having is that we have our metrics grouped by workflow types and status and I am unsure of how to build the topology into my yaml.&amp;nbsp; Is there documentation on how the topology is configured?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample metrics:&lt;/P&gt;&lt;PRE&gt;# HELP scaler_deployed_workflows_total Monitoring Scaler's health by tracking malfunctioning workflows.
# TYPE scaler_deployed_workflows_total gauge
scaler_deployed_workflows_total{status="active",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="batch",} 0.0
scaler_deployed_workflows_total{status="active",group="batch",} 28.0
scaler_deployed_workflows_total{status="active",group="system",} 8.0
scaler_deployed_workflows_total{status="inactive",group="system",} 0.0&lt;/PRE&gt;&lt;P&gt;How can I add the additional "groupings" for each metric?&amp;nbsp; When the ext is running in my environment it seems to only gather the first metric.&lt;/P&gt;&lt;P&gt;Sample yaml:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;prometheus&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;group&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;metrics&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;metrics&lt;/SPAN&gt;&lt;SPAN&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;scaler_deployed_workflows_total&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;metric:scaler_deployed_workflows_total&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;gauge&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 20:40:29 GMT</pubDate>
    <dc:creator>Jennifer</dc:creator>
    <dc:date>2024-03-07T20:40:29Z</dc:date>
    <item>
      <title>Prometheus metrics topology</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-metrics-topology/m-p/239298#M4179</link>
      <description>&lt;P&gt;I have created a custom extension using the Dynatrace Extensions VSCode app.&amp;nbsp; Everything is working as expected, when I scrape my metrics it is able to find all metrics and generate keys and values.&amp;nbsp; The issue I am having is that we have our metrics grouped by workflow types and status and I am unsure of how to build the topology into my yaml.&amp;nbsp; Is there documentation on how the topology is configured?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample metrics:&lt;/P&gt;&lt;PRE&gt;# HELP scaler_deployed_workflows_total Monitoring Scaler's health by tracking malfunctioning workflows.
# TYPE scaler_deployed_workflows_total gauge
scaler_deployed_workflows_total{status="active",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="on_demand",} 0.0
scaler_deployed_workflows_total{status="inactive",group="batch",} 0.0
scaler_deployed_workflows_total{status="active",group="batch",} 28.0
scaler_deployed_workflows_total{status="active",group="system",} 8.0
scaler_deployed_workflows_total{status="inactive",group="system",} 0.0&lt;/PRE&gt;&lt;P&gt;How can I add the additional "groupings" for each metric?&amp;nbsp; When the ext is running in my environment it seems to only gather the first metric.&lt;/P&gt;&lt;P&gt;Sample yaml:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;prometheus&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;group&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;metrics&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;metrics&lt;/SPAN&gt;&lt;SPAN&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;scaler_deployed_workflows_total&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;metric:scaler_deployed_workflows_total&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;gauge&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 20:40:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-metrics-topology/m-p/239298#M4179</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2024-03-07T20:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus metrics topology</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-metrics-topology/m-p/239384#M4188</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can add that as dimensions, for example:&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;prometheus:
  - group: metrics
    metrics:      
      - key: scaler_deployed_workflows_total
        value: metric:scaler_deployed_workflows_total
        type: gauge
    dimensions:
      - key: status
        value: label:status
      - key: group
        value: label:group&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2024 14:21:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-metrics-topology/m-p/239384#M4188</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2024-03-08T14:21:22Z</dc:date>
    </item>
  </channel>
</rss>

