automation-suite
2021.10
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white
不在支持范围内

Automation Suite installation guide

上次更新日期 2025年2月24日

使用监控堆栈

Automation Suite 集群的监控堆栈包括集成在 Rancher Cluster Explorer 用户界面中的 Prometheus、Grafana 和 Alertmanager。

备注:

节点故障可能会导致 Kubernetes 关闭,从而中断 Prometheus 警示。为防止出现这种情况,我们建议在 RKE2 服务器上设置单独的警示。

本页描述了一系列监控方案。有关更多详细信息,请参阅有关使用 Rancher 监控的官方 Rancher 文档。

重要提示:

使用收集器将指标导出到第三方工具时,如果启用应用程序监控,可能会中断 Automation Suite 的正常运行。

访问 Rancher 监控仪表板

  1. 通过 https://monitoring.{cluster_host} 访问 Rancher Cluster Explorer。系统提示何种屏幕取决于您是否是第一次连接 Rancher Server。
  2. 输入密码。两种情况下的密码都相同。可以使用以下命令来完成此操作:
    kubectl get secret -n cattle-system rancher-admin-password -o jsonpath='{.data.password}' | base64 -d && echokubectl get secret -n cattle-system rancher-admin-password -o jsonpath='{.data.password}' | base64 -d && echo




  3. 单击 Rancher Server 主页上的“本地”链接,打开 Cluster Explorer


  4. 单击侧边栏上的“监控”菜单。




检查当前触发的警示

监控仪表板中,检查底部窗格中是否有当前触发的警示。以下屏幕截图显示了当前触发的几个警示。



静默警示

如果警示过于嘈杂,您可以将其静音。为此,请执行以下步骤:

  1. Select the Alertmanager tile in the upper left corner of the Monitoring dashboard. The following screen is displayed.


  2. 找到相关警示,然后选择“静默”。


  3. 填写“创建者”和“注释”详细信息,然后选择“创建”。警示应该不会再显示在监控仪表板上,也应该不会报告给任何已配置的收件人。

向外部接收器发送警示

强烈建议您设置外部警示接收器。这样,警示将在发生时推送,您无需刷新监控仪表板即可查看最新的警示。

有关如何向外部接收器发送警示的详细信息,请参阅警示管理器接收器配置的相关 Rancher 文档。



除了接收器外,您还必须配置至少一个使用该接收器的路由。路由定义了警示的分组方式,以及会将哪些警示发送给接收器。请参阅 Rancher 文档中的警示管理器路由配置



有关使用 Slack 接收器时如何显示警示的示例,请参见下文。单击“警示管理器”的链接将带您进入警示管理器控制台,在该控制台中您可以将警示静音,并且还有触发警示的 Prometheus 表达式的更多链接。单击 Runbook URL 将转到此页面,其中包含特定的修复说明。向其他外部接收器发送警示时,也会显示这些链接。



访问 Grafana 仪表板

在“监控”仪表板上,单击“Grafana”图块。现在将显示“Grafana”仪表板。



监控服务网格

您可以通过以下 Grafana 仪表板监控 Istio 服务网格:Istio 网格Istio 工作负载

Istio 网格仪表板

此仪表板显示所选时间段内整个服务网格的整体请求量以及 400 和 500 错误率。数据显示在窗口的右上角。有关此信息,请参阅顶部的 4 张图表。

它还显示每项服务在过去一分钟内的即时成功率。请注意,成功率为 NaN 表示该服务当前未提供流量。



Istio 工作负载仪表板

此仪表板显示窗口右上角所选时间范围内的流量指标。

使用仪表板顶部的选取器深入了解特定的工作负载。特别值得一提的是 UiPath 命名空间。

顶部显示整体指标,“入站工作负载”部分根据来源分离流量,“出站服务”部分根据目标分离流量。





监控持久卷

您可以通过 Kubernetes/持久卷仪表板监控持久卷。您可以跟踪每个卷的可用空间和已用空间。



您还可以通过单击 Cluster Explore 的“存储”菜单中的“持久卷”项目来检查每个卷的状态。



监控硬件利用率

要检查每个节点的硬件利用率,您可以使用节点仪表板。可以使用 CPU、内存、磁盘和网络上的数据。



您可以使用 Kubernetes/计算资源/命名空间(工作负载)仪表板监控特定工作负载的硬件利用率。选择 UiPath 命名空间以获取所需的数据。



