• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nbari / pg_exporter / 29276053456
89%
main: 91%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: main
Ran 13 Jul 2026 06:55PM UTC
Jobs 1
Files 118
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2026 06:47PM UTC coverage: 88.265% (-2.6%) from 90.83%
29276053456

push

github

nbari
add --collector.system host CPU/memory collector (#26)

Opt-in, Linux/FreeBSD-only collector exposing node_exporter-style host
metrics for the machine running the exporter. CPU time is a single
per-core counter, pg_system_cpu_seconds_total{cpu,mode} (mirroring
node_cpu_seconds_total), alongside load average and memory/swap byte
gauges. It reads only the OS (/proc/stat on Linux, the kern.cp_times
sysctl on FreeBSD, sysinfo for memory/load) and never queries
PostgreSQL, so it adds zero query or connection load.

- Per-core CPU by default; aggregate host utilization is derived in
  PromQL (sum without(cpu) ...). This gives per-core hotspot visibility
  while cardinality stays bounded per host (modes x cores) and does not
  scale with the number of databases.
- Warns at startup when enabled against a non-loopback DSN (co-located
  only; misleading on managed services such as RDS/Aurora).
- Adds a collapsed "Host CPU / Memory" Grafana dashboard row, the
  collector README, a main-README entry, a CHANGELOG [0.17.0] entry, and
  --collector.system to the "just watch" recipe.
- Makes the dashboard "Memory & Swap Usage" panel easier to read: total
  memory renders as a dashed reference line while used-memory and swap
  fills are no longer merged into one stacked gradient.
- Refreshes Cargo.lock (mio, rustls, zmij patch updates) via cargo update.
- Clarifies the "Exporter Process CPU Usage" panel: the solid line is
  relabeled "CPU % of one core" (100% = one core, can exceed 100%) and
  the dashed line "% of whole host (normalized)", removing the ambiguous
  "per-core" wording, with a rewritten description.

641 of 807 new or added lines in 6 files covered. (79.43%)

420 existing lines in 10 files now uncovered.

16434 of 18619 relevant lines covered (88.26%)

133.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
72
64.38
-31.05% src/collectors/system/cpu.rs
42
72.73
-22.19% tests/collectors/system.rs
30
49.33
-43.17% src/collectors/system/mod.rs
12
93.26
0.56% src/collectors/system/process.rs
8
91.58
0.0% src/collectors/system/memory.rs
2
92.1
0.0% src/exporter/mod.rs

Coverage Regressions

Lines Coverage ∆ File
150
66.98
-26.44% src/collectors/registry.rs
109
75.17
-24.53% src/cli/commands/options.rs
47
82.04
-16.27% src/cli/dispatch/mod.rs
33
58.23
-41.77% src/collectors/config.rs
32
64.38
-31.05% src/collectors/system/cpu.rs
19
92.1
0.0% src/exporter/mod.rs
12
64.06
-6.25% src/collectors/vacuum/create_index_progress.rs
8
49.33
-43.17% src/collectors/system/mod.rs
6
83.85
-3.73% src/collectors/index/unused.rs
4
91.28
-1.03% tests/connection_budget.rs
Jobs
ID Job ID Ran Files Coverage
1 29276053456.1 13 Jul 2026 06:55PM UTC 118
88.26
GitHub Action Run
Source Files on build 29276053456
  • Tree
  • List 118
  • Changed 13
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29276053456
  • 150ce98f on github
  • Prev Build on sandbox (#29270694679)
  • Next Build on sandbox (#29278607745)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc