<?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 Re: Prometheus Extension 2.0 best practices in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/265598#M5708</link>
    <description>&lt;P&gt;For question 1 and 2, I think you propose a good system for them.&lt;/P&gt;
&lt;P&gt;As for 3, you can always download the YAML's of existing extensions from the Dynatrace hub and have a look. the f5 contain most functionality. Here's how it's done as soon as the value is added as a dimension to the metric line:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;topology:
  types:
    # Generic Network Types
    - name: network:device
      enabled: true
      displayName: Network device
      rules:
        - idPattern: network_device_{device.address}
          instanceNamePattern: "{instance.name}"
          iconPattern: f5
          sources:
            - sourceType: Metrics
              condition: $eq(com.dynatrace.extension.f5.bigip.sys.uptime)
          requiredDimensions:
            - key: instance.systemname
          attributes:
            - key: devMonitoringMode
              displayName: Monitoring mode
              pattern: "{monitoring.mode}"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 18 Dec 2024 08:57:23 GMT</pubDate>
    <dc:creator>Mike_L</dc:creator>
    <dc:date>2024-12-18T08:57:23Z</dc:date>
    <item>
      <title>Prometheus Extension 2.0 best practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/260644#M5432</link>
      <description>&lt;P&gt;Hi fellow Dynatracers,&lt;/P&gt;
&lt;P&gt;I am currently writing an extension for scraping a prometheus endpoint of an appliance. This is a virtual appliance that is under update control of the supplier.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Coding&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is best practice for the extension name (e.g. biz.ictcore.&amp;lt;suppliername&amp;gt;.&amp;lt;supplierProductname&amp;gt;) to use safe namespaces (ictcore.biz is my domain)?&lt;/LI&gt;
&lt;LI&gt;What is best practice for the metrics naming (&amp;lt;suppliername&amp;gt;.&amp;lt;supplierProductname&amp;gt;.&amp;lt;original prometheusMetricname&amp;gt;), to avoid clashes?&lt;/LI&gt;
&lt;LI&gt;This specific Prometheus reply also contains some static values, like a build_info metric. How could I put this information into &lt;STRONG&gt;attributes&lt;/STRONG&gt; for my topology, so that it gets visible in the &lt;STRONG&gt;properties&lt;/STRONG&gt; (like I already put in some other info in properties)?
&lt;PRE&gt;# HELP node_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which node_exporter was built, and the goos and goarch for the build.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;example for&amp;nbsp;&amp;lt;suppliername&amp;gt;.&amp;lt;supplierProductname&amp;gt; could be paloalto.cortexxdr or f5.bigip ... etc.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 12:32:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/260644#M5432</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2024-10-25T12:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus Extension 2.0 best practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/264376#M5642</link>
      <description>&lt;P&gt;Anyone has an idea on how to get e.g. those attributes from a "static" metric? The other stuff I can just decide myself, for those questions I was only hoping for additional insights from fellow-dynatracers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 13:03:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/264376#M5642</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2024-12-04T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus Extension 2.0 best practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/265598#M5708</link>
      <description>&lt;P&gt;For question 1 and 2, I think you propose a good system for them.&lt;/P&gt;
&lt;P&gt;As for 3, you can always download the YAML's of existing extensions from the Dynatrace hub and have a look. the f5 contain most functionality. Here's how it's done as soon as the value is added as a dimension to the metric line:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;topology:
  types:
    # Generic Network Types
    - name: network:device
      enabled: true
      displayName: Network device
      rules:
        - idPattern: network_device_{device.address}
          instanceNamePattern: "{instance.name}"
          iconPattern: f5
          sources:
            - sourceType: Metrics
              condition: $eq(com.dynatrace.extension.f5.bigip.sys.uptime)
          requiredDimensions:
            - key: instance.systemname
          attributes:
            - key: devMonitoringMode
              displayName: Monitoring mode
              pattern: "{monitoring.mode}"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Dec 2024 08:57:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/265598#M5708</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2024-12-18T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus Extension 2.0 best practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/269065#M5894</link>
      <description>&lt;P&gt;Took me little longer to put some focus on this, but it "works like a charm", thank you very much for this....!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 13:16:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Prometheus-Extension-2-0-best-practices/m-p/269065#M5894</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-02-03T13:16:05Z</dc:date>
    </item>
  </channel>
</rss>

