Using Windows version of telegraf, running it on my local machine.
Connected to InfluxDb 2 running from Docker.
Essentially using the example from the README file in Git.
Telegraf.conf is set to read from a remote server.
## Override default hostname, if empty use os.Hostname()
hostname = "qaMyServer01"
etc.
[[inputs.win_perf_counters.object]]
# .NET CLR Exceptions, in this case for IIS only
ObjectName = ".NET CLR Exceptions"
Counters = [
"# of Exceps Thrown / sec",
]
Instances = [""]
Measurement = "win_dotnet_exceptions"
#IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
[[inputs.win_perf_counters.object]]
# .NET CLR Memory, in this case for IIS only
ObjectName = ".NET CLR Memory"
Counters = [
"% Time in GC",
]
# "# Bytes in all Heaps","# Gen 0 Collections","# Gen 1 Collections","# Gen 2 Collections","# Induced GC","Allocated Bytes/sec","Finalization Survivors","Gen 0 heap size","Gen 1 heap size","Gen 2 heap size","Large Object Heap size","# of Pinned Objects"]
Instances = ["w3wp"]
Measurement = "win_dotnet_mem"
#IncludeTotal=false #Set to true to include _Total instance when querying for all (*).
In spite of the host
value having been set to my remote server, these processes are the ones running on my local computer.
Why would it do that?
I can tell this is so because the instances
available include processes, like Outlook, that I know are running on my local machine and not on the remote server.