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

prometheus / client_ruby / 669
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix_with_labels
DEFAULT BRANCH: master
Ran 24 Dec 2020 06:42PM UTC
Jobs 4
Files 32
Run time 4min
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

pending completion
669

push

travis-ci

dmagliola
Automatically initialize time series without labels

According to [Prometheus Best Practices](https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics),
client libraries are expected to automatically export a 0 value when declaring
a metric that has no labels.

We missed this so far in the Ruby client, this PR rectifies that.

NOTE: This can be considered a breaking change. On the one hand, it's a bug fix,
but on the other, it will make many time series materialize when scraping apps
that use the client, that previously wouldn't have.

Depending on how many label-less metrics the app is declaring, this may have a
significant impact, so we should probably cut a new major version and warn
about this in the Release Notes.

Signed-off-by: Daniel Magliola <dmagliola@crystalgears.com>

1594 of 1594 relevant lines covered (100.0%)

47.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 669.1 (2.5.8) 24 Dec 2020 06:42PM UTC 0
100.0
Travis Job 669.1
2 669.2 (2.6.6) 24 Dec 2020 06:42PM UTC 0
100.0
Travis Job 669.2
3 669.3 (2.7.1) 24 Dec 2020 06:43PM UTC 0
100.0
Travis Job 669.3
4 669.4 (jruby-9.1.9.0) 24 Dec 2020 06:46PM UTC 0
0.0
Travis Job 669.4
Source Files on build 669
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #669
  • feccff34 on github
  • Prev Build on init_metrics_without_labels (#667)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc