Skip to content
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

Closed
cwuethrich opened this issue Feb 16, 2021 · 4 comments · Fixed by #30859
Closed

metricbeat mssql module: performance counter don't work with named instances #24076

cwuethrich opened this issue Feb 16, 2021 · 4 comments · Fixed by #30859
Labels
Team:Integrations Label for the Integrations team

Comments

@cwuethrich
Copy link
Contributor

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 with MSSQL$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

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Feb 16, 2021
@cwuethrich cwuethrich changed the title mssql performance counter don't work with named instances metricbeat mssql module: performance counter don't work with named instances Feb 16, 2021
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Feb 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Feb 17, 2021
@botelastic
Copy link

botelastic bot commented Jan 27, 2022

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.

@botelastic botelastic bot added the Stalled label Jan 27, 2022
@cwuethrich
Copy link
Contributor Author

Can anyone help to fix this? It's sad if we can't monitor metrics of a MS SQL Server with multiple instances.

@cwuethrich
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants