From 8f05e77b0aa8a08d3b8bc1dff8d90a4e2e2f4c0a Mon Sep 17 00:00:00 2001 From: Shiva Prasad Date: Wed, 21 Sep 2022 15:27:34 +0530 Subject: [PATCH] Update collector.mssql.md Corrected the buffer cache hit ratio PromQL Signed-off-by: Shiva Prasad --- docs/collector.mssql.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/collector.mssql.md b/docs/collector.mssql.md index 4754be641..f28b8c670 100644 --- a/docs/collector.mssql.md +++ b/docs/collector.mssql.md @@ -268,8 +268,8 @@ When you read the counter in perfmon you will get the the percentage pages found This collector retrieves the two internal values separately. In order to calculate the Buffer Cache Hit Ratio in PromQL. ``` -windows_mssql_bufman_buffer_cache_hits{instance="host:9182", exported_instance="MSSQLSERVER"} / -windows_mssql_bufman_buffer_cache_lookups{instance="host:9182", exported_instance="MSSQLSERVER"} +windows_mssql_bufman_buffer_cache_hits{instance="host:9182", mssql_instance="MSSQLSERVER"} / +windows_mssql_bufman_buffer_cache_lookups{instance="host:9182", mssql_instance="MSSQLSERVER"} ``` This principal can be used for following metrics too: