Foglight for SQL Server monitors the SQL Server database activity by connecting to and querying the SQL Server database. The agents provided monitor the SQL Server database system.
The dashboards included with the cartridge provide a visual representation of the status of the major components of the SQL Server agents. They allow you to determine any potential bottleneck in database performance.
You can use the Databases Administration dashboard to set options for collecting, storing, and displaying data about monitored SQL Server instances.
This section covers the following key areas:
You can edit agent settings for one or more SQL Server instances on the Databases > Administration dashboard.
If you attempt to select instances of more than one type of database, such as an SQL Server database and an Oracle database, an error message is displayed.
To open the Databases Administration dashboard:
The Administration dashboard opens, containing settings for all the selected agents. Settings are broken down into categories, which are organized under a SQL Server tree.
The Databases Administration dashboard allows settings options for collecting, storing, and displaying data, which apply to all the currently selected agents. Click a category of settings on the left (for example: Connection Details) to display a view containing related settings on the right.
The metrics defined under the Databases Administration dashboard apply to all of the agents that were selected before opening the Databases Administration dashboard. As a result, the same unit of measure and aggregation value for display are enforced for all currently selected agents.
The SQL Performance Investigator category allows you to enable or disable SQL PI for the agents selected. In addition, you can also start or stop change tracking for the agents.
To view the full list of selected agents, click Selected Agents at the upper right corner of the screen. To change the list of agents to which the metrics will apply, exit the Databases Administration dashboard, select the requested agents, and re-open the view.
If the settings vary between the selected agents (for example: one agent uses the measurement unit kilobyte, while another uses megabyte), the fields that contain non-identical values are displayed as empty and marked with an Inconsistent Values () icon.
Changes made to settings should be saved before selecting another category of settings.
To save changes made in an Administration dashboard view:
Many Foglight for SQL server multiple-severity rules trigger alarms. To improve your monitoring experience, you can use alarm templates to customize when alarms are triggered and whether they are reported. You can also set up email notifications. For more information, refer to Working with Alarms.
Use the Connection Details category to define global connection settings, which apply to all instances and hosts selected in the view. You can configure SQL Performance Investigator connectivity, enable user-defined collections, and set VMware connection details.
The Connection Details view contains a table that displays all the agents that were selected before entering the Databases Administration dashboard.
To define the connection settings for the requested agents:
If multiple instances were selected before clicking Set credentials, this dialog box is empty (does not display the names of the instances, ports, and connection details). The default options in such a scenario are Windows authentication (for SQL Server connection details) and the use of existing host connection details (for OS monitoring).
Monitoring OS can be made also by using stored credentials- Select this link to open the Stored Credentials dialog box, which allows you to review the login credentials and authentication methods used for logging in to Foglight.
Foglight stores encrypted credentials in lockboxes, which may be password-protected for added security. The Credentials dialog box and DB-Agent Lockbox. If credentials have already been entered in another lockbox, use the Lockbox list to select from that lockbox.
If the monitoring verification fails, click the message that is displayed on the Status column and resolve the issue according to the instructions that appear in the dialog box. For example, insufficient privileges, incorrect credentials or an Agent Manager that reached its full monitoring capacity.
If the Foglight Agent Manager that runs the instance resides on a UNIX host, the option of using Windows authentication and the Windows account that is running Foglight is unavailable.
To add user-defined collections, go to the User-defined Collections view in the Databases Administration dashboard. For more details, refer to Configuring User-defined Collections.
Upon successful completion of this process, the Status column of the instance table displays the status Changes applied. For instances that failed verification, the status column indicates that changes cannot be saved if the validation did not complete successfully.
The Error Log Filtering view allows selecting which error logs generated by the SQL Server database are to be displayed in the Logs drilldown. The error log alarm increments the error log count for each error log entry that matches one of the strings listed in this view.
Foglight for SQL Server provides a default list of error logs enabled in the scanning, and allows adding, modifying, or disabling error logs from the list.
The settings defined using the Error Log Filtering view affect the following alarms: SQL Agent Error Log Summary, SQL Server Error Log Summary, SQL Agent Log Informational Error, and SQL Server Log Informational Error.
The Error Log Filtering view allows defining the following settings:
By default, the value of this parameter is Critical.
For all SQL Server versions, the Error Log Filtering view allows defining the following settings:
Only messages that are explicitly defined in the Ignore List will not be displayed. Messages that were not added to either the Match or Ignore lists appear under name Other, type SQL Server errors messages and severity Informational. Therefore, ensure that messages that need not be displayed are added to the Ignore List.
Both the Match List and the Ignore List panes can be customized by adding, editing, or removing alert logs. Each filter can be enabled or disabled separately by clicking Edit and selecting or clearing the Enabled check box. Alternatively, to enable or disable all of the filters, click the Enable All or Disable All.
To add an error to the Match List:
The entire list of filters displayed on the view can be enabled or disabled by clicking Enable All or Disable All at the bottom of the screen. Enabling a single filter requires editing it.
To edit a filter:
The Performance Counters view allows configuring user-defined performance counters and their Unit of Measurement/Indicator. The counters created in this view are accessible using the User Metrics drilldown.
Each user-defined performance counter is collected and plotted over the specified time range in the User Metrics drilldown.
The User Metrics drilldown is used only for displaying the user-defined performance counters; any creation or management operation of these counters is carried out using the Performance Counters view.
Use this view to add user-defined collections of performance counters to a specified agent by selecting them from the complete list of available performance counters. The user-defined counters value refers to raw data, which is derived directly from the counter provider.
To retrieve performance counters for a specific agent:
The Buffer Cache view allows configuring the default retrieval settings for Buffer Cache panel, accessed through the Memory drilldown.
A lower buffer cache hit rate can be resolved by investigating the objects that consume the largest amount of cache size.
Use this view to configure the number of objects to be displayed in the table and their sorting properties. Click Edit in the Buffer Cache Settings section to edit the following parameters:
Parameter | Description |
---|---|
Top N Buffer Cache Objects by Cached MB | Defines the maximum number of objects to be displayed in the Buffer Cache panel (default: 20). |
Order direction | Defines whether the order of the items for retrieval is ascending or descending. |
Order by | Defines the parameter by which the display is to be ordered |
After carrying out all of the requested changes, save the changes before switching to another view.
The Plan Cache view allows configuring the default display settings for the SQL Server’s plan cache panel, accessible using the Memory drilldown.
Use this view to filter the Plan Cache panel’s display, by setting criteria such as which object type is displayed, as well as the default number of records displayed and the sorting method. Click Edit in the Plan Cache Settings section to edit the following parameters:
Parameter | Description |
---|---|
Show Adhoc objects | Defines whether to display Adhoc SQL plans. |
Show system objects | Defines whether to display SQL Server system objects. |
Filter Database Name | Defines whether to display only objects that reside on certain databases. When setting this parameter, the character % can be used as a wild card. For example, to display objects from all of the databases that begin with Quest (Questdatabase, QuestWorkDatabase, and so on), enter Quest%. |
Top N Records | Defines the maximum number of objects to be displayed in the Plan Cache panel (default: 20). |
Filter Object Name | Defines whether to retrieve only certain objects. When setting this parameter, the character % can be used as a wild card. |
Order by | Defines the criterion for determining the data display order. The available criteria are as follows: Database Name (Default)-the name of the database Schema Name- the name of the schema Object Name- the name of the object Object Type- the object type Use Count (Default)- the number of times this cache object has been used since inception Ref Count- the number of other cache objects that reference this cache object Cache Object Type- the type of the cache object SQL Bytes- the size of the text SQL Text- the SQL text Used Date Format- the date format used by the object Used Language- the language format used by the object MB- the amount of space in the plan cache that is allocated to this object % from Cache- the percentage of cache used by the object Used MB- the size, in megabytes, used by the object type |
Order direction | Defines whether the display would be carried out in ascending or descending order. |
After carrying out all of the requested changes, save the changes before switching to another view.
The Database Indexes view allows configuring the requested settings for collecting and displaying data under the Database > Indexes pane.
To define the settings for collecting and displaying database indexes:
The User-defined Collections view in the Databases Administration dashboard allows adding user-defined collections to all of the currently selected agents, to provide for queries not included in Foglight for SQL Server.
Agents must be enabled for user-defined collections. If one or more of the selected agents is not enabled for such collections, this view allows enabling them. To disable or modify the credentials of a currently enabled agent, go to the Connection Details view and click the agent to edit it.
After collections are added, this view displays all of the user-defined collections for all of the agents; for example, if a collection was added to 12 agents during its addition, the view will display 12 rows, showing the collection for each agent.
This view can also be used for configuring the sampling frequency for each collection.
The available sampling frequencies are as follows:
To add user-defined collections:
If one or more of the selected agents is not enabled for user-defined collections, a dialog box appears to notify this issue, displaying a table of the currently disabled collections. Use this dialog box to enable all agents for user-defined collections. To enable only part of these agents, exit the Databases Administration dashboard and select only these agents that are currently enabled or need to be enabled for user-defined collections before entering again the Databases Administration dashboard.
Section | Field | Description |
---|---|---|
Database | ID Column Name Column Type |
The collections’ ID The name of the column The field type, as retrieved by the query (String, Integer and so on) |
Data Storage | Display Name | The column’s display name |
Type | The topology type for storage purposes. This type can be one of the following: String Integer Double Boolean Date Note: When the Frequently modified check box is selected (the default state), the field’s change history is kept, including use of optional functionality such as use of the IntelliProfile mechanism and aggregation type selection. Clearing this check box is recommended only for fields whose values change infrequently, such as IP address of a specific host, as storing the change history of such fields is highly CPUintensive and may degrade the FMS performance. |
|
Unit of Measurement/Indicator | The metric’s Unit of Measurement/Indicator. The possible measurement unit values are: Percent, Count, Millisecond, Second, Minute, Hour, Day, Byte, Kilobyte, Megabyte and Gigabyte. | |
Aggregation | Allows defining the value that is displayed in this metric, out of several values that were returned in the relevant time range. The available aggregation values are: As is- value of the last sample taken during the selected time range Sum- summarized value of all samples taken during the selected time range Average- average value of all samples taken during the selected time range |
|
Is Key | Indicates whether the field is the query’s key for retrieval. Note: Fields that are indicated as keys should correspond with the database result set unique values. Selecting a field which has frequently changing and repeating results as key is allowed, but may result in unexpected behavior from the defined collection. |
Except for the Column Name and Column Type fields, whose values are retrieved by the query and cannot be changed, all other fields can be edited by clicking any of them. The Edit Collection Properties dialog box appears, allowing you to edit the values of the following parameters:
After adding the requested user-defined collections, they can only be deleted or cloned to other agents. If one or more queries need to be modified, delete them and create new ones.
The SQL Performance Investigator view in the Administration dashboard allows you to enable and disable SQL PI monitoring for selected agents. In addition, you can start and stop the collection of change tracking data. In the SQL PI view, select one or more agents to enable or disable or for which to modify the change tracking status.
Monitoring all of the databases within all of the agents can unnecessarily load the system, as not all databases require such monitoring, due to being either non-mission critical or less significant.
The Exclude Databases from Monitoring view allows excluding such databases from monitoring. Use this view to select the agents from which databases are to be excluded from monitoring, and then specify, either manually or by selecting from a list, which databases to exclude.
To exclude databases from monitoring: