<?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 SQL Server Instance Offline Monitoring in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284506#M6672</link>
    <description>&lt;P&gt;Hello - We are trying to monitor SQL Server instances being offline via the Microsoft SQL Server Extension.&lt;BR /&gt;&lt;BR /&gt;As I can tell theres no easy metric for instance state. and the uptime does not seem to be 100% reliable. using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries state = sum(`sql-server.uptime`, default: 0), by: {instance, device.name}
| filter contains(instance, "HOST")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I see the uptime at 0 during a timeframe where our SQL Admin says there was no outage to the instance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could someone please point me in the right direction for SQL Instance monitoring? We cannot monitor services either since there are clustered servers where the instance is offline on one server but not the other.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 17:53:13 GMT</pubDate>
    <dc:creator>Troy</dc:creator>
    <dc:date>2025-08-21T17:53:13Z</dc:date>
    <item>
      <title>SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284506#M6672</link>
      <description>&lt;P&gt;Hello - We are trying to monitor SQL Server instances being offline via the Microsoft SQL Server Extension.&lt;BR /&gt;&lt;BR /&gt;As I can tell theres no easy metric for instance state. and the uptime does not seem to be 100% reliable. using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries state = sum(`sql-server.uptime`, default: 0), by: {instance, device.name}
| filter contains(instance, "HOST")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I see the uptime at 0 during a timeframe where our SQL Admin says there was no outage to the instance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could someone please point me in the right direction for SQL Instance monitoring? We cannot monitor services either since there are clustered servers where the instance is offline on one server but not the other.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 17:53:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284506#M6672</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-08-21T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284524#M6676</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have OneAgent installed also, you can monitor SQL OS Service is up and running.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 21:45:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284524#M6676</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2025-08-21T21:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284535#M6677</link>
      <description>&lt;P&gt;They have one agent but as mentioned this is a problem since some are clustered - meaning one server has it on while the other has it off. causing it to alert. so we would like to monitor the instance state itself.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 00:27:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284535#M6677</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-08-22T00:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284536#M6678</link>
      <description>&lt;P&gt;If you have "Always on" type of MSSQL cluster, then all replicas should be available (even not primary one), maybe access to non-primary replicas need to be set up.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-read-only-access-on-an-availability-replica-sql-server?view=sql-server-ver17" target="_blank"&gt;https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-read-only-access-on-an-availability-replica-sql-server?view=sql-server-ver17&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;How to monitor Always on is described in doc&amp;nbsp;&lt;A href="https://www.dynatrace.com/hub/detail/microsoft-sql-server-2/?query=mssql&amp;amp;filter=all" target="_blank"&gt;https://www.dynatrace.com/hub/detail/microsoft-sql-server-2/?query=mssql&amp;amp;filter=all&lt;/A&gt;&amp;nbsp;(check part named "Are there any special considerations when monitoring Always On clusters?")&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 09:08:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284536#M6678</guid>
      <dc:creator>rastislav_danis</dc:creator>
      <dc:date>2025-08-22T09:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284541#M6679</link>
      <description>&lt;P&gt;Thank you - I will take a look into this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:22:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/284541#M6679</guid>
      <dc:creator>Troy</dc:creator>
      <dc:date>2025-08-22T12:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Instance Offline Monitoring</title>
      <link>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/297816#M7196</link>
      <description>&lt;P&gt;Best way is to just keep sending any query that is supposed to give an answer. For me i used number of connected users. The entire point is that you aim this metric at the instance, if its clustered or not it doesnt matter as the extension cares whether the ip is correct (travels with clustered instance), the port and the instance name (if you use it for specific instances). Logic is as follows:&lt;/P&gt;&lt;P&gt;1. metric keeps queries the instance for number of connected users.&lt;/P&gt;&lt;P&gt;2. The answer itself doesnt matter, we only care that we get an answer. Even if you monitor the service the instance might be up from system point of view but be stuck internally.&lt;/P&gt;&lt;P&gt;3. Here comes the other part. In metric use a selector and tick "alert on missing data". If you stop getting answers it means that instance is unavailable and thats what matters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. yes, if you have a network outage you will get false alerts but that is inherent to any remote run monitoring type of setup.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 07:51:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/SQL-Server-Instance-Offline-Monitoring/m-p/297816#M7196</guid>
      <dc:creator>Gramblicka-DXC</dc:creator>
      <dc:date>2026-04-16T07:51:02Z</dc:date>
    </item>
  </channel>
</rss>

