mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(core): Add workflow name label to workflow metrics (#16837)
Co-authored-by: Marc Littlemore <marc@n8n.io>
This commit is contained in:
@@ -61,6 +61,10 @@ class PrometheusMetricsConfig {
|
||||
/** How often (in seconds) to update active workflow metric */
|
||||
@Env('N8N_METRICS_ACTIVE_WORKFLOW_METRIC_INTERVAL')
|
||||
activeWorkflowCountInterval: number = 60;
|
||||
|
||||
/** Whether to include a label for workflow name on workflow metrics. */
|
||||
@Env('N8N_METRICS_INCLUDE_WORKFLOW_NAME_LABEL')
|
||||
includeWorkflowNameLabel: boolean = false;
|
||||
}
|
||||
|
||||
@Config
|
||||
|
||||
@@ -176,6 +176,7 @@ describe('GlobalConfig', () => {
|
||||
enable: false,
|
||||
prefix: 'n8n_',
|
||||
includeWorkflowIdLabel: false,
|
||||
includeWorkflowNameLabel: false,
|
||||
includeDefaultMetrics: true,
|
||||
includeMessageEventBusMetrics: false,
|
||||
includeNodeTypeLabel: false,
|
||||
|
||||
Reference in New Issue
Block a user