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

[BUG] Cannot run `healthcheck` with `wget` for `node-exporter` when running with TLS

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, go

调研方向

首先,针对启用 TLS 的 node-exporter 容器复现报告的 wget 命令,并在 amd64 上比较 busybox:1.36.1 与 busybox:1.37。完成标准是:有可用的更新版 node-exporter 镜像,并且其中的 healthcheck 能够通过 TLS 成功执行;或者有文档化的指南指出一种可用的替代方案。

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

描述

Bug description

Hi,
I'm trying to run a Node Exporter server with TLS using prom/node-exporter:latest and set a valid health check command.
node-exporter works just fine by adding the necessary TLS settings in -web.config.file=/var/config/web-config.yaml. The problem is actually with the tool that I've been using to run the healthcheck, which is wget, which comes from busybox:1.36.1.

This is a known issue for busybox:1.36.1 (see https://github.com/docker-library/busybox/issues/162). Specifically, if I run from within the container the command:

wget -q --spider --no-check-certificate https://localhost:9100/metrics

I get the following error on amd64 machines:

wget: TLS error from peer (alert code 40): handshake failure
wget: error getting response: Connection reset by peer

This error has been fixed within busybox:1.37. Therefore, I would ask the team to update the quay.io/prometheus/busybox-${OS}-${ARCH}:latest to use busybox:1.37 and then provide a newer prom/node-exporter image.

Alternatively, any suggestion on how to set an healthcheck command for node-exporter when running with TLS would be highly appreciated. prom/prometheus provides promtool to run healthchecks also with TLS, but there's no equivalent tool for node-exporter.

主要语言
Go
星标
13.8k
派生
2.7k
平均合并
1 天 4 小时
30 天内合并 PR
7

环境准备

从这里开始

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

prometheus/node_exporter 的其他 Issue

查看 prometheus/node_exporter 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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