You want the metricbeat.yml file?
metricbeat.config:
modules:
path: ${path.config}/modules.d/*.yml
# Reload module configs as they change:
reload.enabled: false
metricbeat.autodiscover:
providers:
- type: kubernetes
scope: cluster
namespace: elasticsearch
node: ${NODE_NAME}
templates:
- condition:
contains:
kubernetes.labels.app: "elasticsearch"
config:
- module: elasticsearch
metricsets:
- node
- node_stats
- index
- index_recovery
- index_summary
- shard
#- ml_job
period: 10s
hosts: ["http://${data.host}:9200"]
#username: "elastic"
#password: "changeme"
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
#index_recovery.active_only: true
xpack.enabled: false
scope: node
enabled: true
- condition:
contains:
kubernetes.labels.app: "kibana"
config:
- module: kibana
metricsets:
- status
- stats
period: 10s
hosts: ["${data.host}:5601"]
xpack.enabled: false
enabled: true
metricbeat.modules:
#- module: docker
# metricsets:
# - "container"
# - "cpu"
# - "diskio"
# - "healthcheck"
# - "info"
#- "image"
# - "memory"
# - "network"
# hosts: ["unix:///var/run/docker.sock"]
# period: 10s
# enabled: true
#- module: elasticsearch
# metricsets:
# - node
# - node_stats
# - index
# - index_recovery
# - index_summary
# - shard
# #- ml_job
# period: 10s
# hosts: ["http://elasticsearch-master-headless:9200","http://elasticsearch-data-hot-headless:9200","http://elasticsearch-data-warm-headless:9200","http://elasticsearch-client-headless:9200"]
# #username: "elastic"
# #password: "changeme"
# #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
#
# #index_recovery.active_only: true
# xpack.enabled: false
# scope: node
# =================================== Kibana ===================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: "kibana:5601"
# Kibana Space ID
# ID of the Kibana Space into which the dashboards should be loaded. By default,
# the Default Space will be used.
#space.id:
# =============================== Elastic Cloud ================================
processors:
- add_metadata: ~
- add_kubernetes_metadata: ~
output.elasticsearch:
hosts: "http://es-client:9200"
# username: '${ELASTICSEARCH_USERNAME:}'
# password: '${ELASTICSEARCH_PASSWORD:}'