<?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 Collect Metrics from a Prometheus Endpoint Using a Dynatrace Custom Extension in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/255306#M5116</link>
    <description>&lt;P&gt;I have created a custom Prometheus extension that collects metrics from an endpoint.&lt;/P&gt;
&lt;P&gt;The thing is, there's over 100 metrics there and I don't want to add every one of them manually to the json.&lt;/P&gt;
&lt;P&gt;So my question is, is there a way to collect all metrics from an endpoint? Or at least all metrics starting with a specific prefix (most of them have the same prefix)?&lt;/P&gt;
&lt;P&gt;I saw in this documentation&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/prometheus-extensions-reference#filters" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/prometheus-extensions-reference#filters&lt;/A&gt; that you can use "filter", however it seems to be in a different section of the json, and not where the metrics are, and seems metrics still need to be added regardless, if I'm understanding correctly.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 11:00:00 GMT</pubDate>
    <dc:creator>KVL</dc:creator>
    <dc:date>2026-01-26T11:00:00Z</dc:date>
    <item>
      <title>Collect Metrics from a Prometheus Endpoint Using a Dynatrace Custom Extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/255306#M5116</link>
      <description>&lt;P&gt;I have created a custom Prometheus extension that collects metrics from an endpoint.&lt;/P&gt;
&lt;P&gt;The thing is, there's over 100 metrics there and I don't want to add every one of them manually to the json.&lt;/P&gt;
&lt;P&gt;So my question is, is there a way to collect all metrics from an endpoint? Or at least all metrics starting with a specific prefix (most of them have the same prefix)?&lt;/P&gt;
&lt;P&gt;I saw in this documentation&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/prometheus-extensions-reference#filters" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/prometheus-extensions-reference#filters&lt;/A&gt; that you can use "filter", however it seems to be in a different section of the json, and not where the metrics are, and seems metrics still need to be added regardless, if I'm understanding correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 11:00:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/255306#M5116</guid>
      <dc:creator>KVL</dc:creator>
      <dc:date>2026-01-26T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all metrics from an endpoint with custom prometheus extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/255312#M5117</link>
      <description>&lt;P&gt;&amp;nbsp;Extensions 2.0 must have metrics defined explicitly. Use the VS Code extension where you have &lt;A href="https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/development_assistance/#prometheus" target="_self"&gt;development assistance&lt;/A&gt; which allows you to add the metrics automatically:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julius_Loman_0-1725959645106.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22266iE3EB2629BABC4C8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julius_Loman_0-1725959645106.png" alt="Julius_Loman_0-1725959645106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please follow the lightbulb icon for assistance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Otherwise scraping all metrics by a filter is only available in k8s environments where the Dynatrace Operator can scrape metrics from Prometheus exporters in your application pods.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 09:17:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/255312#M5117</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-09-10T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting all metrics from an endpoint with custom prometheus extension</title>
      <link>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/270529#M5962</link>
      <description>&lt;P&gt;Were you able to get the labels from the Prometheus metrics?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:03:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Collect-Metrics-from-a-Prometheus-Endpoint-Using-a-Dynatrace/m-p/270529#M5962</guid>
      <dc:creator>danijela</dc:creator>
      <dc:date>2025-02-20T13:03:23Z</dc:date>
    </item>
  </channel>
</rss>

