envoy: refactor envoy embedding (#2296)

* envoy: add full version

* remove unused import

* envoy: refactor envoy embedding

* fix lint

* commit ignored files

* maybe fix test
This commit is contained in:
Caleb Doxsey 2021-06-15 08:18:30 -06:00 committed by GitHub
parent 31fa214983
commit 9bce8314ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 108 additions and 100 deletions

View file

@ -33,6 +33,7 @@ func (srv *Server) runProcessCollector(ctx context.Context) {
if err := view.Register(pc.Views()...); err != nil {
log.Error(ctx).Err(err).Msg("failed to register envoy process metric views")
}
defer view.Unregister(pc.Views()...)
const collectInterval = time.Second * 10
ticker := time.NewTicker(collectInterval)