Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

sqltop

Find the most resource consuming SQL Server queries.

This tool requires that you first run sqlmon and save your SQL Server queries to Elasticsearch. The following fields should be included: Duration, CPU, Reads, Writes, TextData, QueryHash, DatabaseName, LoginName, ServerName, HostName.

Installation

npm install -g sqltop

Usage

$ sqltop --address elasticsearch.example.com \
         --metric reads \
         --agg query \
         --agg2 server \
         --start '2019-07-31 09:00' \
         --end '2019-07-31 12:30'

Sample output

Sample output

Version History

  • 1.2
    • Renamed textdata field to text.
  • 1.1
    • Added support for TextDataHash field.
  • 1.0
    • Initial release.

Author

Soheil Rashidi

Copyright and License

Copyright 2019 Soheil Rashidi.

Licensed under the The MIT License (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.opensource.org/licenses/mit-license.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Find the most resource consuming SQL Server queries.

Topics

Resources

License

Packages

No packages published