Skip to content

Commit

Permalink
Upgrade stats listener to new go-control-plane
Browse files Browse the repository at this point in the history
Ref: 6b4b9d57e00ae5fb57c0f7c85eb1b7ac33d3432a
  • Loading branch information
chintan8saaras committed Jun 30, 2022
1 parent 0b0fc51 commit d884fdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion enroute-dp/internal/envoy/stats.go
Expand Up @@ -22,6 +22,8 @@ import (
envoy_extensions_filters_network_http_connection_manager_v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3"
"github.com/envoyproxy/go-control-plane/pkg/wellknown"
"github.com/saarasio/enroute/enroute-dp/internal/protobuf"
"github.com/golang/protobuf/ptypes/any"
cfg "github.com/saarasio/enroute/enroute-dp/saarasconfig"
)

// metrics on /stats.
Expand Down Expand Up @@ -72,7 +74,12 @@ func StatsListener(address string, port int) *envoy_config_listener_v3.Listener
},
},
HttpFilters: []*envoy_extensions_filters_network_http_connection_manager_v3.HttpFilter{{
Name: wellknown.Router,
Name: "router",
ConfigType: &envoy_extensions_filters_network_http_connection_manager_v3.HttpFilter_TypedConfig{
TypedConfig: &any.Any{
TypeUrl: cfg.HTTPFilterRouter,
},
},
}},
NormalizePath: protobuf.Bool(true),
}),
Expand Down

0 comments on commit d884fdf

Please sign in to comment.