-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [DO NOT MERGE] Database Monitoring MSSQL documentation [Feb Release] #20030
base: develop
Are you sure you want to change the base?
Conversation
Hi @avadla 👋 Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days. We will automatically generate a preview of your request, and will comment with a link when the preview is ready (usually 10 to 20 minutes). |
✅ Deploy Preview for docs-website-netlify ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
You can view query-level analysis to monitor your SQL queries within your MSSQL database to assess their performance and impact. This feature provides insights into execution times, resource consumption, and potential bottlenecks, enabling you to optimize database operations. For more information | ||
|
||
## Prerequisites: | ||
* Microsoft SQL Server supports 2017, 2019, and 2022. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Microsoft SQL Server supports 2017, 2019, and 2022. | |
* Microsoft SQL Server 2017, 2019, or 2022. |
* DB user should be a member of the sysadmin fixed server role or have the VIEW SERVER STATE permission | ||
|
||
|
||
To Enable the Query performance monitoring feature, follow these steps: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To Enable the Query performance monitoring feature, follow these steps: | |
To enable the Query performance monitoring feature, follow these steps: |
<Steps> | ||
<Step> | ||
## To Enable SQL Server and Windows Authentication mode | ||
Enable the login on the SQL server and Windows Authentication mode. For more information, refer Microsoft change authentication mode [documentation](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver16&tabs=ssms). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable the login on the SQL server and Windows Authentication mode. For more information, refer Microsoft change authentication mode [documentation](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver16&tabs=ssms). | |
Enable the login on the SQL Server and Windows Authentication mode. For more information, refer Microsoft change authentication mode [documentation](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver16&tabs=ssms). |
<Step> | ||
## To Enable TCP | ||
1. Ensure TCP is enabled for remote access on your instance using the [documentation](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port?view=sql-server-ver16) | ||
2. Check Firewall Settings: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Check Firewall Settings: | |
2. Check firewall settings: |
## To Enable TCP | ||
1. Ensure TCP is enabled for remote access on your instance using the [documentation](https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port?view=sql-server-ver16) | ||
2. Check Firewall Settings: | ||
- Ensure that your firewall allows traffic on port 1433(this is the port on which MSSQL Server is listening). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ensure that your firewall allows traffic on port 1433(this is the port on which MSSQL Server is listening). | |
- Ensure that your firewall allows traffic on port 1433 (this is the port on which MSSQL Server is listening). |
2. Check Firewall Settings: | ||
- Ensure that your firewall allows traffic on port 1433(this is the port on which MSSQL Server is listening). | ||
- Open Windows Defender Firewall with Advanced Security. | ||
- Click on Inbound Rules on the left. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Click on Inbound Rules on the left. | |
- In the left menu, click **Inbound Rules**. |
</Step> | ||
<Step> | ||
## Run the below query to confirm if the query store is enabled [#confirmQueryStore] | ||
if the output of the query is 1 then we can assume the query store is enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the output of the query is 1 then we can assume the query store is enabled | |
If the output of the query is 1 then we can assume the query store is enabled |
<Step> | ||
## Find your data | ||
You can use our pre-built dashboard template to monitor your MSSQL metrics. Follow these steps to use our pre-built dashboard template: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use our pre-built dashboard template to monitor your MSSQL metrics. Follow these steps to use our pre-built dashboard template: | |
You can use our prebuilt dashboard template to monitor your MSSQL metrics. Follow these steps to use our prebuilt dashboard template: |
You can use our pre-built dashboard template to monitor your MSSQL metrics. Follow these steps to use our pre-built dashboard template: | ||
1. From [one.newrelic.com](https://one.newrelic.com), go to the <DNT>**+ Integrations & Agents**</DNT> page | ||
2. Click on <DNT>**Dashboards**</DNT> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Click on <DNT>**Dashboards**</DNT> | |
2. Click <DNT>**Dashboards**</DNT> |
1. From [one.newrelic.com](https://one.newrelic.com), go to the <DNT>**+ Integrations & Agents**</DNT> page | ||
2. Click on <DNT>**Dashboards**</DNT> | ||
3. In the search bar, type `MSSQL On-Host Integration` | ||
4. The MSSQL dashboard should appear. Click on it to install it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4. The MSSQL dashboard should appear. Click on it to install it | |
4. The MSSQL dashboard appears. Click it to install. |
<CollapserGroup> | ||
<Collapser | ||
id="blockingSession" | ||
title="Blocking Session Metrics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title="Blocking Session Metrics" | |
title="Blocking session metrics" |
`command_type` | ||
</td> | ||
<td> | ||
The type of command being executed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type of command being executed. | |
The type of command being performed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix and merge
Ticket: https://new-relic.atlassian.net/browse/NR-369994
Description: Created doc for query performance monitoring of MSSQL