add customLabels and transformLabels to advanced example

This commit is contained in:
Konstantin Pogorelov
2017-09-23 12:13:14 +02:00
parent a261ab76a3
commit 26f9f5ca10

View File

@@ -8,7 +8,9 @@ const bundle = promBundle({
blacklist: [/up/],
buckets: [0.1, 0.4, 0.7],
includeMethod: true,
includePath: true
includePath: true,
customLabels: {year: null},
transformLabels: labels => Object.assign(labels, {year: new Date().getFullYear()})
});
app.use(bundle);