You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
@@ -11,7 +11,7 @@ The Windows Performance Counters receiver allows the Splunk Distribution of the
11
11
12
12
.. note:: The Windows Performance Counters receiver only works on Windows hosts.
13
13
14
-
The Windows Performance Counters receiver replaces the SmartAgent monitor type:ref:`telegraf-win-perf-counters`. It's based on the :new-page:`Telegraf Windows Performance Counters Input Plugin <https://github.com/influxdata/telegraf/tree/master/plugins/inputs/win_perf_counters>` and uses the :new-page:`PDH interface <https://learn.microsoft.com/en-us/windows/win32/perfctrs/using-the-pdh-functions-to-consume-counter-data>`.
14
+
The Windows Performance Counters receiver replaces the Smart Agent monitor:ref:`telegraf-win-perf-counters`. It's based on the :new-page:`Telegraf Windows Performance Counters Input Plugin <https://github.com/influxdata/telegraf/tree/master/plugins/inputs/win_perf_counters>` and uses the :new-page:`PDH interface <https://learn.microsoft.com/en-us/windows/win32/perfctrs/using-the-pdh-functions-to-consume-counter-data>`.
15
15
16
16
Get started
17
17
======================
@@ -29,29 +29,29 @@ To activate the Windows Performance Counters receiver add a ``windowsperfcounter
29
29
30
30
.. code-block:: yaml
31
31
32
-
receivers:
33
-
windowsperfcounters:
34
-
metrics:
35
-
bytes.committed:
36
-
description: the number of bytes committed to memory
37
-
unit: By
38
-
gauge:
39
-
collection_interval: 30s
40
-
perfcounters:
41
-
- object: Memory
42
-
counters:
43
-
- name: Committed Bytes
44
-
metric: bytes.committed
32
+
receivers:
33
+
windowsperfcounters:
34
+
metrics:
35
+
bytes.committed:
36
+
description: the number of bytes committed to memory
37
+
unit: By
38
+
gauge:
39
+
collection_interval: 30s
40
+
perfcounters:
41
+
- object: Memory
42
+
counters:
43
+
- name: Committed Bytes
44
+
metric: bytes.committed
45
45
46
46
To complete the configuration, include the receiver in the ``metrics`` pipeline of the ``service`` section of your configuration file:
47
47
48
48
.. code-block:: yaml
49
49
50
-
service:
51
-
pipelines:
52
-
metrics:
53
-
receivers:
54
-
- windowsperfcounters
50
+
service:
51
+
pipelines:
52
+
metrics:
53
+
receivers:
54
+
- windowsperfcounters
55
55
56
56
To collect metrics from Windows performance counters, you need to define metrics using the ``metrics`` field as in the example. You can then reference the metrics you defined from the ``counters.metric`` fields.
57
57
@@ -106,29 +106,29 @@ You can configure the collection interval and which performance counters you wan
106
106
107
107
.. code-block:: yaml
108
108
109
-
windowsperfcounters:
110
-
collection_interval: <duration>
111
-
initial_delay: <duration>
112
-
metrics:
113
-
<metric name 1>:
114
-
description: <description>
115
-
unit: <unit type>
116
-
gauge: null
117
-
<metric name 2>:
118
-
description: <description>
119
-
unit: <unit type>
120
-
sum: null
121
-
aggregation: <cumulative or delta>
122
-
monotonic: <true or false>
123
-
perfcounters:
124
-
- object: <object name>
125
-
instances:
126
-
- <instance name>
127
-
counters:
128
-
- name: <counter name>
129
-
metric: <metric name>
130
-
attributes:
131
-
<key>: <value>
109
+
windowsperfcounters:
110
+
collection_interval: <duration>
111
+
initial_delay: <duration>
112
+
metrics:
113
+
<metric name 1>:
114
+
description: <description>
115
+
unit: <unit type>
116
+
gauge: null
117
+
<metric name 2>:
118
+
description: <description>
119
+
unit: <unit type>
120
+
sum: null
121
+
aggregation: <cumulative or delta>
122
+
monotonic: <true or false>
123
+
perfcounters:
124
+
- object: <object name>
125
+
instances:
126
+
- <instance name>
127
+
counters:
128
+
- name: <counter name>
129
+
metric: <metric name>
130
+
attributes:
131
+
<key>: <value>
132
132
133
133
Scrape at different collection intervals
134
134
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -137,50 +137,49 @@ The following example shows how to scrape performance counters using different c
@@ -218,24 +217,24 @@ To avoid dropping the ``_Total`` instance, configure the receiver to collect it
218
217
219
218
.. code-block:: yaml
220
219
221
-
windowsperfcounters:
222
-
metrics:
223
-
processor.time.total:
224
-
description: Total CPU active and idle time
225
-
unit: "%"
226
-
gauge:
227
-
collection_interval: 30s
228
-
perfcounters:
229
-
- object: "Processor"
230
-
instances:
231
-
- "_Total"
232
-
counters:
233
-
- name: "% Processor Time"
234
-
metric: processor.time.total
220
+
windowsperfcounters:
221
+
metrics:
222
+
processor.time.total:
223
+
description: Total CPU active and idle time
224
+
unit: "%"
225
+
gauge:
226
+
collection_interval: 30s
227
+
perfcounters:
228
+
- object: "Processor"
229
+
instances:
230
+
- "_Total"
231
+
counters:
232
+
- name: "% Processor Time"
233
+
metric: processor.time.total
235
234
236
235
.. warning::
237
236
238
-
When using an ``instance`` value of ``"*"``, if the counter uses a value other than ``_Total``, make sure to avoid double counting when aggregating metrics after the receiver scrapes them.
237
+
When using an ``instance`` value of ``"*"``, if the counter uses a value other than ``_Total``, make sure to avoid double counting when aggregating metrics after the receiver scrapes them.
239
238
240
239
Recreate the query on every scrape
241
240
--------------------------------------------
@@ -330,24 +329,24 @@ The following example emits the ``Memory/Committed Bytes`` counter as the ``byte
330
329
331
330
.. code:: yaml
332
331
333
-
receivers:
334
-
windowsperfcounters:
335
-
metrics:
336
-
bytes.committed:
337
-
description: the number of bytes committed to memory
338
-
unit: By
339
-
gauge:
340
-
collection_interval: 30s
341
-
perfcounters:
342
-
- object: Memory
343
-
counters:
344
-
- name: Committed Bytes
345
-
metric: bytes.committed
346
-
347
-
service:
348
-
pipelines:
349
-
metrics:
350
-
receivers: [windowsperfcounters]
332
+
receivers:
333
+
windowsperfcounters:
334
+
metrics:
335
+
bytes.committed:
336
+
description: the number of bytes committed to memory
0 commit comments