Skip to content

Commit

Permalink
Update webpa-common to pull in final sd metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Feb 9, 2018
1 parent a5e5a08 commit d09a2ec
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 18 deletions.
34 changes: 19 additions & 15 deletions src/glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package: .
homepage: https://github.com/Comcast/petasos
import:
- package: github.com/Comcast/webpa-common
version: 49d31397e019541d27795f8543e634ab0846ed82
version: 46b42ed45a7f6d8624dd1890b4683fe9f246282f
3 changes: 2 additions & 1 deletion src/petasos/petasos.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func petasos(arguments []string) int {
f = pflag.NewFlagSet(applicationName, pflag.ContinueOnError)
v = viper.New()

logger, metricsRegistry, webPA, err = server.Initialize(applicationName, arguments, f, v)
logger, metricsRegistry, webPA, err = server.Initialize(applicationName, arguments, f, v, service.Metrics)
infoLog = logging.Info(logger)
errorLog = logging.Error(logger)
)
Expand All @@ -70,6 +70,7 @@ func petasos(arguments []string) int {

infoLog.Log("configurationFile", v.ConfigFileUsed(), "serviceOptions", serviceOptions)
serviceOptions.Logger = logger
serviceOptions.MetricsProvider = metricsRegistry
services, err := service.New(serviceOptions)
if err != nil {
errorLog.Log(logging.MessageKey(), "Unable to initialize service discovery", logging.ErrorKey(), err)
Expand Down
10 changes: 9 additions & 1 deletion src/petasos/petasos.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
"pprof": {
"address": ":9191"
},


"metric": {
"address": ":9292",
"metricsOptions": {
"namespace": "xmidt",
"subsystem": "petasos"
}
},

"service": {
"servers": ["localhost:2181"],
"path": "/xmidt/local",
Expand Down

0 comments on commit d09a2ec

Please sign in to comment.