Skip to content

洞察(Insights)#

洞察功能为实例所有者和管理员提供了对工作流随时间表现的可视化。该功能包括三个部分:

🌐 Insights gives instance owners and admins visibility into how workflows perform over time. This feature consists of three parts:

  • 洞察摘要横幅:在概览空间顶部显示您实例过去 7 天的关键指标。
  • 洞察仪表板:提供更详细的可视化分析,包括每个工作流程的指标和历史比较。
  • 节省时间(工作流投资回报):对于每个工作流,您可以选择设置每个工作流节省的固定时间,或者根据特定工作流执行路径的实际情况动态计算节省的时间。

功能可用性

洞察摘要横幅显示所有计划在过去 7 天的活动情况。洞察仪表板仅在专业版(日期范围有限)和企业版计划中可用。

洞察摘要横幅(Insights summary banner)#

n8n 收集了多个指标,用于洞察摘要横幅和仪表板。它们包括:

🌐 n8n collects several metrics for both the insights summary banner and dashboard. They include:

  • 总生产执行次数(不包括子工作流执行或手动执行)
  • 生产环境执行失败总数
  • 生产执行失败率
  • 节省的时间(当至少在一个或多个活动工作流中设置时)。
  • 平均运行时间(包括来自任何等待节点的等待时间)

洞察仪表盘(Insights dashboard)#

Pro 和 Enterprise 计划的用户可以从侧边导航访问 Insights(洞察) 部分。摘要横幅中的每个指标也是可点击的,点击后会跳转到相应的图表。

🌐 Those on the Pro and Enterprise plans can access the Insights section from the side navigation. Each metric from the summary banner is also clickable, taking you to the corresponding chart.

洞察仪表板还包含一个表格,显示每个工作流的各项洞察信息,包括生产执行总数、生产执行失败次数、失败率、节省时间以及平均运行时间。

🌐 The insights dashboard also has a table showing individual insights from each workflow including total production executions, failed production executions, failure rate, time saved, and run time average.

洞察时间段(Insights time periods)#

默认情况下,洞察摘要横幅和仪表板显示滚动的 7 天窗口,并与前一期间进行比较,以识别各指标的增长或下降。在仪表板上,付费计划还会显示其他日期范围的数据:

🌐 By default, the insights summary banner and dashboard show a rolling 7 day window with a comparison to the previous period to identify increases or decreases for each metric. On the dashboard, paid plans also display data for other date ranges:

  • 优点:7天和14天
  • 企业版:24小时、7天、14天、30天、90天、6个月、1年

设置工作流节省的时间(Setting the time saved by a workflow)#

对于每个工作流程,你都可以追踪它为你节省了多少时间。此设置可帮助你计算自动化一个过程随时间节省的时间,相对于完成相同任务或流程的人工时间。

🌐 For each workflow, you can track how much time it saves you. This setting helps you calculate how much time automating a process saves over time vs the manual effort to complete the same task or process.

配置完成后,n8n 会根据生产执行次数计算工作流为你节省的时间,并将其显示在摘要横幅和洞察仪表板上。

🌐 Once configured, n8n calculates the amount of time the workflow saves you based on the number of production executions and displays it on the summary banner and insights dashboard.

你可以选择两种计算节省时间的方法:

🌐 You can choose between two methods for calculating time saved:

固定时间已保存(Fixed time saved)#

使用固定时间保存后,你可以设置一个单一的时间值,该值适用于工作流的每次生产执行,无论执行路径如何。

🌐 With fixed time saved, you set a single time value that applies to every production execution of the workflow, regardless of which path the execution takes.

配置固定保存时间:

🌐 To configure fixed time saved:

  1. 导航到工作流
  2. 点击右上角的三个点菜单,然后选择 设置
  3. 预计节省时间下拉菜单中,选择固定
  4. 输入每次执行节省的工作分钟数
  5. 保存你的设置

动态节省时间(Dynamic time saved)#

动态节省时间根据实际执行路径计算时间节省,考虑到不同执行路径节省的时间不同的工作流程。

🌐 Dynamic time saved calculates time savings based on the actual execution path taken, accounting for workflows where different execution paths save different amounts of time.

配置动态保存时间:

🌐 To configure dynamic time saved:

  1. 导航到工作流
  2. 点击右上角的三个点菜单,然后选择 设置
  3. 预计节省时间下拉菜单中,选择动态
  4. 保存你的设置
  5. 在节省时间的环节将 节省时间 节点添加到你的工作流程中
  6. 对于每个节省时间的节点,配置: - 节省时间:节省的时间(以分钟为单位) - 计算模式:选择是对执行中的所有项目计算一次节省的时间,还是对每个项目计算,这将使节省的分钟数乘以输入项目的总数

当你使用动态节省时间时,n8n 会将工作流运行期间执行的所有“节省时间”节点的时间累加,以计算该次运行的总节省时间。

🌐 When you use dynamic time saved, n8n adds up the time from all Time Saved nodes that execute during a workflow run to calculate the total time saved for that execution.

子工作流支持

当前,节省的时间跟踪仅适用于父工作流。子工作流的节省时间目前尚不支持,计划在未来的版本中支持此功能。

禁用或配置 Insights 指标收集(Disable or configure insights metrics collection)#

如果你自托管 n8n,你可以使用 环境变量 禁用或配置洞察和指标收集。

🌐 If you self-host n8n, you can disable or configure insights and metrics collection using environment variables.

洞察常见问题解答(Insights FAQs)#

n8n 使用哪些执行来计算洞察横幅和仪表板中的值?(Which executions do n8n use to calculate the values in the insights banner and dashboard?)#

n8n Insights 仅从主(父)工作流的生产执行中收集数据(例如,由调度或 webhook 触发的活跃工作流)。这意味着它不计算手动(测试)执行或来自子工作流或错误工作流的执行。

🌐 n8n insights only collects data from production executions (for example, those from active workflows triggered on a schedule or a webhook) from the main (parent) workflow. This means that it doesn't count manual (test) executions or executions from sub-workflows or error workflows.

n8n 在升级到包含 Insights 功能的版本时是否使用历史执行数据?(Does n8n use historic execution data when upgrading to a version with insights?)#

n8n 只有在你更新到第一个支持的版本(1.89.0)后才会开始收集数据以获取洞察。这意味着它只会报告从那时起的执行情况,你不会在洞察中看到之前时期的执行数据。

🌐 n8n only starts collecting data for insights once you update to the first supported version (1.89.0). This means it only reports on executions from that point forward and you won't see execution data in insights from prior periods.