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

cybertec-postgresql / pgwatch / 44738721760
88%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2026 12:51PM UTC
Jobs 1
Files 50
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

20 Nov 2026 12:47PM UTC coverage: 87.908% (-0.03%) from 87.938%
44738721760

push

github

web-flow
[-] filter prometheus source families by configured metrics (#1650)

* [-] filter prometheus source families by configured metrics

A `kind: prometheus` source forwarded every scraped metric family, even
when `preset_metrics` or `custom_metrics` were set. GetMetricInterval
returns 0 for unknown names, which bypassed the emit-interval gate.

Add PromConn.LookupMetricInterval to report whether a family is
configured, and drop unconfigured families in PromReaper.Reap.
Scrape-all mode (no metrics configured) is unchanged.

Part of #1649

* [-] simplify the gate with  GetMetricInterval, drop LookupMetricInterval

Interval of 0 means "don't collect" in reaper. So there is no need in
another function. The fix is to check for 0 interval and continue early

* [-] update prom source howto

* [+] add zero interval case to prometheus preset filtering test

---------

Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

5496 of 6252 relevant lines covered (87.91%)

1.0 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
86.25
-0.69% internal/reaper/reaper.go
Jobs
ID Job ID Ran Files Coverage
1 44738721760.1 20 Nov 2026 12:51PM UTC 50
87.91
GitHub Action Run
Source Files on build 44738721760
  • Tree
  • List 50
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44738721760
  • 8a26d94c on github
  • Prev Build on master (#44063251463)
  • 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