Include slug in the annotation. (#3251)

This commit is contained in:
Peter Hedenskog 2021-01-13 09:46:22 +01:00 committed by GitHub
parent 0fcc0d62d3
commit fa0f9e0126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,9 @@ module.exports = {
urlAndGroup[0],
urlAndGroup[1]
];
if (options.slug) {
tags.push(options.slug);
}
const extraTags = util.toArray(options.grafana.annotationTag);
// We got some extra tag(s) from the user, let us add them to the annotation
if (extraTags.length > 0) {

View File

@ -45,6 +45,9 @@ module.exports = {
urlAndGroup[0],
urlAndGroup[1]
];
if (options.slug) {
tags.push(options.slug);
}
const extraTags = util.toArray(options.graphite.annotationTag);
// We got some extra tag(s) from the user, let us add them to the annotation
if (extraTags.length > 0) {

View File

@ -37,6 +37,10 @@ module.exports = {
.split('.');
let tags = [connectivity, browser, urlAndGroup[0], urlAndGroup[1]];
if (options.slug) {
tags.push(options.slug);
}
if (webPageTestExtraData) {
tags.push(webPageTestExtraData.connectivity);
tags.push(webPageTestExtraData.location);