Skip to content

prometheus.extraArgs configuration not applied to Prometheus container in newrelic-prometheus-agent StatefulSet #2051

@dsai1

Description

@dsai1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.triage/pendingIssue or PR is pending for triage and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions