mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
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:
parent
31fa214983
commit
9bce8314ba
15 changed files with 108 additions and 100 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue