Added useful query for memory usage

Signed-off-by: Isai <isai_alejandro@outlook.com>
This commit is contained in:
Isai 2023-12-17 00:47:27 -06:00
parent a3fc99f3fd
commit 1e52be0f35
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ Find all devices not set to UTC timezone
windows_os_timezone{timezone != "UTC"}
```
Show memory usage for instance (%)
```
100-(windows_os_physical_memory_free_bytes{instance="localhost"} / windows_cs_physical_memory_bytes{instance="localhost"})*100
```
## Alerting examples
**prometheus.rules**
```yaml