Altinity / Altinity/clickhouse-operator
Configure Metrics Exporter Verbosity via Deployment Variables
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.6k
- Forks
- 574
- Avg merge
- 8d 6h
- Merged PRs (30d)
- 6
Description
Summary
Expose a configurable option (e.g., environment variable or Helm chart value) to adjust the metrics-exporter’s glog verbosity (-v flag) when deploying the ClickHouse Operator, reducing verbose logs without needing to manually override container args.
Problem Statement
The metrics-exporter defaults to -v=1, which can flood pod logs with detailed manifests and debug information. Currently, the only way to quiet these logs is to manually override the container’s command/args, which is error-prone and inconsistent across deployments.
Proposed Solution
Introduce a deployment-level variable—such as METRICS_EXPORTER_VLEVEL or a Helm chart value like metricsExporter.logVerbosity—that maps directly to the exporter’s -v flag. The operator or Helm chart would consume this variable and configure the container accordingly.
Alternatives / Workarounds
Currently, users can override the metrics-exporter container’s args to set -v=0, but this requires explicit changes in manifest files or Helm templates and is less discoverable.
Additional Context
This feature request stems from the need to reduce log noise in environments where verbose logs are unwieldy, yet operator logs must remain unchanged. Having a single configuration variable would streamline deployments and maintainability.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the metrics-exporter deployment manifests or Helm templates and the container args that set the glog -v flag. Compare the proposed deployment variable and Helm value options, then verify that the chosen setting changes exporter verbosity without changing operator logs. Done means deployments can configure the verbosity without manually overriding container args.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100