Cannot enable Metricbeat modules
ladybird17 opened this issue · 1 comments
ladybird17 commented
Chart version:8.5.1
Kubernetes version:1.26.1
Kubernetes provider:
Helm Version:3.9.1
Describe the bug:
Steps to reproduce:
- 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"]
- run metricbeat
- then I checked in the path (/usr/share/metricbeat/modules.d), nginx module is still disabled
Expected behavior:
nginx module enabled
ladybird17 commented
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.