feat(core): Add metrics option to cache (#6846)

* add metrics to cache

* use events for metrics

* pr comments / broken test

* lint fix

* update the test

* improve tests

* Update packages/cli/src/config/schema.ts

* disable flaky test

* lint fix

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
Michael Auerswald
2023-08-04 20:51:07 +02:00
committed by GitHub
parent fdfc6c5a92
commit adcf5a96e8
12 changed files with 315 additions and 159 deletions

View File

@@ -578,6 +578,18 @@ export const schema = {
env: 'N8N_METRICS_INCLUDE_API_STATUS_CODE_LABEL',
doc: 'Whether to include a label for the HTTP status code (200, 404, ...) of API invocations. Default: false',
},
includeCacheMetrics: {
format: Boolean,
default: false,
env: 'N8N_METRICS_INCLUDE_CACHE_METRICS',
doc: 'Whether to include metrics for cache hits and misses. Default: false',
},
includeMessageEventBusMetrics: {
format: Boolean,
default: true,
env: 'N8N_METRICS_INCLUDE_MESSAGE_EVENT_BUS_METRICS',
doc: 'Whether to include metrics for events. Default: false',
},
},
rest: {
format: String,