feat: 2.1.0 incidents, filter bar and IP analysis redesign; probe egress files fix
CI / Format and vet (pull_request) Successful in 1m1s
CI / Dependency audit (pull_request) Successful in 32s
CI / Tests (Linux, race detector) (pull_request) Successful in 1m55s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (hub) (push) Skipped
Release / Publish tags (probe) (push) Skipped
Release / Gitea release (push) Skipped
CI / Format and vet (pull_request) Successful in 1m1s
CI / Dependency audit (pull_request) Successful in 32s
CI / Tests (Linux, race detector) (pull_request) Successful in 1m55s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (hub) (push) Skipped
Release / Publish tags (probe) (push) Skipped
Release / Gitea release (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7c92d4b359
commit
00c4ab6d4a
15 files changed
+1063
-238
No files matched your search
@@ -60,6 +60,15 @@ func fromTail(p tail.Pos) wire.Pos {
|
||||
// startTailers launches one follower per configured source. A source with no
|
||||
// local position starts where the hub says it already has data.
|
||||
func (p *probe) startTailers(ctx context.Context, hubOffsets map[string]wire.Pos) {
|
||||
// containers.map and resolv.conf go into the queue before any line, so the
|
||||
// hub never judges a backlog of egress lines without them.
|
||||
ready := make(chan struct{})
|
||||
p.wg.Add(1)
|
||||
go func() { defer p.wg.Done(); p.watchFiles(ctx, ready) }()
|
||||
select {
|
||||
case <-ready:
|
||||
case <-ctx.Done():
|
||||
}
|
||||
for _, src := range p.sources {
|
||||
path := p.cfg.Paths[src]
|
||||
pos, ok := p.st.pos(src)
|
||||
@@ -86,13 +95,11 @@ func (p *probe) startTailers(ctx context.Context, hubOffsets map[string]wire.Pos
|
||||
p.wg.Add(1)
|
||||
go func() { defer p.wg.Done(); f.Run(ctx) }()
|
||||
}
|
||||
p.wg.Add(1)
|
||||
go func() { defer p.wg.Done(); p.watchFiles(ctx) }()
|
||||
}
|
||||
|
||||
// watchFiles sends containers.map and resolv.conf whole whenever they change,
|
||||
// and again after each reconnect.
|
||||
func (p *probe) watchFiles(ctx context.Context) {
|
||||
func (p *probe) watchFiles(ctx context.Context, ready chan<- struct{}) {
|
||||
files := []struct{ name, path string }{
|
||||
{wire.FileContainers, p.cfg.Containers},
|
||||
{wire.FileResolv, p.cfg.Resolv},
|
||||
@@ -120,6 +127,7 @@ func (p *probe) watchFiles(ctx context.Context) {
|
||||
}
|
||||
}
|
||||
check()
|
||||
close(ready)
|
||||
t := time.NewTicker(p.fileEvery)
|
||||
defer t.Stop()
|
||||
for {
|
||||
|
||||
Reference in new issue
Block a user