<?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 Extension 2.0 - topology and screen issue in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/264197#M5626</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We have written the below extension 2.0 for oracle database where we are capturing custom metrices from the database by using queries. We are good with metrics and&amp;nbsp;&lt;SPAN&gt;sqlOracle part in&amp;nbsp; below code but getting issue while creating the custom device for that extension and also we are getting screen for this particular custom extension but we were not able to add or not able to see the custom device with in that screen.&lt;BR /&gt;&lt;BR /&gt;Please check the below code and guide us where we are lagging in the custom device creation and screen section.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Details:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;name: custom:sql-oracle.db.extension
version: "0.0.4"
minDynatraceVersion: "1.295.0"
author:
  name: Mr.Champ
metrics:
  - key: sql-oracle.oracle.exacc.tablespace.check.freespace
    metadata:
      displayName: Tablespace check
      description: Tablespace free space in GB
      unit: GigaByte
      sourceEntityType: sql:sql-oracle_oracle_exacc
      dimensions:
      - key: device
        displayName: Device
      - key: device.address
        displayName: Device address
      - key: device.name
        displayName: Device name
      - key: device.port
        displayName: Device port
sqlOracle:
  - group: Tablespace check
    featureSet: tablespace check
    interval:
      minutes: 5
    query: &amp;gt;       
      SELECT 
          a.tablespace_name,
          SUM(a.bytes)/1024/1024/1024 AS Allocated,
          SUM(b.bytes)/1024/1024/1024 AS Freespace,
          ROUND(SUM(b.bytes)/SUM(a.bytes)*100) AS "% Free"
      FROM 
          dba_data_files a
      LEFT JOIN 
          dba_free_space b 
      ON 
          a.tablespace_name = b.tablespace_name
      WHERE 
          a.tablespace_name NOT LIKE '%TTS%'
      GROUP BY 
          a.tablespace_name
      ORDER BY 
          4
    metrics:
      - key: sql-oracle.oracle.exacc.tablespace.check.freespace
        value: col:Freespace
        type: gauge
    dimensions:
      - key: tablespace.check.percentage.free
        value: col:% Free
      - key: tablespace.check.tablespace_name
        value: col:tablespace_name
      - key: tablespace.check.allocated
        value: col:Allocated
topology:
  types:
    - name: sql:sql-oracle_oracle_exacc
      displayName: Oracle Exacc DB host
      enabled: true
      rules:
        - idPattern: sql_sql-oracle_{device.address}
          sources:
            - sourceType: Metrics
              condition: $prefix(custom:sql-oracle.db.extension)
          attributes:
            - pattern: '{device.address}'
              key: dt.ip_addresses
              displayName: IP Addresses
            - pattern: '{device.name}'
              key: dt.dns_names
              displayName: DNS names
          requiredDimensions: []
          instanceNamePattern: Oracle Exacc DB server on {device.address}        

screens:
  - entityType: sql:sql-oracle_oracle_exacc
    detailsSettings:
      staticContent:
        showProblems: true
        showProperties: true
        showTags: true
        showGlobalFilter: true
        showAddTag: true
      layout:
        autoGenerate: true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11520"&gt;@Mike_L&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&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;</description>
    <pubDate>Tue, 03 Dec 2024 04:39:50 GMT</pubDate>
    <dc:creator>Sanket_Molavade</dc:creator>
    <dc:date>2024-12-03T04:39:50Z</dc:date>
    <item>
      <title>Extension 2.0 - topology and screen issue</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/264197#M5626</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We have written the below extension 2.0 for oracle database where we are capturing custom metrices from the database by using queries. We are good with metrics and&amp;nbsp;&lt;SPAN&gt;sqlOracle part in&amp;nbsp; below code but getting issue while creating the custom device for that extension and also we are getting screen for this particular custom extension but we were not able to add or not able to see the custom device with in that screen.&lt;BR /&gt;&lt;BR /&gt;Please check the below code and guide us where we are lagging in the custom device creation and screen section.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Details:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;name: custom:sql-oracle.db.extension
