mirror of
https://github.com/BreizhHardware/express-prom-bundle.git
synced 2026-01-18 16:27:28 +01:00
add customLabels and transformLabels to advanced example
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user