<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Monitor Metrics</title>
	<atom:link href="http://sqlmonitormetrics.red-gate.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlmonitormetrics.red-gate.com</link>
	<description>Custom metrics to use in SQL Monitor</description>
	<lastBuildDate>Wed, 15 May 2013 16:15:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Job overran</title>
		<link>http://sqlmonitormetrics.red-gate.com/job-overran/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=job-overran</link>
		<comments>http://sqlmonitormetrics.red-gate.com/job-overran/#comments</comments>
		<pubDate>Wed, 08 May 2013 11:59:20 +0000</pubDate>
		<dc:creator>SQL Monitor Team</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1698</guid>
		<description><![CDATA[This metric tells you whether a specific SQL Agent job that runs at exactly the same time every day has overrun its expected duration. <a href="http://sqlmonitormetrics.red-gate.com/job-overran/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric tells you if a specific SQL Server Agent job that runs at the same time every day has overrun. The metric is useful when a job can have negative effects on other processes if it overruns.</p>
<p>For example, you may have a series of consecutive jobs that run for 1 minute each, starting at 9am. It’s important for the first job to finish by 9:01, so the second one can begin, and so on. If the job runs for longer than expected, an alert is raised.</p>
<p><strong>Important:</strong> You&#8217;ll need to edit the T-SQL with the job&#8217;s name and the expected start and finish hour and minute. In this query, the job is called &#8216;TestJob&#8217;, it starts at 17:00, and it should finish by 17:02.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/job-overran/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data not yet sent to the mirror</title>
		<link>http://sqlmonitormetrics.red-gate.com/data-not-yet-sent-to-the-mirror/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=data-not-yet-sent-to-the-mirror</link>
		<comments>http://sqlmonitormetrics.red-gate.com/data-not-yet-sent-to-the-mirror/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 16:02:16 +0000</pubDate>
		<dc:creator>Grant Fritchey</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mirroring]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=2187</guid>
		<description><![CDATA[This metric tracks the amount of data waiting to be sent from the principal database to the mirror. This is known as the send queue. <a href="http://sqlmonitormetrics.red-gate.com/data-not-yet-sent-to-the-mirror/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric is described in <a href="https://www.simple-talk.com/sql/sql-tools/custom-metrics-for-monitoring-database-mirroring/">Grant Fritchey’s Custom Metrics for monitoring mirroring article on Simple Talk</a>.</p>
<p>Use this metric to track the amount of data waiting to be sent from the principal database to the mirror. This is also known as the send queue. For more details, see <a title="Database Mirroring Sessions (MSDN article)" href="http://msdn.microsoft.com/en-us/library/ms189901%28v=sql.105%29.aspx">Database Mirroring Sessions (MSDN article)</a>.</p>
<p><strong>Important setup information</strong></p>
<p>Before you can start using this metric, you need to:</p>
<ol>
<li>Run the following Microsoft procedure on the msdb database you&#8217;ll use in the custom metric:
<pre class="brush: sql; title: ; notranslate">USE msdb;
GO
EXEC sp_dbmmonitoraddmonitoring;
GO
</pre>
<p>This sets up a SQL Agent job that periodically updates information about the mirrored databases on your server. For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms403582.aspx">http://msdn.microsoft.com/en-us/library/ms403582.aspx</a>.</li>
<li>Make sure the SQL Agent is configured and running on the server. Then you can retrieve information using the sp_dbmmonitorresults procedure.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/data-not-yet-sent-to-the-mirror/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Current status of mirroring</title>
		<link>http://sqlmonitormetrics.red-gate.com/current-status-of-mirroring/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=current-status-of-mirroring</link>
		<comments>http://sqlmonitormetrics.red-gate.com/current-status-of-mirroring/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 16:01:33 +0000</pubDate>
		<dc:creator>Grant Fritchey</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mirroring]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1623</guid>
		<description><![CDATA[Mirroring systems can go offline. This metric returns the current state of the mirroring system so you’ll know from a single value what the current status of your mirroring environment is. <a href="http://sqlmonitormetrics.red-gate.com/current-status-of-mirroring/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric is described in <a href="https://www.simple-talk.com/sql/sql-tools/custom-metrics-for-monitoring-database-mirroring/">Grant Fritchey’s Custom Metrics for monitoring mirroring article on Simple Talk</a>.</p>
<p>With this metric installed, you&#8217;ll know from a single value what the current status of your mirroring system is. It can be used to check for changes in the environment, for example, if a mirror goes from synchronized to pending failover, or if the there’s an error situation that causes the server to disconnect.</p>
<p><strong>Important setup information</strong></p>
<p>Before you can start using this metric, you need to:</p>
<ol>
<li>Run the following Microsoft procedure on the msdb database you&#8217;ll use in the custom metric:
<pre class="brush: sql; title: ; notranslate">USE msdb;
GO
EXEC sp_dbmmonitoraddmonitoring;
GO
</pre>
<p>This sets up a SQL Agent job that periodically updates information about the mirrored databases on your server. For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms403582.aspx">http://msdn.microsoft.com/en-us/library/ms403582.aspx</a>.</li>
<li>Make sure the SQL Agent is configured and running on the server. Then you can retrieve information using the sp_dbmmonitorresults procedure.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/current-status-of-mirroring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Current role of a database</title>
		<link>http://sqlmonitormetrics.red-gate.com/current-role-of-a-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=current-role-of-a-database</link>
		<comments>http://sqlmonitormetrics.red-gate.com/current-role-of-a-database/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 15:57:19 +0000</pubDate>
		<dc:creator>Grant Fritchey</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mirroring]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=2133</guid>
		<description><![CDATA[This metric allows you to keep track of the role of a given database within your mirroring set up. The single value returned tells you whether the database is the principal or the mirror. <a href="http://sqlmonitormetrics.red-gate.com/current-role-of-a-database/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric is described in <a href="https://www.simple-talk.com/sql/sql-tools/custom-metrics-for-monitoring-database-mirroring/">Grant Fritchey’s Custom Metrics for monitoring mirroring article on Simple Talk</a>.</p>
<p>The metric returns the current role of a given database within your mirroring set up. The single value returned tells you whether the database is the principal or the mirror, which is important information if you always want one server to act as the principal.</p>
<p><strong>Important setup information</strong></p>
<p>Before you can start using this metric, you need to:</p>
<ol>
<li>Run the following Microsoft procedure on the msdb database you&#8217;ll use in the custom metric:
<pre class="brush: sql; title: ; notranslate">USE msdb;
GO
EXEC sp_dbmmonitoraddmonitoring;
GO
</pre>
<p>This sets up a SQL Agent job that periodically updates information about the mirrored databases on your server. For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms403582.aspx">http://msdn.microsoft.com/en-us/library/ms403582.aspx</a>.</li>
<li>Make sure the SQL Agent is configured and running on the server. Then you can retrieve information using the sp_dbmmonitorresults procedure.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/current-role-of-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Status of the witness</title>
		<link>http://sqlmonitormetrics.red-gate.com/status-of-the-witness/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=status-of-the-witness</link>
		<comments>http://sqlmonitormetrics.red-gate.com/status-of-the-witness/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 15:56:05 +0000</pubDate>
		<dc:creator>Grant Fritchey</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mirroring]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=2175</guid>
		<description><![CDATA[This metric returns a single value that tells you whether the witness is connected, disconnected or unknown. Knowing if it is offline can be as important as knowing if your mirrored databases are available. <a href="http://sqlmonitormetrics.red-gate.com/status-of-the-witness/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric is described in <a href="https://www.simple-talk.com/sql/sql-tools/custom-metrics-for-monitoring-database-mirroring/">Grant Fritchey’s Custom Metrics for monitoring mirroring article on Simple Talk</a>.</p>
<p>It&#8217;s best practice to set up a witness that manages connections to your mirrored databases. The witness is a SQL Server instance that ensures you maintain uptime, so knowing if it is offline can be as important as knowing if your mirrored databases are available. This metric returns a single value that tells you whether the witness is connected, disconnected or unknown. For more details about witness servers, see <a href="http://technet.microsoft.com/en-us/library/ms175191.aspx">Database Mirroring Witness (Microsoft TechNet article)</a>.</p>
<p><strong>Important setup information</strong></p>
<p>Before you can start using this metric, you need to:</p>
<ol>
<li>Run the following Microsoft procedure on the msdb database you&#8217;ll use in the custom metric:
<pre class="brush: sql; title: ; notranslate">USE msdb;
GO
EXEC sp_dbmmonitoraddmonitoring;
GO
</pre>
<p>This sets up a SQL Agent job that periodically updates information about the mirrored databases on your server. For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms403582.aspx">http://msdn.microsoft.com/en-us/library/ms403582.aspx</a>.</li>
<li>Make sure the SQL Agent is configured and running on the server. Then you can retrieve information using the sp_dbmmonitorresults procedure.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/status-of-the-witness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Long-running job</title>
		<link>http://sqlmonitormetrics.red-gate.com/long-running-job/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=long-running-job</link>
		<comments>http://sqlmonitormetrics.red-gate.com/long-running-job/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 09:06:18 +0000</pubDate>
		<dc:creator>SQL Monitor Team</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1800</guid>
		<description><![CDATA[This metric returns the longest running instance of the named job in the last hour. By creating multiple custom metrics from this example – one for each job you're interested in – you can specify alert thresholds for each job individually. <a href="http://sqlmonitormetrics.red-gate.com/long-running-job/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>SQL Monitor’s Job duration unusual alert is a powerful tool for keeping track of most jobs in your SQL Server environment. It works by comparing the running time of any job instance against the median for that job, and identifying when a variation in the job duration could hint at a performance problem. However, if your environment contains big jobs whose durations vary by several orders of magnitudes, it can be tricky to specify what kind of variation is expected and what would be unusual. For these cases, it is possible to go beyond the functionality of the built-in alert with a custom metric.</p>
<p>This metric returns the longest running instance of the named job in the last hour. In the example, the job of interest is called &#8216;My_long_running_job&#8217;, so you&#8217;ll need to replace this with the job in your environment that you want to target.</p>
<p>By creating multiple custom metrics from this example – one for each job you&#8217;re interested in – you can specify alert thresholds for each job individually. Alert thresholds are absolute rather than relative values, which may help cover a few scenarios that the built-in alert is not suited for.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/long-running-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number of queries running</title>
		<link>http://sqlmonitormetrics.red-gate.com/number-of-queries-running/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=number-of-queries-running</link>
		<comments>http://sqlmonitormetrics.red-gate.com/number-of-queries-running/#comments</comments>
		<pubDate>Wed, 13 Mar 2013 08:19:01 +0000</pubDate>
		<dc:creator>Tim Hidalgo</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1723</guid>
		<description><![CDATA[This metric counts how many queries are running, and alerts you if the value goes above a defined threshold.  <a href="http://sqlmonitormetrics.red-gate.com/number-of-queries-running/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric counts how many queries are running, and alerts you if the value goes above a defined threshold. If an alert is raised, you can run the query manually against the database server to see what is happening.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/number-of-queries-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database growth steps available</title>
		<link>http://sqlmonitormetrics.red-gate.com/database-growth-steps-available/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=database-growth-steps-available</link>
		<comments>http://sqlmonitormetrics.red-gate.com/database-growth-steps-available/#comments</comments>
		<pubDate>Wed, 27 Feb 2013 08:25:56 +0000</pubDate>
		<dc:creator>Blaž Dakskobler</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1614</guid>
		<description><![CDATA[This metric measures the number of available autogrowth steps for a database, so you can see when they are reduced or increased because something else (e.g. another database) starts or stops taking up space, when storage is added, etc.  <a href="http://sqlmonitormetrics.red-gate.com/database-growth-steps-available/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric measures the number of available autogrowth steps for a database, so you can see when they are reduced or increased because something else (e.g. another database) starts or stops taking up space, when storage is added, etc. </p>
<p>With appropriate thresholds set on the associated alert, you will be notified when the number of available steps gets too low.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/database-growth-steps-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Low physical/external memory</title>
		<link>http://sqlmonitormetrics.red-gate.com/low-physical-external-memory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=low-physical-external-memory</link>
		<comments>http://sqlmonitormetrics.red-gate.com/low-physical-external-memory/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 10:50:44 +0000</pubDate>
		<dc:creator>Grant Fritchey</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Memory]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1661</guid>
		<description><![CDATA[Determining if your operating system is causing memory issues within your SQL Server instance can be a challenge. One way around it is to use the <code>sys.dm_os_ring_buffers</code> to show when server memory is low.  <a href="http://sqlmonitormetrics.red-gate.com/low-physical-external-memory/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>Determining if your operating system is causing memory issues within your SQL Server instance can be a challenge. One way around it is to use the <code>sys.dm_os_ring_buffers</code> to capture alerts registered there that show when server memory (also known as physical memory) is low. This is especially useful in situations where you’re running SQL Server on a shared environment with some other service or application.</p>
<p>For more information, see <a href="http://blogs.msdn.com/b/mvpawardprogram/archive/2012/06/04/using-sys-dm-os-ring-buffers-to-diagnose-memory-issues-in-sql-server.aspx">Using sys.dm_os_ring_buffers To Diagnose Memory Issues in SQL Server</a>.</p>
<p>You may also be interested in installing a metric that shows when virtual memory is low. See <a href="http://sqlmonitormetrics.red-gate.com/low-virtual-memory/" title="Low virtual memory">Low virtual memory</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/low-physical-external-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indexes with excessive writes</title>
		<link>http://sqlmonitormetrics.red-gate.com/indexes-with-excessive-writes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=indexes-with-excessive-writes</link>
		<comments>http://sqlmonitormetrics.red-gate.com/indexes-with-excessive-writes/#comments</comments>
		<pubDate>Wed, 30 Jan 2013 10:17:35 +0000</pubDate>
		<dc:creator>Stuart Ainsworth</dc:creator>
				<category><![CDATA[Custom Metric]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://sqlmonitormetrics.red-gate.com/?p=1582</guid>
		<description><![CDATA[This metric measures the total number of indexes per database, where the number of writes exceed the number of reads. It provides a general indicator of possible performance factors affecting queries in your database. <a href="http://sqlmonitormetrics.red-gate.com/indexes-with-excessive-writes/" class="read-more">Read&#8194;more</a>]]></description>
			<content:encoded><![CDATA[<p>This metric measures the total number of indexes per database, where the number of writes exceed the number of reads. It provides a general indicator of possible performance factors affecting queries in your database.</p>
<p>If indexes are being updated with new data more often than they are being used in query plans, they can cause performance issues during write-heavy operations (INSERT, UPDATE, and DELETE statements), while adding little or no benefit to read operations.</p>
<p>For more information, see <a href="http://msdn.microsoft.com/en-us/library/ms191195(v=sql.105).aspx">General Index Design Guidelines</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlmonitormetrics.red-gate.com/indexes-with-excessive-writes/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
