Update collector.mssql.md

Corrected the buffer cache hit ratio PromQL

Signed-off-by: Shiva Prasad <sr7231@gmail.com>
This commit is contained in:
Shiva Prasad
2022-09-21 15:27:34 +05:30
committed by GitHub
parent 8efca83ac4
commit 8f05e77b0a

View File

@@ -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: