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

prometheus / client_ruby / 667
100%
master: 100%

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

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.

1594 of 1594 relevant lines covered (100.0%)

47.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 667.1 (2.5.8) 24 Dec 2020 06:40PM UTC 0
100.0
Travis Job 667.1
2 667.2 (2.6.6) 24 Dec 2020 06:40PM UTC 0
100.0
Travis Job 667.2
3 667.3 (2.7.1) 24 Dec 2020 06:40PM UTC 0
100.0
Travis Job 667.3
4 667.4 (jruby-9.1.9.0) 24 Dec 2020 06:43PM UTC 0
0.0
Travis Job 667.4
Source Files on build 667
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #667
  • dc5c059e on github
  • Next Build on init_metrics_without_labels (#669)
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