# Windows machine monitoring
Telegraf is able to monitor Windows machine
- Obtain the telegraf windows distribution Downloads
- Follow instructions Running Telegraf as a Windows Service
- Configure Telegraf with Comonway configuration in
telegraf.conf. See Configure section below. - Control that the Telegraf service restart at bootup (NB: Need to improve control from Windows service panel)
Note: You can configure Inputs inside telegraf.conf depending on the host configuration.
# Basic configuration
Open the telegraf.conf file in a text editor which support TOML
The Windows version of Telegraf has a configuration file setup to collect some common Windows performance counters by default.
InfluxDB server in [[outputs.influxdb]]
[[outputs.influxdb]]
urls = ["http://Your-Linux-Server-IP:8086"]
Modify collection interval under [agent] section
[agent]
interval = "10s"
If you want an example, see Windows Metrics Dashboards
# Configure Telegraf
# Configuration file locations
The default locations are /etc/telegraf/telegraf.conf for the main configuration file and /etc/telegraf/telegraf.d for the directory of configuration files.
# Output Configuration Examples
Filter measurements to different outputs in terms of name or tag
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf"
precision = "s"
# Drop all measurements that start with "aerospike"
namedrop = ["aerospike*"]
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf-aerospike-data"
precision = "s"
# Only accept aerospike data:
namepass = ["aerospike*"]
[[outputs.influxdb]]
urls = [ "http://localhost:8086" ]
database = "telegraf-cpu0-data"
precision = "s"
# Only store measurements where the tag "cpu" matches the value "cpu0"
[outputs.influxdb.tagpass]
cpu = ["cpu0"]