fix: host filter accepts all and comma lists; hub no longer drops traefik lines after a copytruncate rotation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19afd221e2
commit
7b90d9e40f
15 files changed
+329
-85
No files matched your search
@@ -1317,7 +1317,7 @@
|
||||
this.listDirty = true;
|
||||
if (this.paused || this.hidden || this.offHosts[r.host] || (dev && this.offDev[dev])) return;
|
||||
var h = this.ctx && this.ctx.host;
|
||||
if (h && h !== 'all' && h !== r.host) return;
|
||||
if (h && h !== 'all' && (',' + h + ',').indexOf(',' + r.host + ',') < 0) return;
|
||||
this.map.spawn(e, { visit: true });
|
||||
};
|
||||
P.visitBatch = function (e) { if (isNum(e.n) && e.n > 0) this.vcount(Math.min(e.n, 1e6), isNum(e.t) ? e.t : Date.now() / 1000, '', ''); };
|
||||
@@ -1500,21 +1500,21 @@
|
||||
P.draw = function (r) {
|
||||
if (this.offCats[r.cat] || this.offHosts[r.host]) return;
|
||||
var h = this.ctx && this.ctx.host;
|
||||
if (h && h !== 'all' && h !== r.host) return;
|
||||
if (h && h !== 'all' && (',' + h + ',').indexOf(',' + r.host + ',') < 0) return;
|
||||
this.map.spawn(r.ev);
|
||||
};
|
||||
|
||||
P.visible = function (r) {
|
||||
if (this.offCats[r.cat] || this.offHosts[r.host]) return false;
|
||||
var h = this.ctx && this.ctx.host;
|
||||
return !h || h === 'all' || h === r.host;
|
||||
return !h || h === 'all' || (',' + h + ',').indexOf(',' + r.host + ',') >= 0;
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------ panels and metrics
|
||||
P.hostOk = function (h) {
|
||||
if (this.offHosts[h]) return false;
|
||||
var c = this.ctx && this.ctx.host;
|
||||
return !c || c === 'all' || c === h;
|
||||
return !c || c === 'all' || (',' + c + ',').indexOf(',' + h + ',') >= 0;
|
||||
};
|
||||
|
||||
// sums the minute buckets from..to (inclusive) over the visible hosts (or all of them)
|
||||
|
||||
Reference in new issue
Block a user