mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
should turn on views regardless of exporter (#1059)
https://github.com/fnproject/fn/pull/1058/files#r194913723
This commit is contained in:
committed by
Tolga Ceylan
parent
e2a58f9403
commit
e848b4c88e
@@ -468,11 +468,8 @@ func WithAgentFromEnv() ServerOption {
|
||||
placer = pool.NewNaivePlacer()
|
||||
}
|
||||
|
||||
// If prometheus is enabled, add LB placer metrics to the views
|
||||
if s.promExporter != nil {
|
||||
keys := []string{"fn_appname", "fn_path"}
|
||||
pool.RegisterPlacerViews(keys)
|
||||
}
|
||||
keys := []string{"fn_appname", "fn_path"}
|
||||
pool.RegisterPlacerViews(keys)
|
||||
|
||||
s.agent, err = agent.NewLBAgent(agent.NewCachedDataAccess(cl), runnerPool, placer)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user