prometheus服务不正常pod日志报错panic:runtime error:index out of range

  其他常见问题
内容纲要

概要描述

本文描述prometheus服务pod不正常启动失败,且日志报错panic:runtime error:index out of range的解决方案

详细描述

问题描述

Aquila的prometheus服务pod不正常启动失败,且日志报错panic:runtime error:index out of range,具体报错信息如下图所示:

file

解决方案

  1. 找到prometheus服务对应的服务器节点

file

  1. 备份并清空/aquila/prometheus/data/wal 目录
    mkdir /tmp/wal
    mv /aquila/prometheus/data/wal/* /tmp/wal/
  2. 重启prometheus服务pod或者页面上重启prometheus角色

file

![file](https://nj.transwarp.cn:8180/wp-content/uploads/2022/01/image-1646017627975.png)

这篇文章对您有帮助吗?

平均评分 0 / 5. 次数: 0

尚无评价,您可以第一个评哦!

非常抱歉,这篇文章对您没有帮助.

烦请您告诉我们您的建议与意见,以便我们改进,谢谢您。