Skip to content

Commit 612c923

Browse files
committed
add installation type
1 parent 5e506f5 commit 612c923

File tree

1 file changed

+81
-36
lines changed

1 file changed

+81
-36
lines changed

src/pages/integrations/windows.mdx

Lines changed: 81 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ If you are only interested in shipping metrics, you can skip the Logs section an
6868

6969
### Install Integration
7070

71-
<InstallIntegration/>
71+
<InstallIntegration type="metrics"/>
7272

7373
### Install Telegraf
7474

@@ -105,63 +105,105 @@ If you are only interested in shipping metrics, you can skip the Logs section an
105105
If you are logged into your Logit.io account the fields should have been pre-populated with the correct values.
106106

107107
```toml copy
108-
# Input plugin to report Windows services info.
109-
# This plugin ONLY supports Windows
110-
[[inputs.win_services]]
111-
## Names of the services to monitor. Leave empty to monitor all the available services on the host. Globs accepted. Case sensitive.
112-
service_names = [
113-
"LanmanServer",
114-
"TermService",
115-
"Win*",
116-
]
117-
excluded_service_names = ['WinRM'] # optional, list of service names to exclude
118-
119108
###############################################################################
120-
# Windows Performance Counters plugin.
121-
# These are the recommended method of monitoring system metrics on windows,
122-
# as the regular system plugins (inputs.cpu, inputs.mem, etc.) rely on WMI,
123-
# which utilize more system resources.
124-
#
125-
# See more configuration examples at:
126-
# https://github.com/influxdata/telegraf/tree/master/plugins/inputs/win_perf_counters
109+
# INPUTS #
110+
###############################################################################
127111
[[inputs.win_perf_counters]]
128112
[[inputs.win_perf_counters.object]]
129113
# Processor usage, alternative to native, reports on a per core.
130114
ObjectName = "Processor"
131-
Instances = ["*"]
115+
Instances = ["_Total"]
132116
Counters = [
133117
"% Idle Time",
134118
"% Interrupt Time",
135119
"% Privileged Time",
136120
"% User Time",
137121
"% Processor Time",
122+
"% DPC Time",
138123
]
139124
Measurement = "win_cpu"
140-
# Set to true to include _Total instance when querying for all (*).
141-
#IncludeTotal=false
125+
# Set to true to include _Total instance when querying for all ().
126+
IncludeTotal=true
127+
128+
[[inputs.win_perf_counters.object]]
129+
# Process metrics, in this case for IIS only
130+
ObjectName = "Process"
131+
Counters = [
132+
"% Processor Time",
133+
"Handle Count",
134+
"Private Bytes",
135+
"Thread Count",
136+
"Virtual Bytes",
137+
"Working Set"
138+
]
139+
Instances = ["w3wp", "dfmserver", "dfmwatchdog", "java", "httpd", "TrendScan", "TmListen", "CNTAoSMgr"]
140+
Measurement = "win_proc"
141+
#IncludeTotal=false #Set to true to include _Total instance when querying for all ().
142142
[[inputs.win_perf_counters.object]]
143143
# Disk times and queues
144144
ObjectName = "LogicalDisk"
145145
Instances = ["*"]
146146
Counters = [
147147
"% Idle Time",
148-
"% Disk Time","% Disk Read Time",
148+
"% Disk Time",
149+
"% Disk Read Time",
149150
"% Disk Write Time",
150-
"% User Time",
151151
"Current Disk Queue Length",
152+
"% Free Space",
153+
"Free Megabytes",
152154
]
153155
Measurement = "win_disk"
154-
# Set to true to include _Total instance when querying for all (*).
155-
#IncludeTotal=false
156+
# Set to true to include _Total instance when querying for all ().
157+
#IncludeTotal=true
158+
[[inputs.win_perf_counters.object]]
159+
ObjectName = "PhysicalDisk"
160+
Instances = ["*"]
161+
Counters = [
162+
"Disk Read Bytes/sec",
163+
"Disk Write Bytes/sec",
164+
"Avg. Disk Queue Length",
165+
"Current Disk Queue Length",
166+
"Avg. Disk sec/Read",
167+
"Avg. Disk sec/Write",
168+
"Split IO/sec",
169+
]
170+
Measurement = "win_diskio"
171+
[[inputs.win_perf_counters.object]]
172+
ObjectName = "LogicalDisk"
173+
Instances = ["*"]
174+
Counters = [
175+
"% Free Space",
176+
"Free Megabytes"
177+
]
178+
Measurement = "win_disk"
179+
IncludeTotal = true # Optional, but will add an aggregate "_Total" instance
180+
[[inputs.win_perf_counters.object]]
181+
ObjectName = "Network Interface"
182+
Instances = ["*"]
183+
Counters = [
184+
"Bytes Received/sec",
185+
"Bytes Sent/sec",
186+
"Packets Received/sec",
187+
"Packets Sent/sec",
188+
"Packets Received Discarded",
189+
"Packets Outbound Discarded",
190+
"Packets Received Errors",
191+
"Packets Outbound Errors",
192+
]
193+
Measurement = "win_net"
156194
[[inputs.win_perf_counters.object]]
157195
ObjectName = "System"
158196
Counters = [
197+
"Threads",
198+
"Processes",
159199
"Context Switches/sec",
160200
"System Calls/sec",
201+
"Processor Queue Length",
202+
"System Up Time",
161203
]
162204
Instances = ["------"]
163205
Measurement = "win_system"
164-
# Set to true to include _Total instance when querying for all (*).
206+
# Set to true to include _Total instance when querying for all ().
165207
#IncludeTotal=false
166208
[[inputs.win_perf_counters.object]]
167209
# Example query where the Instance portion must be removed to get data back,
@@ -173,16 +215,20 @@ If you are only interested in shipping metrics, you can skip the Logs section an
173215
"Demand Zero Faults/sec",
174216
"Page Faults/sec",
175217
"Pages/sec",
218+
"Page Reads/sec",
219+
"Page Writes/sec",
176220
"Transition Faults/sec",
177221
"Pool Nonpaged Bytes",
178222
"Pool Paged Bytes",
223+
"Standby Cache Reserve Bytes",
224+
"Standby Cache Normal Priority Bytes",
225+
"Standby Cache Core Bytes",
179226
]
180227
# Use 6 x - to remove the Instance bit from the query.
181228
Instances = ["------"]
182229
Measurement = "win_mem"
183230
# Set to true to include _Total instance when querying for all (*).
184231
#IncludeTotal=false
185-
186232
[[inputs.win_perf_counters.object]]
187233
# Example query where the Instance portion must be removed to get data back,
188234
# such as from the Paging File object.
@@ -192,14 +238,13 @@ If you are only interested in shipping metrics, you can skip the Logs section an
192238
]
193239
Instances = ["_Total"]
194240
Measurement = "win_swap"
195-
196-
[[outputs.http]]
197-
url = "https://@metricsUsername:@metricsPassword@@metrics_id-vm.logit.io:@vmAgentPort/api/v1/write"
198-
data_format = "prometheusremotewrite"
199-
200-
[outputs.http.headers]
201-
Content-Type = "application/x-protobuf"
202-
Content-Encoding = "snappy"
241+
[[outputs.http]]
242+
url = "https://@metricsUsername:@metricsPassword@@metrics_id-vm.logit.io:@vmAgentPort/api/v1/write"
243+
data_format = "prometheusremotewrite"
244+
245+
[outputs.http.headers]
246+
Content-Type = "application/x-protobuf"
247+
Content-Encoding = "snappy"
203248
```
204249

205250
<Callout type="info">

0 commit comments

Comments
 (0)