Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move config / settings into dedicated settings.go files #1137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bt-justtrack
Copy link
Contributor

No description provided.

@bt-justtrack bt-justtrack linked an issue Jul 30, 2024 that may be closed by this pull request
}

const (
promSettingsKey = "prometheus"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this belongs here - or should exist at all (in most other cases we don't have a constant for that neither)

@@ -53,3 +53,18 @@ func readMessagesPerRunnerMetricSettings(config cfg.Config) *MessagesPerRunnerMe
func messagesPerRunnerIsEnabled(config cfg.Config) bool {
return config.GetBool(configKey+".enabled", false)
}

const (
metricNameStreamMprMessagesPerRunner = "StreamMprMessagesPerRunner"
Copy link
Contributor

Choose a reason for hiding this comment

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

We normally have the constants as basically the first thing in the file

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.

config: package settings in dedicated settings.go files
2 participants