Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 9b28076

Browse files
Merge pull request #1534 from splunk/repo-sync
Pulling refs/heads/main into main
2 parents 71b1284 + 8f13a3c commit 9b28076

File tree

2 files changed

+118
-119
lines changed

2 files changed

+118
-119
lines changed

gdi/monitors-prometheus/prometheus-node.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ The following table shows the configuration options for the
170170
Metrics
171171
-------
172172

173-
The following metrics are available for this integration:
173+
The following metrics are available for this integration. All metrics are custom.
174174

175175
.. raw:: html
176176

gdi/opentelemetry/components/windowsperfcounters-receiver.rst

Lines changed: 117 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The Windows Performance Counters receiver allows the Splunk Distribution of the
1111

1212
.. note:: The Windows Performance Counters receiver only works on Windows hosts.
1313

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>`.
1515

1616
Get started
1717
======================
@@ -29,29 +29,29 @@ To activate the Windows Performance Counters receiver add a ``windowsperfcounter
2929

3030
.. code-block:: yaml
3131
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
4545
4646
To complete the configuration, include the receiver in the ``metrics`` pipeline of the ``service`` section of your configuration file:
4747

4848
.. code-block:: yaml
4949
50-
service:
51-
pipelines:
52-
metrics:
53-
receivers:
54-
- windowsperfcounters
50+
service:
51+
pipelines:
52+
metrics:
53+
receivers:
54+
- windowsperfcounters
5555
5656
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.
5757

@@ -106,29 +106,29 @@ You can configure the collection interval and which performance counters you wan
106106

107107
.. code-block:: yaml
108108
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>
132132
133133
Scrape at different collection intervals
134134
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -137,50 +137,49 @@ The following example shows how to scrape performance counters using different c
137137

138138
.. code-block:: yaml
139139
140+
receivers:
141+
windowsperfcounters/memory:
142+
metrics:
143+
bytes.committed:
144+
description: Number of bytes committed to memory
145+
unit: By
146+
gauge:
147+
collection_interval: 30s
148+
perfcounters:
149+
- object: Memory
150+
counters:
151+
- name: Committed Bytes
152+
metric: bytes.committed
140153
141-
receivers:
142-
windowsperfcounters/memory:
143-
metrics:
144-
bytes.committed:
145-
description: Number of bytes committed to memory
146-
unit: By
147-
gauge:
148-
collection_interval: 30s
149-
perfcounters:
150-
- object: Memory
151-
counters:
152-
- name: Committed Bytes
153-
metric: bytes.committed
154-
155-
windowsperfcounters/processor:
156-
collection_interval: 1m
157-
metrics:
158-
processor.time:
159-
description: CPU active and idle time
160-
unit: "%"
161-
gauge:
162-
perfcounters:
163-
- object: "Processor"
164-
instances: "*"
165-
counters:
166-
- name: "% Processor Time"
167-
metric: processor.time
168-
attributes:
169-
state: active
170-
- object: "Processor"
171-
instances: [1, 2]
172-
counters:
173-
- name: "% Idle Time"
174-
metric: processor.time
175-
attributes:
176-
state: idle
177-
178-
# ...
179-
180-
service:
181-
pipelines:
182-
metrics:
183-
receivers: [windowsperfcounters/memory, windowsperfcounters/processor]
154+
windowsperfcounters/processor:
155+
collection_interval: 1m
156+
metrics:
157+
processor.time:
158+
description: CPU active and idle time
159+
unit: "%"
160+
gauge:
161+
perfcounters:
162+
- object: "Processor"
163+
instances: "*"
164+
counters:
165+
- name: "% Processor Time"
166+
metric: processor.time
167+
attributes:
168+
state: active
169+
- object: "Processor"
170+
instances: [1, 2]
171+
counters:
172+
- name: "% Idle Time"
173+
metric: processor.time
174+
attributes:
175+
state: idle
176+
177+
# ...
178+
179+
service:
180+
pipelines:
181+
metrics:
182+
receivers: [windowsperfcounters/memory, windowsperfcounters/processor]
184183
185184
Configure instances
186185
---------------------------------
@@ -218,24 +217,24 @@ To avoid dropping the ``_Total`` instance, configure the receiver to collect it
218217

219218
.. code-block:: yaml
220219
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
235234
236235
.. warning::
237236

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.
239238

240239
Recreate the query on every scrape
241240
--------------------------------------------
@@ -330,24 +329,24 @@ The following example emits the ``Memory/Committed Bytes`` counter as the ``byte
330329

331330
.. code:: yaml
332331
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
337+
unit: By
338+
gauge:
339+
collection_interval: 30s
340+
perfcounters:
341+
- object: Memory
342+
counters:
343+
- name: Committed Bytes
344+
metric: bytes.committed
345+
346+
service:
347+
pipelines:
348+
metrics:
349+
receivers: [windowsperfcounters]
351350
352351
Known limitations
353352
======================

0 commit comments

Comments
 (0)