-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add improved config/event output options to windows/perfmon metricset #17596
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d526603
config
narph 22f51cf
work on perfmon
narph ad90e00
progress
narph a782840
work on perf
narph af5219c
Create tests
narph d54f74a
work on documentation
narph c360b9b
fix test
narph aec0615
changelog
narph 3d5101e
work on webserver
narph 1f1d2af
Merge branch 'master' into perfmon-ga
narph 644217a
fix test
narph 6416739
add test
narph ddc124d
validate
narph 4dbd811
dynamic mapping
narph 561be46
init format
narph ee0418c
work on test
narph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5,8 +5,13 @@ This file is generated! See scripts/mage/docs_collector.go | |||||||||||||||||||||||||||||||||
[[metricbeat-module-windows]] | ||||||||||||||||||||||||||||||||||
== Windows module | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
This is the Windows module. It collects metrics from Windows systems, | ||||||||||||||||||||||||||||||||||
by default metricset `service` is enabled. | ||||||||||||||||||||||||||||||||||
This is the `windows` module which collects metrics from Windows systems. | ||||||||||||||||||||||||||||||||||
The module contains the `service` metricset, which is set up by default when the `windows` module is enabled. | ||||||||||||||||||||||||||||||||||
The `service` metricset will retrieve status information of the services on the Windows machines. The second `windows` | ||||||||||||||||||||||||||||||||||
metricset is `perfmon` which collects Windows performance counter values. | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
[float] | ||||||||||||||||||||||||||||||||||
|
@@ -24,11 +29,14 @@ metricbeat.modules: | |||||||||||||||||||||||||||||||||
period: 10s | ||||||||||||||||||||||||||||||||||
perfmon.ignore_non_existent_counters: false | ||||||||||||||||||||||||||||||||||
perfmon.group_measurements_by_instance: false | ||||||||||||||||||||||||||||||||||
perfmon.counters: | ||||||||||||||||||||||||||||||||||
# - instance_label: processor.name | ||||||||||||||||||||||||||||||||||
# instance_name: total | ||||||||||||||||||||||||||||||||||
# measurement_label: processor.time.total.pct | ||||||||||||||||||||||||||||||||||
# query: '\Processor Information(_Total)\% Processor Time' | ||||||||||||||||||||||||||||||||||
perfmon.queries: | ||||||||||||||||||||||||||||||||||
# - object: 'Process' | ||||||||||||||||||||||||||||||||||
# instance: ["*"] | ||||||||||||||||||||||||||||||||||
# counters: | ||||||||||||||||||||||||||||||||||
# - name: 'Disk Writes/sec' | ||||||||||||||||||||||||||||||||||
# field: physical_disk.write.per_sec | ||||||||||||||||||||||||||||||||||
# format: "float" | ||||||||||||||||||||||||||||||||||
# - name: "% Disk Write Time" | ||||||||||||||||||||||||||||||||||
Comment on lines
+32
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit. Align the comment marks with the previous block:
Suggested change
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
- module: windows | ||||||||||||||||||||||||||||||||||
metricsets: ["service"] | ||||||||||||||||||||||||||||||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
- module: windows | ||
#metricsets: | ||
# - service | ||
metricsets: | ||
- service | ||
period: 1m | ||
|
||
#- module: windows | ||
# metricsets: | ||
# - perfmon | ||
# - perfmon | ||
# period: 10s | ||
# perfmon.counters: | ||
# - instance_label: processor.name | ||
# instance_name: total | ||
# measurement_label: processor.time.total.pct | ||
# query: '\Processor Information(_Total)\% Processor Time' | ||
# | ||
# - instance_label: physical_disk.name | ||
# measurement_label: physical_disk.write.per_sec | ||
# query: '\PhysicalDisk(*)\Disk Writes/sec' | ||
# | ||
# - instance_label: physical_disk.name | ||
# measurement_label: physical_disk.write.time.pct | ||
# query: '\PhysicalDisk(*)\% Disk Write Time' | ||
# perfmon.queries: | ||
# - object: 'Process' | ||
# instance: ["*"] | ||
# counters: | ||
# - name: 'Disk Writes/sec' | ||
# field: physical_disk.write.per_sec | ||
# format: "float" | ||
# - name: "% Disk Write Time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
This is the Windows module. It collects metrics from Windows systems, | ||
by default metricset `service` is enabled. | ||
This is the `windows` module which collects metrics from Windows systems. | ||
The module contains the `service` metricset, which is set up by default when the `windows` module is enabled. | ||
The `service` metricset will retrieve status information of the services on the Windows machines. The second `windows` | ||
metricset is `perfmon` which collects Windows performance counter values. | ||
|
||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
"event": { | ||
"dataset": "windows.perfmon", | ||
"duration": 115000, | ||
"module": "windows" | ||
}, | ||
"metricset": { | ||
"module": "windows", | ||
"name": "perfmon", | ||
"rtt": 115 | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"type": "windows" | ||
}, | ||
"windows": { | ||
"perfmon": { | ||
"processor": { | ||
"name": "_Total", | ||
"time": { | ||
"total": { | ||
"pct": 1.4663385364361736 | ||
"instance": "_Total", | ||
"metrics": { | ||
"processor": { | ||
"time": { | ||
"total": { | ||
"pct": 6.310940413107646 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"object": "Processor Information" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
- release: beta | ||
- name: perfmon | ||
type: group | ||
release: beta | ||
description: > | ||
perfmon | ||
fields: | ||
- name: instance | ||
type: keyword | ||
description: | | ||
Instance value. | ||
- name: metrics.*.* | ||
type: object | ||
object_type: float | ||
object_type_mapping_type: "*" | ||
description: > | ||
Metric values returned. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align commented out code as before?