<?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 Custom Prometheus ActiveGate plugin in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Custom-Prometheus-ActiveGate-plugin/m-p/186279#M2191</link>
    <description>&lt;P&gt;I created a custom Prometheus ActiveGate plugin where we currently do a call to an endpoint to get a list of metrics. This is currently working and we now want to change it to do a call to the prometheus endpoint api based on a query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the extensions.yaml file you define the specific metrics you want to capture based on the list of metrics you get from calling the API or an endpoint. For testing purposes we did define two static metrics we wanted to capture to see if the integration did work:&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;LI-CODE lang="markup"&gt; dimensions:
      - key: go
        value: const:go
        metrics:
          - key: custom.extension.prometheus-go.global.go_threads
            value: metric:go_threads
            type: count
          - key: custom.extension.prometheus-go.global.go_memstats_sys_bytes
            value: metric:go_memstats_sys_bytes
            type: count&lt;/LI-CODE&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;But now we want to scrape specific metrics or all metrics (since there are more than 300+) which are returned when executing the specific query call to the Prometheus API. Is there some way to dynamically do this and if so how?&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 10:56:35 GMT</pubDate>
    <dc:creator>Bouke</dc:creator>
    <dc:date>2023-05-18T10:56:35Z</dc:date>
    <item>
      <title>Custom Prometheus ActiveGate plugin</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-Prometheus-ActiveGate-plugin/m-p/186279#M2191</link>
      <description>&lt;P&gt;I created a custom Prometheus ActiveGate plugin where we currently do a call to an endpoint to get a list of metrics. This is currently working and we now want to change it to do a call to the prometheus endpoint api based on a query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the extensions.yaml file you define the specific metrics you want to capture based on the list of metrics you get from calling the API or an endpoint. For testing purposes we did define two static metrics we wanted to capture to see if the integration did work:&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;LI-CODE lang="markup"&gt; dimensions:
      - key: go
        value: const:go
        metrics:
          - key: custom.extension.prometheus-go.global.go_threads
            value: metric:go_threads
            type: count
          - key: custom.extension.prometheus-go.global.go_memstats_sys_bytes
            value: metric:go_memstats_sys_bytes
            type: count&lt;/LI-CODE&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;But now we want to scrape specific metrics or all metrics (since there are more than 300+) which are returned when executing the specific query call to the Prometheus API. Is there some way to dynamically do this and if so how?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 10:56:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-Prometheus-ActiveGate-plugin/m-p/186279#M2191</guid>
      <dc:creator>Bouke</dc:creator>
      <dc:date>2023-05-18T10:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Prometheus Activegate plugin</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-Prometheus-ActiveGate-plugin/m-p/186445#M2197</link>
      <description>&lt;P&gt;No unfortunately not, as the metrics have to be defined during extension creation/setup.&lt;/P&gt;&lt;P&gt;You can only dynamically create dimensions for a metric, but even there the dimension has to be setup during extension creating and you can only add more instances of a dimension dynamically.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:14:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-Prometheus-ActiveGate-plugin/m-p/186445#M2197</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-05-13T08:14:09Z</dc:date>
    </item>
  </channel>
</rss>

