Skip to content

Commit

Permalink
Update collector.mssql.md
Browse files Browse the repository at this point in the history
Corrected the buffer cache hit ratio PromQL

Signed-off-by: Shiva Prasad <[email protected]>
  • Loading branch information
shivsepra authored Sep 21, 2022
1 parent 8efca83 commit 8f05e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/collector.mssql.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8f05e77

Please sign in to comment.