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

added profiling #48

Merged
merged 5 commits into from
Dec 5, 2017
Merged

added profiling #48

merged 5 commits into from
Dec 5, 2017

Conversation

kamaev
Copy link
Contributor

@kamaev kamaev commented Nov 30, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.118% when pulling 0cea50d on kamaev:profiling into e7f3879 on moira-alert:profiling.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.118% when pulling 033b77c on kamaev:profiling into e7f3879 on moira-alert:profiling.

@@ -36,5 +37,8 @@ func getDefault() config {
Prefix: "DevOps.Moira",
Interval: "60s0ms",
},
Pprof: cmd.ProfilerConfig{
Port: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Давай, сделаем Listen. Во первых чтобы было единообразие с api, во вторых потому что там не порт на самом деле а ":8888"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Исправил

cmd/config.go Outdated
@@ -52,6 +52,11 @@ type LoggerConfig struct {
LogLevel string `yaml:"log_level"`
}

// ProfilerConfig is pprof settings, which are taken on the start of moira
type ProfilerConfig struct {
Port string `yaml:"port"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Ну и понятно, здесь тоже хочется видеть Listen string yaml:"listen"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Исправил

@coveralls
Copy link

Coverage Status

Coverage remained the same at 90.118% when pulling 1c8f49a on kamaev:profiling into e7f3879 on moira-alert:profiling.

@borovskyav borovskyav merged commit 2c30f85 into moira-alert:profiling Dec 5, 2017
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