mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
###################### Metricbeat Configuration Example #######################
|
|
|
|
# This file is an example configuration file highlighting only the most common
|
|
# options. The metricbeat.reference.yml file from the same directory contains all the
|
|
# supported options with more comments. You can use it as a reference.
|
|
#
|
|
# You can find the full configuration reference here:
|
|
# https://www.elastic.co/guide/en/beats/metricbeat/index.html
|
|
|
|
# =========================== Modules configuration ============================
|
|
|
|
metricbeat.config.modules:
|
|
path: ${path.config}/modules.d/*.yml
|
|
reload.enabled: false
|
|
# ======================= Elasticsearch template setting =======================
|
|
|
|
setup.template.settings:
|
|
index.number_of_shards: 1
|
|
index.codec: best_compression
|
|
|
|
setup.template.enabled: false
|
|
setup.ilm.enabled: false
|
|
|
|
# ================================== General ===================================
|
|
|
|
# The name of the shipper that publishes the network data. It can be used to group
|
|
# all the transactions sent by a single shipper in the web interface.
|
|
#name:
|
|
|
|
# The tags of the shipper are included in their field with each
|
|
# transaction published.
|
|
#tags: ["service-X", "web-tier"]
|
|
|
|
# Optional fields that you can specify to add additional information to the
|
|
# output.
|
|
fields:
|
|
env: production
|
|
type: "sysmetrics"
|
|
|
|
# ---------------------------- Elasticsearch Output ----------------------------
|
|
output.elasticsearch:
|
|
# Array of hosts to connect to.
|
|
hosts: ["replace-host"]
|
|
|
|
# Performance preset - one of "balanced", "throughput", "scale",
|
|
# "latency", or "custom".
|
|
preset: balanced
|
|
|
|
|
|
# Protocol - either `http` (default) or `https`.
|
|
#protocol: "https"
|
|
|
|
# Authentication credentials - either API key or username/password.
|
|
#api_key: "id:api_key"
|
|
username: "replace-user"
|
|
password: "replace-password"
|
|
|
|
# ================================= Processors =================================
|
|
processors:
|
|
- add_host_metadata: ~
|
|
- add_docker_metadata: ~
|
|
- drop_fields:
|
|
ignore_missing: true
|
|
fields:
|
|
- container.labels
|
|
- system.process.cgroup
|
|
- system.process.io
|
|
- auditd.log
|
|
- aws
|
|
- azure
|
|
- cef
|
|
- checkpoint
|
|
- cisco
|
|
- crowdstrike
|
|
- dll
|
|
- file
|
|
- fortinet
|
|
- gcp
|
|
- google
|
|
- haproxy
|
|
- juniper
|
|
- microsoft |