UiPath Documentation
automation-suite
2.2510
true
Linux 版 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

监控 Automation Suite

Automation Suite 中的监控功能,包括 Prometheus、Grafana 和 Alertmanager 集成。

默认情况下,Automation Suite 包含预配置的 Prometheus、Grafana 和 Alert Manager 组件,提供:

  • 即用型仪表板
  • 开箱即用的警示规则
  • 核心组件的集成日志和指标

或者,您可以将指标导出到自己的监控工具。有关详细信息,请参阅外部监控工具

有关可以监控的组件的列表,请参阅部署架构

使用监控堆栈

备注:

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

  • 必须配置警示接收人,以防止出现任何可能导致停机的问题。
  • 您可以参考仪表板以进行定期监控。
  • 您可以参阅日志进行故障排除。

访问监控工具

概述

您可以使用以下 URL 单独访问 Automation Suite 监控工具:

应用程序工具URL示例
指标Prometheushttps://monitoring.fqdn/metricshttps://monitoring.automationsuite.mycompany.com/metrics
仪表板Grafanahttps://monitoring.fqdn/grafanahttps://monitoring.automationsuite.mycompany.com/grafana
警示管理警示管理器https://monitoring.fqdn/alertmanagerhttps://monitoring.automationsuite.mycompany.com/alertmanager

有关如何获取 Grafana 凭据的详细信息,请参阅“访问 Grafana 仪表板”部分。

备注:

如果您已排除内置监控组件,则相关工具和 URL 将不可用。有关详细信息,请参阅可选:配置监控解决方案

监控工具身份验证

首次访问监控工具时,请使用以下默认凭据以管理员身份登录:

  • 用户名: admin

  • 密码:要检索密码,请运行以下命令:

    kubectl get secrets/dex-static-credential -n uipath -o "jsonpath={.data['password']}" | base64 --decode
    kubectl get secrets/dex-static-credential -n uipath -o "jsonpath={.data['password']}" | base64 --decode
    
Dex 身份验证

要在访问监控工具时更新用于 Dex 身份验证的默认密码,请执行以下步骤。

备注:

Dex 是基于监控工具的基本身份验证方法。 因此,更新 Dex 密码不会影响监控工具的密码。 在这种情况下,监控工具的密码将与以前相同。

  1. 通过将 newpassword 替换为您的新密码来运行以下命令:

    password="newpassword"
    password=$(echo -n $password | base64)
    kubectl patch secret dex-static-credential -n uipath --type='json' -p="[{'op': 'replace', 'path': '/data/password', 'value': '$password'}]"
    password="newpassword"
    password=$(echo -n $password | base64)
    kubectl patch secret dex-static-credential -n uipath --type='json' -p="[{'op': 'replace', 'path': '/data/password', 'value': '$password'}]"
    
  2. 运行以下命令以更新密码:

    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    

集成外部监控工具

如果您的组织更喜欢使用集中式可观察性平台(例如 Datadog、ELK、New Relic),则可以在安装过程中通过更新cluster_config.json配置文件来禁用内置监控组件。有关详细信息,请参阅可选:配置监控解决方案

导出关键指标

当您使用外部监控解决方案时,必须收集和监控某些关键平台指标(例如证书过期),以维护平台的可靠性和安全性。

为支持此操作,即使排除内置监控,Automation Suite 也会部署推送网关。推送网关会定期推送重要指标,以便外部系统可以抓取这些指标并生成警示。

内部平台作业会收集证书和许可证过期数据,并将其发送到推送网关。然后,外部 Prometheus 实例可以抓取端点并根据需要触发警示。

以下关键指标可通过推送网关进行外部监控:

指标名称描述
rke2-cert-expiryRKE2 节点或服务器证书过期前的天数。
tls-cert-expiryKubernetes 密码中的 TLS 证书过期前的天数。
redis-license-expiryRedis 企业版许可证过期前的天数。
signing-certificate-expires-30表示身份签名证书将在 30 天后过期。
signing-certificate-expires-7表示身份签名证书将在 7 天后过期。

以下示例显示了 Prometheus 抓取时的tls-cert-expiry指标:

tls_cert_expiry {
  certname="ca.crt",
  instance="",
  job="tls-cert-expiry",
  ns="istio-system",
  secret="istio-ingressgateway-certs"
} 10
tls_cert_expiry {
  certname="ca.crt",
  instance="",
  job="tls-cert-expiry",
  ns="istio-system",
  secret="istio-ingressgateway-certs"
} 10

在此示例中,命名空间istio-system中的证书ca.crt存储在密码istio-ingressgateway-certs中,将在 10 天后过期。

  • 使用监控堆栈
  • 访问监控工具
  • 集成外部监控工具
  • 导出关键指标

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新