SQL Agent Insights:Documentation:Insight Thresholds: Difference between revisions

From SQL Agent Insights Wiki
No edit summary
 
Line 1: Line 1:
[[SQL Agent Insight:Documentation|Back to Documentation Main]]
[[SQL Agent Insights:Documentation|Back to Documentation Main]]
<hr>
<hr>


The underlying principle of ''SQL Agent Insight'' is the ability to set thresholds for metrics and be notified when these boundaries are breached, via email and/or desktop notifications. This is why it is of utmost importance to set these limits upon the first monitoring of a SQL Server instance.
The underlying principle of ''SQL Agent Insights'' is the ability to set thresholds for metrics and be notified when these boundaries are breached, via email and/or desktop notifications. This is why it is of utmost importance to set these limits upon the first monitoring of a SQL Server instance.


[[file: insight.png|thumb|right|A typical Insight showing expanded MS DB and Jobs categories along with their polled values and configured thresholds.]]
[[file: insight.png|thumb|right|A typical Insight showing expanded MS DB and Jobs categories along with their polled values and configured thresholds.]]
Line 28: Line 28:
|style="vertical-align: top; padding: 0px 0px 0px 11px;"|
|style="vertical-align: top; padding: 0px 0px 0px 11px;"|
When done modifying the thresholds ensure to save them, by pressing the <span style="color: dodgerblue;">'''Save thresholds'''</span> button in the metrics toolbar to the left.
When done modifying the thresholds ensure to save them, by pressing the <span style="color: dodgerblue;">'''Save thresholds'''</span> button in the metrics toolbar to the left.
Doing so will create an XML file within the ''SQL Agent Insight'' working directory by the name of the monitored instance.
Doing so will create an XML file within the ''SQL Agent Insights'' working directory by the name of the monitored instance.
Additionally, saving the thresholds will ensure they are automatically loaded when this instance is monitored again in the future, saving time by not having to enter all of the thresholds again.
Additionally, saving the thresholds will ensure they are automatically loaded when this instance is monitored again in the future, saving time by not having to enter all of the thresholds again.
|}
|}
Line 50: Line 50:
[[file: info-gray-26.png|bottom]]
[[file: info-gray-26.png|bottom]]
|style="vertical-align: top; padding: 0px 0px 0px 11px;"|
|style="vertical-align: top; padding: 0px 0px 0px 11px;"|
Alarms within ''SQL Agent Insight'' are generated for a metric when a warning or critical threshold value are breached. For this to happen, the polled value must be <span style="color: dodgerblue;">'''greater than'''</span> the value set for the particular threshold to generate an alarm, and thus generate an email notification (if configured).
Alarms within ''SQL Agent Insights'' are generated for a metric when a warning or critical threshold value are breached. For this to happen, the polled value must be <span style="color: dodgerblue;">'''greater than'''</span> the value set for the particular threshold to generate an alarm, and thus generate an email notification (if configured).
|}
|}
|}
|}
Line 56: Line 56:


<hr>
<hr>
[[SQL Agent Insight:Documentation|Back to Documentation Main]]
[[SQL Agent Insights:Documentation|Back to Documentation Main]]
{{MicrosoftFooter}}
{{MicrosoftFooter}}

Latest revision as of 03:40, 16 October 2023

Back to Documentation Main


The underlying principle of SQL Agent Insights is the ability to set thresholds for metrics and be notified when these boundaries are breached, via email and/or desktop notifications. This is why it is of utmost importance to set these limits upon the first monitoring of a SQL Server instance.

A typical Insight showing expanded MS DB and Jobs categories along with their polled values and configured thresholds.

To modify thresholds for individual metrics, it is important to note that the Insight must be in one of two polling states, either Manual or Paused. This will be indicated in the status bar at the bottom right.

It is important to have the Insight in either a manual or paused state to prevent a poll midway through an editing cycle which could potentially fire an alarm, and therefore could inadvertently send an unwanted email.

Keyboard / Mouse Shortcuts

F2 / Double-click left mouse button – activates the threshold modification feature. Upon doing so, the toolbar will change yellow in color indicating that the Insight is in edit mode. Only one Insight and thus one metric can be edited at a time.


ENTER – one the desired threshold is entered into the Warning or Critical column, pressing <Enter> will accept the value and editing mode will be stopped. Move to the next desired cell to modify and continue to edit.


ESC – pressing the escape key will cancel editing of the current cell and the cell will revert to the value prior to editing.

Error creating thumbnail: Unable to save thumbnail to destination

When done modifying the thresholds ensure to save them, by pressing the Save thresholds button in the metrics toolbar to the left. Doing so will create an XML file within the SQL Agent Insights working directory by the name of the monitored instance. Additionally, saving the thresholds will ensure they are automatically loaded when this instance is monitored again in the future, saving time by not having to enter all of the thresholds again.

Handling Threshold Editing Errors

An Insight with an error while editing a threshold.

In some cases an error will be shown while modifying a threshold. An example is shown at the right.

Simply hover over the error warning triangle and a tooltip will be presented with the error message.

In the majority of the cases, an error indicating that the Warning threshold will be larger than the Critical. This is resolved by editing the Critical threshold prior to the Warning threshold. Remember, the goal is to have a valid range for the polled value to appropriately alert when that threshold is breached, so set realistic values.

Error creating thumbnail: Unable to save thumbnail to destination

Alarms within SQL Agent Insights are generated for a metric when a warning or critical threshold value are breached. For this to happen, the polled value must be greater than the value set for the particular threshold to generate an alarm, and thus generate an email notification (if configured).



Back to Documentation Main


Microsoft®, Windows® and SQL Server® are registered trademarks of Microsoft Corporation in the United States and/or other countries.
Some icons courtesy of Icons8