创建可共享的 Grafana 图表可视化快照

  1. Select the downwards pointing arrow next to the chart title, and then select Share.
  2. Select the Snapshot tab, and set the Snapshot name,Expire, and Timeout.
  3. Select Publish to snapshot.raintank.io.

有关更多详细信息,请参阅有关共享仪表板的 Grafana 文档。

注意:任何知道此链接的人都可以在公共互联网上查看此快照。

创建自定义持久性 Grafana 仪表板

有关如何创建自定义持久性 Grafana 仪表板的详细信息,请参阅 Rancher 文档

对 Grafana 的管理员访问权限

Admin access to Grafana is not typically needed in Automation Suite clusters as dashboards are available for read access by default to anonymous users, and creating custom persistent dashboards must be created using the Kubernetes-native instructions previously linked in this document.

Nonetheless, admin access to Grafana is possible with the following instructions.

可以按如下方式检索 Grafana 管理员访问权限的默认用户名和密码:

kubectl get secret -n cattle-monitoring-system rancher-monitoring-grafana -o jsonpath='{.data.admin-user}' | base64 -d && echo
kubectl get secret -n cattle-monitoring-system rancher-monitoring-grafana -o jsonpath='{.data.admin-password}' | base64 -d && echokubectl get secret -n cattle-monitoring-system rancher-monitoring-grafana -o jsonpath='{.data.admin-user}' | base64 -d && echo
kubectl get secret -n cattle-monitoring-system rancher-monitoring-grafana -o jsonpath='{.data.admin-password}' | base64 -d && echo

Note that in High Availability Automation Suite clusters, there are multiple Grafana pods in order to enable uninterrupted read access in case of node failure, as well as a higher volume of read queries. This is incompatible with admin access because the pods do not share session state and logging in requires it. In order to work around this, the number of Grafana replicas must be temporarily scaled to 1 while admin access is desired. See the instructions on how to scale the number of Grafana replicas:

# scale down
kubectl scale -n cattle-monitoring-system deployment/rancher-monitoring-grafana --replicas=1
# scale up
kubectl scale -n cattle-monitoring-system deployment/rancher-monitoring-grafana --replicas=2# scale down
kubectl scale -n cattle-monitoring-system deployment/rancher-monitoring-grafana --replicas=1
# scale up
kubectl scale -n cattle-monitoring-system deployment/rancher-monitoring-grafana --replicas=2

查询 Prometheus

监控仪表板上单击“Prometheus 图形”。系统将显示一个新窗口。

创建自定义警示

您可以使用带有布尔值表达式的 Prometheus 查询创建自定义警示。

  1. 为此,请在监控仪表板的“高级”菜单中单击“Prometheus 规则”。




  2. 单击窗口右上角的“创建”,以创建新的警示,然后按照 Rancher 文档进行操作:Prometheus 规则
  3. 当警示触发时,它应显示在监控仪表板上。此外,它将路由到任何已配置的接收器。

监控 Kubernetes 资源状态

要查看 Pod、部署、状态副本集等的状态,可以使用 Cluster Explorer 用户界面。这与登录到 Rancher-Server 端点后访问的登录页面相同。主页将显示摘要,并在左侧向下钻取每种资源类型的特定详细信息。请注意页面顶部的命名空间选取器。此仪表板也可以替换为 Lens 工具。





将 Prometheus 指标导出到外部系统

Prometheus 使用 Prometheus 远程写入功能收集 Prometheus 指标并将其导出到外部系统。

注意:UiPath 不支持或维护远程写入端点集成。但是,端点与 Automation Suite 中提供的 Prometheus 实例兼容。

要在 Automation Suite 集群上配置 remote_write,请执行以下操作:

  1. 连接到 ArgoCD
  2. 单击 “应用程序”
  3. 导航到 结构安装程序
  4. 打开“ 应用程序详细信息 ”面板并禁用 自我修复
  5. 导航到 rancher-monitoring 应用程序。


  6. 打开“应用程序详细信息”面板 >“清单”选项卡。


  7. 单击“编辑”,导航到“值”>“Prometheus”>“Prometheus 规范”部分。
  8. 添加所需的 remoteWrite 配置。
  9. 保存新配置。在应用新配置之前,rancher-monitoring 应用程序将显示“无法同步”。
    注意:Prometheus 无需重新启动即可应用新的远程写入配置。


  10. 测试所需的远程写入集成。返回到步骤 8 以添加新配置。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
© 2005-2025 UiPath。保留所有权利。