forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add improved config/event output options to windows/perfmon metricset (…
…elastic#17596) * config * work on perfmon * progress * work on perf * Create tests * work on documentation * fix test * changelog * work on webserver * fix test * add test * validate * dynamic mapping * init format * work on test (cherry picked from commit 1a50329)
- Loading branch information
Showing
27 changed files
with
1,433 additions
and
571 deletions.
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
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.