# RAM monitoring in Windows

**URL:** <https://community.influxdata.com/t/ram-monitoring-in-windows/32154>\
**Category:** Telegraf\
**Tags:** windows\
**Created:** [November 15, 2023, 2:50pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154 "2023-11-15T14:50:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vashthestampede](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vashthestampede](https://community.influxdata.com/u/vashthestampede)\
**Post date:** [November 15, 2023, 2:50pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/1 "2023-11-15T14:50:10Z")

</div>

I’m trying to create, since I can’t find it, a configuration for telegraf that gives basic information on using the machine.  
I’m having a lot of problems regarding RAM (actually also on the GPU but let’s tackle one problem at a time).  
The parameters that can be monitored via Performance Monitor are the following:  
Available Bytes  
Cache Bytes  
Committed Bytes  
Commit Limit  
Free & Zero Page List Bytes  
Free System Page Table Entries  
Modified Page List Bytes  
Pool Nonpaged Bytes  
Pool Paged Bytes  
Pool Paged Resident Bytes  
Standby Cache Core Bytes  
Standby Cache Normal Priority Bytes  
Standby Cache Reserve Bytes  
System Cache Resident Bytes  
System Code Resident Bytes  
System Code Total Bytes  
System Driver Resident Bytes  
System Driver Total Bytes  
I think a lot of this data are superfluous but the biggest problem is that I can’t find a way to get the system’s RAM.  
Can anyone help me?

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [November 15, 2023, 3:03pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/2 "2023-11-15T15:03:55Z")

</div>

There is an example in the windows perf counters plugin for monitoring those very memory counters:

> <https://github.com/influxdata/telegraf/blob/master/plugins/inputs/win_perf_counters/sample.conf#L141-L160>

---

<div class="post-metadata">

**Author:** ![vashthestampede](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vashthestampede](https://community.influxdata.com/u/vashthestampede)\
**Post date:** [November 15, 2023, 3:30pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/3 "2023-11-15T15:30:30Z")

</div>

I probably explained my problem poorly.  
The problem is that I can’t find a way to get the system’s RAM.

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [November 15, 2023, 4:23pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/4 "2023-11-15T16:23:17Z")

</div>

Heh I’m not sure that adds any more details of what you are after.

---

<div class="post-metadata">

**Author:** ![vashthestampede](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vashthestampede](https://community.influxdata.com/u/vashthestampede)\
**Post date:** [November 17, 2023, 4:46pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/5 "2023-11-17T16:46:59Z")

</div>

I don’t want more details but to know how to interpret the data.  
The two most important values to know are the total amount of RAM in the system and how much is occupied.  
Both are not present, I think they can be obtained from the data it offers but, despite my efforts, I was unable to find them.

---

<div class="post-metadata">

**Author:** ![dragsliv](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dragsliv](https://community.influxdata.com/u/dragsliv)\
**Post date:** [November 17, 2023, 5:17pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/6 "2023-11-17T17:17:34Z")

</div>

I’ve been looking for it for some time as well. I’m amazed that this basic information is missing. It seems to me, that this plugin is simply incapable of getting both the actual amount of RAM and its usage. Those two are primary counters everyone needs when monitoring.  
Are there any other plugins we could get those counters from?

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [November 17, 2023, 5:26pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/7 "2023-11-17T17:26:13Z")

</div>

> [@dragsliv](#):
>
> that this plugin is simply incapable of getting both the actual amount of RAM and its usage.

Rather Windows does not provide or offer a performance counter for those items. The plugin, windows performance counters, knows nothing about memory and only reads what you tell it to read based on what Windows exposes.

> total amount of RAM in the system  
> how much is occupied.

We have an entire memory plugin available that provides these:

> <https://github.com/influxdata/telegraf/blob/master/plugins/inputs/mem/README.md>

---

<div class="post-metadata">

**Author:** ![vashthestampede](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vashthestampede](https://community.influxdata.com/u/vashthestampede)\
**Post date:** [November 17, 2023, 5:54pm UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/8 "2023-11-17T17:54:18Z")

</div>

Definitely better!  
Thank you!!!

EDIT:  
Now I want to replace all inputs.win\_perf\_counters.object with direct telegraf plugins!!!

---

<div class="post-metadata">

**Author:** ![dragsliv](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dragsliv](https://community.influxdata.com/u/dragsliv)\
**Post date:** [November 18, 2023, 11:47am UTC](https://community.influxdata.com/t/ram-monitoring-in-windows/32154/9 "2023-11-18T11:47:28Z")

</div>

Wait. Why doesn’t it say that it supports Windows? Don’t get me wrong, I’m grateful that it does and I’m going to implement it right this moment, but really, why? All it would take is to add “Windows”, the way you did with Linux distros. I was searching for “Windows” and had no match there. This seems like an oversight.
