Bug Report
Expected Behavior
When configuring prometheus.extraArgs in the newrelic-prometheus-agent chart, the additional arguments should be added to the Prometheus container in the deployed StatefulSet.
Actual Behavior
The extraArgs configuration is not being applied to the Prometheus container arguments in the StatefulSet. The container only contains the default arguments:
args:
- '--config.file=/etc/prometheus/config/config.yaml'
- '--enable-feature=agent,expand-external-labels'
- '--storage.agent.retention.max-time=30m'
- '--storage.agent.wal-truncate-frequency=30m'
- '--storage.agent.path=/etc/prometheus/storage'
Configuration used
newrelic-prometheus-agent:
enabled: true
prometheus:
extraArgs:
- --log.level=warn
Chart Version
Chart: nri-bundle v5.0.80
newrelic-prometheus-agent configurator image: 1.16.2
Use Case
Need to suppress info-level logs from Prometheus remote write component to reduce log noise while keeping error and warning logs.
Bug Report
Expected Behavior
When configuring
prometheus.extraArgsin the newrelic-prometheus-agent chart, the additional arguments should be added to the Prometheus container in the deployed StatefulSet.Actual Behavior
The
extraArgsconfiguration is not being applied to the Prometheus container arguments in the StatefulSet. The container only contains the default arguments: