内容纲要
概要描述
本文描述prometheus服务pod不正常启动失败,且日志报错panic:runtime error:index out of range的解决方案
详细描述
问题描述
Aquila的prometheus服务pod不正常启动失败,且日志报错panic:runtime error:index out of range,具体报错信息如下图所示:
解决方案
- 找到prometheus服务对应的服务器节点
- 备份并清空/aquila/prometheus/data/wal 目录
mkdir /tmp/wal mv /aquila/prometheus/data/wal/* /tmp/wal/
- 重启prometheus服务pod或者页面上重启prometheus角色
![file](https://nj.transwarp.cn:8180/wp-content/uploads/2022/01/image-1646017627975.png)