Configuration
This is a example configuration for Metricbeat. You can use it as a starting point to further define which data you want to gather.
Please be aware of the fact that more data needs more storage space and that you might need to order additional space or bigger instances.
metricbeat.modules:
- module: windows
metricsets:
- service
period: 300s
- module: windows
metricsets:
- perfmon
period: 60s
perfmon.ignore_non_existent_counters: true
perfmon.group_measurements_by_instance: true
perfmon.queries:
- object: "Process"
instance: "*"
counters:
- name: "% Processor Time"
field: time.processor.pct
format: "float"
- name: "Thread Count"
field: thread_count
- name: "IO Read Operations/sec"
- object: "PhysicalDisk"
field: "disk"
instance: "*"
counters:
- name: "Disk Writes/sec"
- name: "% Disk Write Time"
field: "write_time"
format: "float"
output.elasticsearch:
hosts: ["Insights URL"]
protocol: "HTTP"
username: "Authentication Name"
password: "Authentication PW"
index: "metricbeat"
xpack.enabled: false
bulk_max_size: 800
worker: 2
compression_level: 9
setup.ilm.enabled: false
setup.ilm.check_exists: false
setup.dashboards.enabled: false
setup.template.enabled: false
setup.template.overwrite: false
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~