<?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 Change of units in metrics in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Change-of-units-in-metrics/m-p/267543#M5837</link>
    <description>&lt;P&gt;As part of Extension 2.0, I am monitoring JMX metrics generated by an application.&lt;/P&gt;&lt;P&gt;One of the metrics has the displayName:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DirectBufferPool Memory Used&lt;/STRONG&gt;, which is generated in bytes. However, within the extension, I would like to perform a conversion and display the metric in megabytes.&lt;/P&gt;&lt;P&gt;I have tried modifying the unit settings in the documentation, but none of the changes have produced the expected result. Instead, incorrect unit calculations occur. For example, when the base value is 30 million bytes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Conversion to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Megabytes&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;10 TB&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Conversion to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kilobytes&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;30 MB&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    - podskupina: java.nio:name=direct,*
      dotaz: java.nio:name=direct,*
      metriky:
      - klíč: java-nio.direcbufferpool.memory
        hodnota: atribut:Použitá paměť
        typ: měřidlo
 metricTableCards: []
- entityType: HOST
  podrobnosti Injekce:
  - typ: METRIC_TABLE
    klíč: metrictable-jmx-multiple_services
    podmínky:
    - metricAvailable|metric=dsfm:extension.status:filter(and(eq("dt.extension.name","custom:jmx.multiple_services"),in("dt.entity.host", entitySelector("entityId($ (entityId))))))|lastWrittenWithinDays=5
  metricTableCards:
    - displayName: DirecBufferPool Použitá paměť
      typ vizualizace: GRAPH_CHART
      graphChartConfig:
        naskládaný: falešný
        metriky:
        - metricSelector: java-nio.direcbufferpool.memory:splitBy()
metriky:
- klíč: java-nio.direcbufferpool.memory
  metadata:
    displayName: DirecBufferPool Použitá paměť
    popis: DirecBufferPool Memory Used
    jednotka: Byte
    sourceEntityType: instance_group_processu
    značky:
    - JMX&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Jan 2025 14:42:06 GMT</pubDate>
    <dc:creator>lubrman</dc:creator>
    <dc:date>2025-01-15T14:42:06Z</dc:date>
    <item>
      <title>Change of units in metrics</title>
      <link>https://community.dynatrace.com/t5/Extensions/Change-of-units-in-metrics/m-p/267543#M5837</link>
      <description>&lt;P&gt;As part of Extension 2.0, I am monitoring JMX metrics generated by an application.&lt;/P&gt;&lt;P&gt;One of the metrics has the displayName:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DirectBufferPool Memory Used&lt;/STRONG&gt;, which is generated in bytes. However, within the extension, I would like to perform a conversion and display the metric in megabytes.&lt;/P&gt;&lt;P&gt;I have tried modifying the unit settings in the documentation, but none of the changes have produced the expected result. Instead, incorrect unit calculations occur. For example, when the base value is 30 million bytes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Conversion to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Megabytes&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;10 TB&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Conversion to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Kilobytes&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;30 MB&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    - podskupina: java.nio:name=direct,*
      dotaz: java.nio:name=direct,*
      metriky:
      - klíč: java-nio.direcbufferpool.memory
        hodnota: atribut:Použitá paměť
        typ: měřidlo
 metricTableCards: []
- entityType: HOST
  podrobnosti Injekce:
  - typ: METRIC_TABLE
    klíč: metrictable-jmx-multiple_services
    podmínky:
    - metricAvailable|metric=dsfm:extension.status:filter(and(eq("dt.extension.name","custom:jmx.multiple_services"),in("dt.entity.host", entitySelector("entityId($ (entityId))))))|lastWrittenWithinDays=5
  metricTableCards:
    - displayName: DirecBufferPool Použitá paměť
      typ vizualizace: GRAPH_CHART
      graphChartConfig:
        naskládaný: falešný
        metriky:
        - metricSelector: java-nio.direcbufferpool.memory:splitBy()
metriky:
- klíč: java-nio.direcbufferpool.memory
  metadata:
    displayName: DirecBufferPool Použitá paměť
    popis: DirecBufferPool Memory Used
    jednotka: Byte
    sourceEntityType: instance_group_processu
    značky:
    - JMX&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jan 2025 14:42:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Change-of-units-in-metrics/m-p/267543#M5837</guid>
      <dc:creator>lubrman</dc:creator>
      <dc:date>2025-01-15T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change of units in metrics</title>
      <link>https://community.dynatrace.com/t5/Extensions/Change-of-units-in-metrics/m-p/267713#M5841</link>
      <description>&lt;P&gt;You can't change the metric itself since it is retrieved in Bytes&lt;BR /&gt;&lt;BR /&gt;What you can do is change the visualization in dashboards, alerts, etc, anywhere where you can use a metric selector by using the &lt;A href="https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#to-unit" target="_self"&gt;to Unit&lt;/A&gt; operation, converting Bytes to something else.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 01:10:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Change-of-units-in-metrics/m-p/267713#M5841</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2025-01-17T01:10:38Z</dc:date>
    </item>
  </channel>
</rss>

