Make it possible to disable annotations for Graphite. (#3625)
https://github.com/sitespeedio/sitespeed.io/issues/3624
This commit is contained in:
parent
34784e419b
commit
ae64cf8b9c
|
|
@ -59,6 +59,13 @@ module.exports = {
|
|||
'Include screenshot (from Browsertime/WebPageTest) in the annotation. You need to specify a --resultBaseURL for this to work.',
|
||||
group: 'Graphite'
|
||||
},
|
||||
sendAnnotation: {
|
||||
default: true,
|
||||
type: 'boolean',
|
||||
describe:
|
||||
'Send annotations when a run is finished. You need to specify a --resultBaseURL for this to work. However if you for example use a Prometheus exporter, you may want to make sure annotations are not sent, then set it to false.',
|
||||
group: 'Graphite'
|
||||
},
|
||||
annotationRetentionMinutes: {
|
||||
type: 'number',
|
||||
describe:
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ module.exports = {
|
|||
this.messageTypesToFireAnnotations = [];
|
||||
this.receivedTypesThatFireAnnotations = {};
|
||||
this.make = context.messageMaker('graphite').make;
|
||||
this.sendAnnotation = true;
|
||||
this.sendAnnotation = opts.sendAnnotation || true;
|
||||
this.alias = {};
|
||||
this.wptExtras = {};
|
||||
this.usingBrowsertime = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue