Skip to content

Commit

Permalink
Added default metric port in flytescheduler (flyteorg#301)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Dec 3, 2021
1 parent 7f69389 commit 72be279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flyteadmin/pkg/runtime/application_config_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const remoteData = "remoteData"
const notifications = "notifications"
const domains = "domains"
const externalEvents = "externalEvents"

const metricPort = 10254
const postgres = "postgres"

const KB = 1024
Expand All @@ -36,7 +36,7 @@ var databaseConfig = config.MustRegisterSection(database, &interfaces.DbConfigSe
ExtraOptions: "sslmode=disable",
})
var flyteAdminConfig = config.MustRegisterSection(flyteAdmin, &interfaces.ApplicationConfig{
ProfilerPort: 10254,
ProfilerPort: metricPort,
MetricsScope: "flyte:",
MetadataStoragePrefix: []string{"metadata", "admin"},
EventVersion: 2,
Expand All @@ -45,7 +45,7 @@ var flyteAdminConfig = config.MustRegisterSection(flyteAdmin, &interfaces.Applic
})

var schedulerConfig = config.MustRegisterSection(scheduler, &interfaces.SchedulerConfig{
ProfilerPort: config.Port{Port: 10253},
ProfilerPort: config.Port{Port: metricPort},
EventSchedulerConfig: interfaces.EventSchedulerConfig{
Scheme: common.Local,
FlyteSchedulerConfig: &interfaces.FlyteSchedulerConfig{},
Expand Down

0 comments on commit 72be279

Please sign in to comment.