Skip to content

chore: Add support for metrics-exporter-dogstatsd#564

Open
markstory wants to merge 1 commit intomainfrom
chore-dogstatsd
Open

chore: Add support for metrics-exporter-dogstatsd#564
markstory wants to merge 1 commit intomainfrom
chore-dogstatsd

Conversation

@markstory
Copy link
Member

This will enable usage of native distributions and will lower the number number of custom metrics that taskbroker creates as venuer aggregates won't be used anymore.

This will enable usage of native distributions and will lower the number
number of custom metrics that taskbroker creates as venuer aggregates
won't be used anymore.
@markstory markstory requested a review from a team as a code owner March 2, 2026 16:01
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

};
MetricsConfig {
statsd_addr: *statsd_addr,
metrics_host: config.metrics_host.clone(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unconditional statsd resolution panics when using dogstatsd

Low Severity

MetricsConfig::from_config unconditionally resolves statsd_addr via to_socket_addrs() with .expect(), even when metrics_host is configured and statsd won't be used. If a deployment only intends to use dogstatsd and statsd_addr is set to an invalid or unresolvable value, the application will panic at startup despite statsd not being needed. The resolution of statsd_addr could be deferred or made conditional on metrics_host being empty.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's ok. If metrics_host works, I'll remove all the statsd_addr logic.

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.

2 participants