Skip to content

Merge upstream/master (prezhdarov/vmware-exporter) into fork#1

Merged
robotneo merged 38 commits into
masterfrom
codex/sync-upstream
Jul 23, 2026
Merged

Merge upstream/master (prezhdarov/vmware-exporter) into fork#1
robotneo merged 38 commits into
masterfrom
codex/sync-upstream

Conversation

@robotneo

Copy link
Copy Markdown
Owner

同步内容

将上游 prezhdarov/vmware-exporter master 的 37 个提交(16c58dc..57e178b)合并到本 fork,完整保留 fork 的 33 个自有提交(probe 多 vCenter 采集、每目标独立凭证、中文文档、goreleaser 等)。

上游主要更新

  • 依赖升级:govmomi 0.52.0 → 0.55.0、prometheus/common 0.67.4 → 0.69.0、exporter-toolkit 0.15.0 → 0.16.0、prometheus-exporter v0.1.2 → v0.1.5
  • prometheus-exporter 包路径迁移至 pkg/ 下(collector/config/exporter → pkg/collector 等)
  • 新增测试:api / collectors / 根目录共 4 个测试文件(约 1200 行)
  • 修复:skip unsupported perf counters、datastore accessible 指标、Login 失败返回 loginData、响应体读写错误处理(errors.Join)、lint 清理
  • 新增 CI test.yml.golangci.yml

冲突解决(8 处 / 3 文件)

  • .gitignore:取并集(保留 dist/ + vendor/
  • vmware-exporter.go:导入统一到 pkg/ 路径;首页 handler 采用上游错误检查写法并保留 exporterName;保留 fork 启动日志
  • vmware/api/vmware.go:保留 fork 的 govmomiLoginWithCreds 流程,采纳上游 Login 失败返回 loginData 的修复及 errors.Join 错误处理

测试适配

上游 vmware/api/vmware_test.go 调用的是 fork 已删除的内部函数,已适配为 requestWithCreds / govmomiLoginWithCreds / testCredentials()

验证

  • go build ./...
  • go vet ./...
  • go test ./... 全部通过 ✅(含 govmomi simulator 集成测试)
  • gofmt 干净 ✅

建议重点 review

  • vmware/api/vmware.go:Login 登录失败时返回值由 nil 改为 loginData(采纳上游修复,调用方只检查 err,无行为影响)
  • vmware/api/vmware_test.go:对 fork Credentials 接口的适配

sh.karimi and others added 30 commits February 24, 2026 12:17
feat(datastore): adds datastore accessibility gauge metric
Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.53.0 to 0.53.1.
- [Release notes](https://github.com/vmware/govmomi/releases)
- [Changelog](https://github.com/vmware/govmomi/blob/main/CHANGELOG.md)
- [Commits](vmware/govmomi@v0.53.0...v0.53.1)

---
updated-dependencies:
- dependency-name: github.com/vmware/govmomi
  dependency-version: 0.53.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github.com/vmware/govmomi-0.53.1

Bump github.com/vmware/govmomi from 0.53.0 to 0.53.1
Update the import of prezhdarov/prometheus-exporter to use the new /pkg path.  This fixes the 'BADKEY' errrors.

Also log the name of the target when login fails.
Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.53.1 to 0.54.1.
- [Release notes](https://github.com/vmware/govmomi/releases)
- [Changelog](https://github.com/vmware/govmomi/blob/main/CHANGELOG.md)
- [Commits](vmware/govmomi@v0.53.1...v0.54.1)

---
updated-dependencies:
- dependency-name: github.com/vmware/govmomi
  dependency-version: 0.54.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.67.5 to 0.68.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](prometheus/common@v0.67.5...v0.68.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.68.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github.com/prometheus/common-0.68.1

Bump github.com/prometheus/common from 0.67.5 to 0.68.1
…s/github.com/vmware/govmomi-0.54.1

Bump github.com/vmware/govmomi from 0.53.1 to 0.54.1
Add GitHub Actions workflow for Go build and tests
Update logging dependency and log target name on login failure
…and-slog-cleanup

Improve reliability with expanded tests, safer performance scraping, and structured logging cleanup
dependabot Bot and others added 8 commits June 22, 2026 08:16
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.68.1 to 0.69.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](prometheus/common@v0.68.1...v0.69.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.69.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ng_counters_v2

fix: skip unsupported performance counters in scrapePerformance
…s/github.com/prometheus/common-0.69.0

Bump github.com/prometheus/common from 0.68.1 to 0.69.0
chore: fix lint and formatting issues across exporter codebase
Bumps [github.com/vmware/govmomi](https://github.com/vmware/govmomi) from 0.54.1 to 0.55.0.
- [Release notes](https://github.com/vmware/govmomi/releases)
- [Changelog](https://github.com/vmware/govmomi/blob/main/CHANGELOG.md)
- [Commits](vmware/govmomi@v0.54.1...v0.55.0)

---
updated-dependencies:
- dependency-name: github.com/vmware/govmomi
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…s/github.com/vmware/govmomi-0.55.0

Bump github.com/vmware/govmomi from 0.54.1 to 0.55.0
同步上游 37 个提交(16c58dc..57e178b):

- 依赖升级:govmomi 0.52.0 -> 0.55.0、prometheus/common 0.67.4 -> 0.69.0、
  exporter-toolkit 0.15.0 -> 0.16.0、prometheus-exporter v0.1.2 -> v0.1.5
- prometheus-exporter 包路径迁移:collector/config/exporter -> pkg/ 下
- 上游新增测试:api/collectors/根目录共 4 个测试文件,api 测试已适配
  fork 的 Credentials/requestWithCreds/govmomiLoginWithCreds 接口
- 上游修复:skip unsupported perf counters、datastore accessible、
  Login 失败返回 loginData、响应体读写错误处理(errors.Join)、lint 清理
- 新增 CI test.yml 与 .golangci.yml
- 保留 fork 全部功能:probe 多 vCenter 采集、每目标独立凭证、
  中文文档、goreleaser/release 工作流、docker-compose、systemd unit
@robotneo
robotneo merged commit 4a1013e into master Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants