elastic/helm-charts

Cannot enable Metricbeat modules

ladybird17 opened this issue · 1 comments

Chart version:8.5.1

Kubernetes version:1.26.1

Kubernetes provider:

Helm Version:3.9.1

Describe the bug:

Steps to reproduce:

  1. set module nginx in values.yaml
  metricbeatConfig:
    metricbeat.yml: |
      metricbeat.config.modules:
      - module: nginx
        enabled: true
        metricsets: ["stubstatus"]
        period: 10s
        hosts: ["http://nginxName:80"]
      output.logstash:
        hosts: ["logstashIP:5044"]
  1. run metricbeat
  2. then I checked in the path (/usr/share/metricbeat/modules.d), nginx module is still disabled
    image

Expected behavior:
nginx module enabled

I just realized that I should set module with 'metricbeat.modules:', not 'metricbeat.config.modules:'
(ref: https://www.elastic.co/guide/en/beats/metricbeat/8.5/configuration-metricbeat.html)
and it works.