Skip to content

洞察环境变量#

¥Insights environment variables

File-based configuration

You can add _FILE to individual variables to provide their configuration in a separate file. Refer to Keeping sensitive data in separate files for more details.

Insights 功能使实例所有者和管理员能够了解工作流随时间推移的运行情况。有关详细信息,请联系 洞察

¥Insights gives instance owners and admins visibility into how workflows perform over time. Refer to Insights for details.

变量 类型 默认 描述
N8N_DISABLED_MODULES 字符串 * 设置为 insights 可禁用实例的功能和指标收集。
N8N_INSIGHTS_COMPACTION_BATCH_SIZE 数字 500 单个批次中要压缩的原始 Insights 数据量。
N8N_INSIGHTS_COMPACTION_DAILY_TO_WEEKLY_THRESHOLD_DAYS 数字 180 每日洞察数据压缩的最大期限(以天为单位)。
N8N_INSIGHTS_COMPACTION_HOURLY_TO_DAILY_THRESHOLD_DAYS 数字 90 每小时洞察数据压缩的最大期限(以天为单位)。
N8N_INSIGHTS_COMPACTION_INTERVAL_MINUTES 数字 60 压缩运行的间隔(分钟)。
N8N_INSIGHTS_FLUSH_BATCH_SIZE 数字 1000 刷新缓冲区前保留的最大洞察数据量。
N8N_INSIGHTS_FLUSH_INTERVAL_SECONDS 数字 30 洞察数据刷新到数据库的间隔(以秒为单位)。