version: "0.0.4"
minDynatraceVersion: "1.295.0"
author:
  name: Mr.Champ
metrics:
  - key: sql-oracle.oracle.exacc.tablespace.check.freespace
    metadata:
      displayName: Tablespace check
      description: Tablespace free space in GB
      unit: GigaByte
      sourceEntityType: sql:sql-oracle_oracle_exacc
      dimensions:
      - key: device
        displayName: Device
      - key: device.address
        displayName: Device address
      - key: device.name
        displayName: Device name
      - key: device.port
        displayName: Device port
sqlOracle:
  - group: Tablespace check
    featureSet: tablespace check
    interval:
      minutes: 5
    query: &amp;gt;       
      SELECT 
          a.tablespace_name,
          SUM(a.bytes)/1024/1024/1024 AS Allocated,
          SUM(b.bytes)/1024/1024/1024 AS Freespace,
          ROUND(SUM(b.bytes)/SUM(a.bytes)*100) AS "% Free"
      FROM 
          dba_data_files a
      LEFT JOIN 
          dba_free_space b 
      ON 
          a.tablespace_name = b.tablespace_name
      WHERE 
          a.tablespace_name NOT LIKE '%TTS%'
      GROUP BY 
          a.tablespace_name
      ORDER BY 
          4
    metrics:
      - key: sql-oracle.oracle.exacc.tablespace.check.freespace
        value: col:Freespace
        type: gauge
    dimensions:
      - key: tablespace.check.percentage.free
        value: col:% Free
      - key: tablespace.check.tablespace_name
        value: col:tablespace_name
      - key: tablespace.check.allocated
        value: col:Allocated
topology:
  types:
    - name: sql:sql-oracle_oracle_exacc
      displayName: Oracle Exacc DB host
      enabled: true
      rules:
        - idPattern: sql_sql-oracle_{device.address}
          sources:
            - sourceType: Metrics
              condition: $prefix(custom:sql-oracle.db.extension)
          attributes:
            - pattern: '{device.address}'
              key: dt.ip_addresses
              displayName: IP Addresses
            - pattern: '{device.name}'
              key: dt.dns_names
              displayName: DNS names
          requiredDimensions: []
          instanceNamePattern: Oracle Exacc DB server on {device.address}        

screens:
  - entityType: sql:sql-oracle_oracle_exacc
    detailsSettings:
      staticContent:
        showProblems: true
        showProperties: true
        showTags: true
        showGlobalFilter: true
        showAddTag: true
      layout:
        autoGenerate: true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11520"&gt;@Mike_L&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&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;</description>
      <pubDate>Tue, 03 Dec 2024 04:39:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/264197#M5626</guid>
      <dc:creator>Sanket_Molavade</dc:creator>
      <dc:date>2024-12-03T04:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 - topology and screen issue</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/264201#M5627</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Please check the below extension UI and link created for the same.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Extension UI.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24982i5ACC977D5CBBFBBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Extension UI.png" alt="Extension UI.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link Created -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;https://domain.com/e/environment_id/ui/entity/list/sql:sql-oracle_oracle_exacc?gtf=-2h&amp;amp;gf=all&amp;amp;sessionId=sessionid&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 05:02:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/264201#M5627</guid>
      <dc:creator>Sanket_Molavade</dc:creator>
      <dc:date>2024-12-03T05:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 - topology and screen issue</title>
      <link>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/268948#M5888</link>
      <description>&lt;P&gt;Your metrics are not mapped to create the entity. You have stated this as your metric name:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sql-oracle.oracle.exacc.tablespace.check.freespace&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;While only metrics starting with this metric name will create the entity:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;condition: $prefix(custom:sql-oracle.db.extension)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2025 16:11:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Extension-2-0-topology-and-screen-issue/m-p/268948#M5888</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2025-01-31T16:11:56Z</dc:date>
    </item>
  </channel>
</rss>

