Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Grafana-agent down in dashboard status

未关闭
#25 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
grafana, helm, kubernetes, prometheus
领域
observability

调研方向

从 Helm 安装命令、提供的 values.yaml 以及 Grafana Agent 和 Grafana pod 日志开始。跟踪 Prometheus remote-write 错误和缺失的 /tmp/dashboards 路径,然后确认已部署的 dashboard 报告 agent 为 up,且不再出现这些重复错误。

由索引模型根据 Issue 内容生成。

描述

bug help wanted
Description

Grafana Agent shows down in dashboard status - newly deployed.

Screenshots

Screenshot 2024-09-26 at 7 03 48 PM

Screenshot 2024-09-26 at 7 03 29 PM

Log Messages

Grafana-agent logs (all periodically with similar error):

ts=2024-09-27T02:09:44.980753674Z level=error msg="non-recoverable error" component=prometheus.remote_write.default subcomponent=rw remote_name=bd527e url=http://prometheus.coder-observability.svc/api/v1/write count=2000 exemplarCount=0 err="server returned HTTP status 400 Bad Request: out of order sample"
ts=2024-09-27T02:09:50.086696001Z level=error msg="non-recoverable error" component=prometheus.remote_write.default subcomponent=rw remote_name=bd527e url=http://prometheus.coder-observability.svc/api/v1/write count=1558 exemplarCount=0 err="server returned HTTP status 400 Bad Request: out of order sample"
ts=2024-09-27T02:10:05.040293177Z level=error msg="non-recoverable error" component=prometheus.remote_write.default subcomponent=rw remote_name=bd527e url=http://prometheus.coder-observability.svc/api/v1/write count=626 exemplarCount=0 err="server returned HTTP status 400 Bad Request: out of order sample"
ts=2024-09-27T02:10:44.998642978Z level=error msg="non-recoverable error" component=prometheus.remote_write.default subcomponent=rw remote_name=bd527e url=http://prometheus.coder-observability.svc/api/v1/write count=2000 exemplarCount=0 err="server returned HTTP status 400 Bad Request: out of order sample"
ts=2024-09-27T02:11:05.079034516Z level=error msg="non-recoverable error" component=prometheus.remote_write.default subcomponent=rw remote_name=bd527e url=http://prometheus.coder-observability.svc/api/v1/write count=626 exemplarCount=0 err="server returned HTTP status 400 Bad Request: out of order sample"

Grafana pod logs:

logger=context userId=0 orgId=0 uname= t=2024-09-27T02:41:46.069582049Z level=info msg="Request Completed" method=GET path=/api/live/ws status=401 remote_addr=10.0.22.6 time_ms=0 duration=888.896µs size=105 referer= handler=/api/live/ws status_source=server
logger=context userId=0 orgId=0 uname= t=2024-09-27T02:42:07.000216216Z level=info msg="Request Completed" method=GET path=/api/live/ws status=401 remote_addr=10.0.22.6 time_ms=0 duration=759.171µs size=105 referer= handler=/api/live/ws status_source=server
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:13.869036352Z level=error msg="Cannot read directory" error="stat /tmp/dashboards: no such file or directory"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:13.869120292Z level=error msg="Failed to read content of symlinked path" path=/tmp/dashboards error="lstat /tmp/dashboards: no such file or directory"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:13.869133508Z level=info msg="falling back to original path due to EvalSymlink/Abs failure"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:13.869144257Z level=error msg="failed to search for dashboards" error="stat /tmp/dashboards: no such file or directory"
logger=context userId=0 orgId=0 uname= t=2024-09-27T02:42:27.003993831Z level=info msg="Request Completed" method=GET path=/api/live/ws status=401 remote_addr=10.0.22.6 time_ms=0 duration=667.764µs size=105 referer= handler=/api/live/ws status_source=server
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:43.868560334Z level=error msg="Cannot read directory" error="stat /tmp/dashboards: no such file or directory"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:43.868611097Z level=error msg="Failed to read content of symlinked path" path=/tmp/dashboards error="lstat /tmp/dashboards: no such file or directory"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:43.868620434Z level=info msg="falling back to original path due to EvalSymlink/Abs failure"
logger=provisioning.dashboard type=file name=sidecar t=2024-09-27T02:42:43.86862969Z level=error msg="failed to search for dashboards" error="stat /tmp/dashboards: no such file or directory"
To Reproduce
 helm install coder-observability coder-observability/coder-observability \
     --version 0.2.1 \
     --namespace coder-observability \
     --values values.yaml
  • Note: Can share the values.yaml - latest and with updates only to postgres.
主要语言
Go
星标
38
派生
9
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/observability 的其他 Issue

查看 coder/observability 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。