Skip to content

[metrics]: Configure metrics from config - #148

Open
pseudomuto wants to merge 1 commit into
mainfrom
metrics-config
Open

[metrics]: Configure metrics from config#148
pseudomuto wants to merge 1 commit into
mainfrom
metrics-config

Conversation

@pseudomuto

Copy link
Copy Markdown
Collaborator

The metrics listen address and Prometheus namespace came from --metrics-addr and --metrics-namespace (or $METRICS_ADDR and $METRICS_NAMESPACE). Everything else the proxy needs already lives in the YAML config, and the Helm chart passes that config wholesale, so metrics were the one thing an operator could not set the same way as the rest.

Add a metrics block to the config and have the metrics module read it. This removes both flags and their respective environment variables. The defaults are unchanged (:9090 and tmprl_proxy), so a deployment that never set them behaves identically.

The metrics listen address and Prometheus namespace came from
--metrics-addr and --metrics-namespace (or METRICS_ADDR and
METRICS_NAMESPACE). Everything else the proxy needs already lives in the
YAML config, and the Helm chart passes that config wholesale, so metrics
were the one thing an operator could not set the same way as the rest.

Add a metrics block to the config and have the metrics module read it.
This removes both flags and their respective environment variables. The
defaults are unchanged at :9090 and tmprl_proxy, so a deployment that
never set them behaves identically.
@pseudomuto
pseudomuto requested a review from a team as a code owner September 3, 2026 14:14
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants