apiVersion: v1
data:
  metricbeat.yml: |
    metricbeat.modules:
    - module: kubernetes
      enabled: true
      metricsets:
        - state_node
        - state_deployment
        - state_replicaset
        - state_pod
        - state_container
      period: 10s
      hosts: ["${KUBE_STATE_METRICS_HOSTS}"]
    output.elasticsearch:
      hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'
kind: ConfigMap
metadata:
  labels:
    app: RELEASE-NAME-metricbeat
    chart: metricbeat-7.16.3
    heritage: Helm
    release: RELEASE-NAME
  name: RELEASE-NAME-metricbeat-deployment-config
