From e556ed69b2a66824602e0c75d0e4cea5850e6b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Felipe=20=C3=81lvarez?= Date: Wed, 17 Aug 2022 09:37:04 +0200 Subject: [PATCH 1/2] feat: include nolock in total_disk_space query Co-authored-by: Alvaro Cabanas --- src/metrics/instance_metric_definitions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metrics/instance_metric_definitions.go b/src/metrics/instance_metric_definitions.go index 105f0d9..354e617 100644 --- a/src/metrics/instance_metric_definitions.go +++ b/src/metrics/instance_metric_definitions.go @@ -107,7 +107,7 @@ var instanceDefinitions = []*QueryDefinition{ dovs.volume_mount_point, dovs.available_bytes available_bytes, dovs.total_bytes total_bytes - FROM sys.master_files mf + FROM sys.master_files mf WITH (nolock) CROSS apply sys.Dm_os_volume_stats(mf.database_id, mf.file_id) dovs ) drives`, dataModels: &[]struct { From 83a0b43da6fd7088ea32c92f37f69d3f42fce299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Felipe=20=C3=81lvarez?= Date: Wed, 17 Aug 2022 09:49:58 +0200 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 506f294..7c4aaf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 2.8.3 (2022-08-17) +### Changed +- Improve error handling and debug logs for custom queries +- Avoid potential deadlocks in disk space query + ## 2.8.2 (2022-06-27) ### Changed - Bump dependencies