Insights 环境变量#
基于文件的配置
您可以为单个变量添加_FILE,以便在单独的文件中提供其配置。详情请参阅将敏感数据保存在单独文件中。
Insights功能为实例所有者和管理员提供了工作流随时间推移的性能可视化。详情请参阅Insights。
| 变量 | 类型 | 默认值 | 描述 |
|---|---|---|---|
N8N_DISABLED_MODULES |
String | - | Set to insights to disable the feature and metrics collection for an instance. |
N8N_INSIGHTS_COMPACTION_BATCH_SIZE |
Number | 500 | The number of raw insights data to compact in a single batch. |
N8N_INSIGHTS_COMPACTION_DAILY_TO_WEEKLY_THRESHOLD_DAYS |
Number | 180 | The maximum age (in days) of daily insights data to compact. |
N8N_INSIGHTS_COMPACTION_HOURLY_TO_DAILY_THRESHOLD_DAYS |
Number | 90 | The maximum age (in days) of hourly insights data to compact. |
N8N_INSIGHTS_COMPACTION_INTERVAL_MINUTES |
Number | 60 | Interval (in minutes) at which compaction should run. |
N8N_INSIGHTS_FLUSH_BATCH_SIZE |
Number | 1000 | The maximum number of insights data to keep in the buffer before flushing. |
N8N_INSIGHTS_FLUSH_INTERVAL_SECONDS |
Number | 30 | The interval (in seconds) at which the insights data should be flushed to the database. |