Metricbeat sql module - specify database name when connecting to MSSQL

Yes, I mean, it was an example. You can pass the database name in the FROM sentence also. In this case you should pass the database where you wanna do the query.

Can you check the following thread? MSSQL monitoring with Metricbeat?

It seems that he could do the query against a mssql.