Skip to content

Conversation

@IndraGunawan
Copy link
Contributor

based on this #1450 PR, i noticed that we do register Prometheus collector even though the user does not define metrics directive in Caddyfile

this PR adds a check if metrics is configured then it will register the Prometheus collector

@IndraGunawan
Copy link
Contributor Author

fyi @AlliBalliBaba

@IndraGunawan IndraGunawan changed the title metrics/perf: register prometheus metrics only if enabled metrics/perf: register prometheus collectors only if enabled Mar 24, 2025
@IndraGunawan IndraGunawan changed the title metrics/perf: register prometheus collectors only if enabled metrics: register prometheus collectors only if enabled Mar 24, 2025
Co-authored-by: Kévin Dunglas <[email protected]>
Co-authored-by: Kévin Dunglas <[email protected]>
@dunglas dunglas merged commit 855b3f9 into php:main Mar 25, 2025
43 checks passed
@IndraGunawan IndraGunawan deleted the perf-metrics-collection branch March 25, 2025 11:56
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