<?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: Microsft SQL Server Extension - Best Practices in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/293753#M7025</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes, this issue is caused by the implementation by dynatrace. I raised a product idea for this yet i was told it is what it is. It connects always to master so any user dbs are simply not having their data gathered. You have to rely on disk monitoring for size.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2026 10:21:23 GMT</pubDate>
    <dc:creator>Gramblicka-DXC</dc:creator>
    <dc:date>2026-01-28T10:21:23Z</dc:date>
    <item>
      <title>Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287118#M6737</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently implementing a solution to monitor various Microsoft SQL Server Instances and Databases in a client. I'm currently having trouble with some metrics not having information about some databases. I was reading the documentation and i found this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2 id="com-dynatrace-extension-sql-server-blocks-4"&gt;Limitations&lt;/H2&gt;&lt;H3&gt;Aggregated metrics for database files&lt;/H3&gt;&lt;P class=""&gt;The two metrics below&lt;/P&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;sql-server.databases.file.usedSpace&lt;/LI&gt;&lt;LI&gt;sql-server.databases.file.emptySpace&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P class=""&gt;are only reported for the database the extension is currently connected to. This is due to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sys.allocation_units&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;only containing information about used pages of the database that is currently used inside the connection.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;That got me wondering about this part "are only reported for the database the extension is currently connected to".&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Now the question:&lt;/P&gt;&lt;P class=""&gt;Does that mean that if a certain instance has 30 databases, when defining the endpoint, instead of just having the instance defined and only 1 endpoint, i need to define 30 endpoints with each having its own database explicited?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks in advance,&lt;/P&gt;&lt;P class=""&gt;João&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 08:55:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287118#M6737</guid>
      <dc:creator>Joao1</dc:creator>
      <dc:date>2025-10-01T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287172#M6741</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You just need to define one endpoint, but you can see that metric only in database connected.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 06:54:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287172#M6741</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-10-02T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287177#M6742</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I understand what you're saying and that's what i currently have. But i'm missing data from some metrics.&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;If i want to have data from all databases (without missing metric data, and i also confirmed that the user has all the permissions needed (admin)), do i need to define a endpoint for each database, even if it belongs to the same instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the database is not defined in the endpoint, is the default one "master" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Joao&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 08:13:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287177#M6742</guid>
      <dc:creator>Joao1</dc:creator>
      <dc:date>2025-10-02T08:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287381#M6746</link>
      <description>&lt;P&gt;Update:&lt;BR /&gt;&lt;BR /&gt;I found another instance where it seems you have to be connected to a specific database if you want to retrieve data for Longest Queries. Documentation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;H3&gt;Top queries&lt;/H3&gt;&lt;H4&gt;How to enable?&lt;/H4&gt;&lt;P class=""&gt;Collection of top queries ordered by total duration can be enabled using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Queries&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;feature set.&lt;/P&gt;&lt;H4&gt;Prerequisites&lt;/H4&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;Query Store&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;must&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;be enabled on SQL Server instance.&lt;/LI&gt;&lt;LI&gt;The database from which queries are collected is determined by:&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Explicit database name specified in the endpoint for monitoring configuration; or&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Default database configured for the connected user."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;Note: Query Store is only available starting from Microsoft SQL Server 2016+. SQL Server 2022 has it enabled by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;So, i'm currently working on a automatism that will create in mass hundreds of endpoints (Each with its own database defined) in a single/multi monitoring configuration to check the ActiveGate performance and extension behaviour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Joao&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Oct 2025 23:08:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/287381#M6746</guid>
      <dc:creator>Joao1</dc:creator>
      <dc:date>2025-10-06T23:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289155#M6820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If possible, i need help with something related to the YAML of the extension. I was editing it for a custom extension using the same data source. I was trying to edit a query which is used for the database state, to get information for a specific database. My question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I created a variable with perItem: true&amp;nbsp;&lt;BR /&gt;so that i can define it in each endpoint, which is called:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;database&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Database Name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;perItem&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;this is the query:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;metrics&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;sql-server.databases.state&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;col:state&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;query&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;-&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AS database_name,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; state_desc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; recovery_model_desc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user_access_desc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is_auto_close_on,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISNULL(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATABASEPROPERTYEX(name, 'Updateability'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CASE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is_read_only&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'READ_WRITE'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'READ_ONLY'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) AS updateability&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.databases&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = 'var:database'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried it like that with 'var:database' and with ${var:database} and both didn't work. Does anyone know a way to dynamically put the information there?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Nov 2025 10:21:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289155#M6820</guid>
      <dc:creator>Joao1</dc:creator>
      <dc:date>2025-11-06T10:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289239#M6824</link>
      <description>&lt;P&gt;Does your &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/extension-yaml#variables" target="_self"&gt;variable&lt;/A&gt; definition have the 'vars' like this? I don't use in a query, but in my dimensions var:name works.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vars&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;: ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Nov 2025 15:37:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289239#M6824</guid>
      <dc:creator>jose_montanez</dc:creator>
      <dc:date>2025-11-07T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289241#M6825</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also working on the same extension, did anyone faced any "ERROR" like-&lt;SPAN&gt;Failed to assign monitoring configuration to ActiveGate. Reason: High system resources consumption detected for datasources (soft limit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Do we have to make any changed in the AG config file?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 16:05:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/289241#M6825</guid>
      <dc:creator>gsaharan</dc:creator>
      <dc:date>2025-11-07T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Microsft SQL Server Extension - Best Practices</title>
      <link>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/293753#M7025</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes, this issue is caused by the implementation by dynatrace. I raised a product idea for this yet i was told it is what it is. It connects always to master so any user dbs are simply not having their data gathered. You have to rely on disk monitoring for size.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 10:21:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Microsft-SQL-Server-Extension-Best-Practices/m-p/293753#M7025</guid>
      <dc:creator>Gramblicka-DXC</dc:creator>
      <dc:date>2026-01-28T10:21:23Z</dc:date>
    </item>
  </channel>
</rss>

