-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
metricbeat mssql module: performance counter don't work with named instances #24076
Comments
Pinging @elastic/integrations (Team:Integrations) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can anyone help to fix this? It's sad if we can't monitor metrics of a MS SQL Server with multiple instances. |
Is it possible to fix this issue? We would really like to use metricbeat for named mssql instances. I opened a pull request with a simple solution to fix it. |
For confirmed bugs, please report:
The object_name of a performance counter doesn't start with
SQLServer:
if there is a named instance. It starts withMSSQL$MYINSTANCENAME
.You can read about this in following link: https://www.sentryone.com/blog/allenwhite/sql-server-performance-counters-to-monitor
So in this case we have to check if there is a named instance. We can find the name of the instance with following statement:
SELECT SERVERPROPERTY('InstanceName')
. This statement returns null if there is only the default instance ->SQLServer:
.https://docs.microsoft.com/en-us/sql/t-sql/functions/serverproperty-transact-sql?view=sql-server-ver15
The text was updated successfully, but these errors were encountered: