Skip to content

marcingminski/sqlwatch

Repository files navigation

SQLWATCH Cloud

When SQLWATCH was created almost 10 years ago, and released as OSS 8 years ago, deploying a monitoring database directly on each SQL Server instance was the only practical approach. It worked, but on-premises monitoring has inherent limits - storage is expensive, readers block writers, and getting sub-second granularity without impacting the monitored server is fundamentally difficult.

sqlwatch.cloud was built from scratch to remove those constraints: millisecond-latency writes, a purpose-built time-series store where readers never block writers, cheap and effectively unlimited storage, and a 5-minute setup with no dacpac, no SQL Agent, no infrastructure to maintain and transparent pricing.

Teams today monitor 100+ SQL Server instances from a single dashboard - something that would have been impractical with the on-premises model.

This open-source project remains available and free but is no longer actively developed. If you're evaluating monitoring options today, sqlwatch.cloud is where active development happens.

About

License GitHub contributors GitHub Repo stars GitHub All Releases GitHub release GitHub commits since latest release (by date) GitHub last commit GitHub closed pull requests GitHub closed issues AppVeyor AppVeyor tests Testspace tests Space Metric Codacy Badge

Twitter Follow YouTube Channel Subscribers YouTube Channel Views

SQLWATCH is decentralised, real to near-real time SQL Server Monitoring Solution. It is designed to provide comprehensive monitoring out of the box and to serve as a monitoring framework for your own projects or applications. It collects performance data in a local database with an option for centralised reporting for convenience.

Server Overview: SQLWATCH Grafana Instance Overview

Detailed charts: SQLWATCH Grafana Dashboard

Features

  • 5 second granularity to capture spikes in your workload.
  • Grafana for real-time dashboarding and Power BI for in depth analysis
  • Minimal performance impact (around 1% on a single core SQL Instance when using broker for invocation).
  • Out of the box collection with minimal configuration required to get it up and running.
  • Extensive configuration available for your convenience.
  • Zero maintenance. It has been designed to maintain itself.
  • Unlimited scalability. As each instance monitors itself, you are not constrained by the capacity of the monitoring server.
  • Works with all supported SQL Servers (with some limitations on 2008R2)

Resources

Architecture

SQLWATCH uses SQL Agent Jobs to trigger data collection on a schedule which write results to a local database. For that reason each monitored SQL Server instance must have SQLWATCH deployed, however, the destination database can be an existing "dbatools" database, msdb or a dedicated SQLWATCH database. For performance reasons, it is advisable to deploy into a dedicated database as we're setting Read Committed Snapshot Isolation which will not be done if deployed to an existing database. The data can be consumed and analysed by the Power BI report.

Requirements

Tested on the following SQL Server versions:

  • 2008 R2 SP3 (with some limitations)
  • 2012
  • 2014
  • 2016
  • 2017
  • 2019

Although Docker and Linux work, the Windows-only WMI based disk utilisation collector will fail.

Installation

The easiest way to install SQLWATCH is to use dbatools:

Install-DbaSqlWatch -SqlInstance SQLSERVER1,SQLSERVER2,SQLSERVER3 -Database SQLWATCH 

Alternatively, SQLWATCH can also be deployed manually from the included Dacpac either via command line using SqlPackage.exe:

SqlPackage.exe /Action:Publish /SourceFile:C:\Temp\SQLWATCH.dacpac /TargetDatabaseName:SQLWATCH /TargetServerName:YOURSQLSERVER /p:RegisterDataTierApplication=True 

Or by deploying Data-Tier application in SQL Server Management Studio

Sponsor this project

  •  

Packages

 
 
 

Contributors