Monitoring SQL Server 2022 with Grafana, InfluxDB and Telegraf (without Docker)
Introduction
Running Windows Server without Docker? You can still install InfluxDB 2.x, Telegraf and Grafana, then build dashboards for SQL Server 2022.
InfluxDB 2.x on Windows
- Install it as a service and configure an organization and bucket (for example
Demofor both). - Generate an API token with bucket-level read/write permissions.
Telegraf inputs for SQL Server and Windows
Relevant sections of telegraf.conf:
| |
Grafana
- Add InfluxDB as a Flux data source.
- Import dashboards: SQL Server Overview, Waits, Tempdb and IO latency.
- Configure alerts for no backup in 24 hours,
% Log Used > 80%andTempdb Used > 70%.
Permissions and security
- Give the SQL login
telegraftheVIEW SERVER PERFORMANCE STATEpermission and access to the required views/DMVs. - Store passwords in Windows Credential Manager or a separate environment file.
Verification
- Confirm that measurements arrive in the bucket and panels render without errors.
- Trigger a controlled test of the log-utilization alert and verify notification delivery.
Repository bonus: add
monitoring/telegraf.conf,grafana/dashboard.jsonand aREADME.mdwith installation and troubleshooting steps.