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

Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误

描述​

在某些情况下,Prometheus Pod 可能由于内存不足 (OOM) 错误而无法启动。要识别受影响的 Prometheus Pod,请搜索与 OOM 错误明确相关的上一个终止状态。

解决方案​

要解决此问题,请执行以下步骤:

  1. 通过更新 resource.exclusions 来更新 argocd configmap 以忽略 service-monitors。

    1. 创建旧 configmap 的备份:

      kubectl get  configmap argocd-cm -n argocd -o yaml >> argocd-cm-old.yaml
      kubectl get  configmap argocd-cm -n argocd -o yaml >> argocd-cm-old.yaml
      
    2. 编辑 argocd-cm:

      kubectl edit configmap argocd-cm -n argocd
      kubectl edit configmap argocd-cm -n argocd
      
    3. 为 resource.exclusions 添加新的数据条目:

      data:
        resource.exclusions: |
          - apiGroups:
              - monitoring.coreos.com
            kinds:
              - ServiceMonitor
            clusters:
              - "*"
      data:
        resource.exclusions: |
          - apiGroups:
              - monitoring.coreos.com
            kinds:
              - ServiceMonitor
            clusters:
              - "*"
      
  2. 删除 istio-system 命名空间下的 envoy-stats-monitor 服务监控:

    kubectl -n istio-system  delete servicemonitor  envoy-stats-monitor
    kubectl -n istio-system  delete servicemonitor  envoy-stats-monitor
    
  3. 强制删除 Prometheus Pod:

    kubectl delete pod  prometheus-rancher-monitoring-prometheus-0  -n cattle-monitoring-system
    kubectl delete pod  prometheus-rancher-monitoring-prometheus-1  -n cattle-monitoring-system
    kubectl delete pod  prometheus-rancher-monitoring-prometheus-0  -n cattle-monitoring-system
    kubectl delete pod  prometheus-rancher-monitoring-prometheus-1  -n cattle-monitoring-system
    
  4. 等待 cattle-monitoring-system 下的 Prometheus Pod 成功重新启动。

重要提示:

Deleting the the wal and chunks_head directories results in a loss of all monitoring data gathered during the days these files were accumulated. However, once Prometheus is up and running again, any new alerts and metrics data will be accessible.

  • 描述​
  • 解决方案​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新