# Monitoring Windows perf counters across infrastructure and multiple machines

**URL:** <https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580>\
**Category:** Systems\
**Tags:** telegraf\
**Created:** [February 14, 2019, 3:17pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580 "2019-02-14T15:17:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 14, 2019, 3:17pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/1 "2019-02-14T15:17:21Z")

</div>

Hi,

I m a newbie when it comes to the TICK Stack. I have managed to install TICK stack on windows machine. Through some digging on internet i manage to get the local host perf\_counters stats in influx via telegraf and used graphana to view the graphs/visuals. I’m trying to find out if i can get the same stats across multiple machines without having to install the telegraf agent on each machine. Can someone please assist as to how that can be done using telegraf.

I cannot find any configuration on git or on the community pages or documentation

Thanks  
Zee

---

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 15, 2019, 3:52pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/2 "2019-02-15T15:52:58Z")

</div>

Hi any updates please. Seems like no one has the answer to this problem

---

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [February 15, 2019, 4:16pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/3 "2019-02-15T16:16:05Z")

</div>

Hi,

Its agent based, you have to install Telegraf agent on each machine.  
Once configured and deployed, it will collect and send information to your master server where influxdb is running.

---

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 19, 2019, 11:31am UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/4 "2019-02-19T11:31:09Z")

</div>

Hi Thanks for the response. Much appreciated.

I have a local telegraf service which is writing to master influx db locally which works fine  
I have another one installed remotely and accessing it but cannot seem to write to the database  
config as below  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/3/35913d70898f5aaead31222279a447e9c2e141dd.png)

I have ran telgraf using --test command and it seems to get the data correctly. I cannot seem to write that data to the master influx db which is running on my machine as a window service. The service starts fine but not sure why it wont write.

The port is open and i can telnet fine. Its writing to the same database that my local instance is writing to.

Zaeem

---

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [February 19, 2019, 12:43pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/5 "2019-02-19T12:43:14Z")

</div>

Sure!  
What do you see in the telegraf log file?  
I do not see you configured one, it would be helpful to enable logs.

---

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 19, 2019, 1:06pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/6 "2019-02-19T13:06:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/6/6ffa03680fc25a5bebe64ababc99ef0293e16526.png)  
It keeps on taking the local host even though i have changed the config to point to my remote host

---

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 19, 2019, 1:06pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/7 "2019-02-19T13:06:55Z")

</div>

seems to be taking a default config from somewhere.

---

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [February 19, 2019, 1:55pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/8 "2019-02-19T13:55:49Z")

</div>

I suggest you to add logging

# Configuration for telegraf agent

[agent]

## Specify the log file name. The empty string means to log to stderr.

logfile = “”

---

<div class="post-metadata">

**Author:** ![zaeem\_mansoor](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@zaeem\_mansoor](https://community.influxdata.com/u/zaeem_mansoor)\
**Post date:** [February 19, 2019, 2:09pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/9 "2019-02-19T14:09:30Z")

</div>

thanks for your help  
Below is what i did. Given i totally dont understand the config

To produce local logfile

## Specify the log file name. The empty string means to log to stderr.

logfile = “/Program Files/Telegraf/telegraf.log”

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex023/uploads/influxdata/original/2X/d/d22f4b436249d595b9a7483e678250f5b08b7850.png)  
I had to take the # out which forced it to use the correct remote address for influx.

Seems like its writing to my remote influx db now.

Was a pain but good learning and thanks for all your assistance on this

---

<div class="post-metadata">

**Author:** ![Ashish\_Sikarwar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ashish_sikarwar/32/2074_2.png) [@Ashish\_Sikarwar](https://community.influxdata.com/u/Ashish_Sikarwar)\
**Post date:** [February 19, 2019, 4:14pm UTC](https://community.influxdata.com/t/monitoring-windows-perf-counters-across-infrastructure-and-multiple-machines/8580/10 "2019-02-19T16:14:50Z")

</div>

Glad you are all set!
