Make it possible to disable annotations for Graphite. (#3625)

https://github.com/sitespeedio/sitespeed.io/issues/3624
This commit is contained in:
Peter Hedenskog 2022-04-11 14:33:45 +02:00 committed by GitHub
parent 34784e419b
commit ae64cf8b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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:

View File

@ -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;