mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
tuned threshold min peers
This commit is contained in:
@@ -23,31 +23,31 @@ monitors:
|
||||
channel: newprefix
|
||||
name: prefix-detection
|
||||
params:
|
||||
thresholdMinPeers: 2
|
||||
thresholdMinPeers: 3
|
||||
|
||||
- file: monitorPath
|
||||
channel: path
|
||||
name: path-matching
|
||||
params:
|
||||
thresholdMinPeers: 0
|
||||
thresholdMinPeers: 1
|
||||
|
||||
- file: monitorVisibility
|
||||
channel: visibility
|
||||
name: withdrawal-detection
|
||||
params:
|
||||
thresholdMinPeers: 20
|
||||
thresholdMinPeers: 40
|
||||
|
||||
- file: monitorAS
|
||||
channel: misconfiguration
|
||||
name: asn-monitor
|
||||
params:
|
||||
thresholdMinPeers: 2
|
||||
thresholdMinPeers: 3
|
||||
|
||||
- file: monitorRPKI
|
||||
channel: rpki
|
||||
name: rpki-monitor
|
||||
params:
|
||||
thresholdMinPeers: 1
|
||||
thresholdMinPeers: 2
|
||||
checkUncovered: false
|
||||
preCacheROAs: true
|
||||
refreshVrpListMinutes: 15
|
||||
|
10
src/env.js
10
src/env.js
@@ -84,7 +84,7 @@ let config = {
|
||||
channel: "path",
|
||||
name: "path-matching",
|
||||
params: {
|
||||
thresholdMinPeers: 0
|
||||
thresholdMinPeers: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -92,7 +92,7 @@ let config = {
|
||||
channel: "newprefix",
|
||||
name: "prefix-detection",
|
||||
params: {
|
||||
thresholdMinPeers: 2
|
||||
thresholdMinPeers: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -100,7 +100,7 @@ let config = {
|
||||
channel: "visibility",
|
||||
name: "withdrawal-detection",
|
||||
params: {
|
||||
thresholdMinPeers: 20
|
||||
thresholdMinPeers: 40
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -108,7 +108,7 @@ let config = {
|
||||
channel: "misconfiguration",
|
||||
name: "as-monitor",
|
||||
params: {
|
||||
thresholdMinPeers: 2
|
||||
thresholdMinPeers: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -118,7 +118,7 @@ let config = {
|
||||
params: {
|
||||
preCacheROAs: true,
|
||||
refreshVrpListMinutes: 15,
|
||||
thresholdMinPeers: 1,
|
||||
thresholdMinPeers: 2,
|
||||
checkUncovered: false
|
||||
}
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ export default class MonitorAS extends Monitor {
|
||||
|
||||
constructor(name, channel, params, env){
|
||||
super(name, channel, params, env);
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0;
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 3;
|
||||
this.updateMonitoredResources();
|
||||
};
|
||||
|
||||
|
@@ -36,7 +36,7 @@ export default class MonitorNewPrefix extends Monitor {
|
||||
|
||||
constructor(name, channel, params, env){
|
||||
super(name, channel, params, env);
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 2;
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 3;
|
||||
this.updateMonitoredResources();
|
||||
};
|
||||
|
||||
|
@@ -36,7 +36,7 @@ export default class MonitorPath extends Monitor {
|
||||
|
||||
constructor(name, channel, params, env){
|
||||
super(name, channel, params, env);
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0;
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 1;
|
||||
this.updateMonitoredResources();
|
||||
};
|
||||
|
||||
|
@@ -16,7 +16,7 @@ export default class MonitorRPKI extends Monitor {
|
||||
this.updateMonitoredResources();
|
||||
});
|
||||
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0;
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 2;
|
||||
this.validationQueue = [];
|
||||
|
||||
this.loadRpkiValidator(env);
|
||||
|
@@ -37,7 +37,7 @@ export default class MonitorVisibility extends Monitor {
|
||||
|
||||
constructor(name, channel, params, env){
|
||||
super(name, channel, params, env);
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 10;
|
||||
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 40;
|
||||
if (params.threshold) {
|
||||
this.logger.log({
|
||||
level: 'error',
|
||||
|
Reference in New Issue
Block a user