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

wrouesnel / postgres_exporter / 586
66%

Build:
DEFAULT BRANCH: master
Ran 30 Oct 2019 04:04AM UTC
Jobs 1
Files 2
Run time 1s
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

30 Oct 2019 03:54AM UTC coverage: 59.476% (+1.3%) from 58.172%
586

push

travis-ci

wrouesnel
Add retries to getServer() (#316)

Some backstory
==============

I was attempting to use postgres_exporter with the official Docker
container (https://hub.docker.com/_/postgres) In a Kubernetes
StatefulSet, with a side-car configuration, but found that I wasn't able
to connect even with sharing the Postgres Unix listening socket, between
both containers. After copying the container over to an Alpine base I
quickly found out that the postgres_exporter was actually starting
before the main Postres container had dropped the unix socket onto the
file system, a quick work around is to write a bash for loop checking
for the existence of a unix socket, however this would require
maintaining a container, besides other users may find retries useful on
startup.

Implementation
==============

All changes are made to the getServer function and variables are
local, I was unsure if it was worth adding command line switches but
this would allow for a more sophisticated backOff loop in the future.

Hope this help, and let me know if you would like me to changes
anything.

568 of 955 relevant lines covered (59.48%)

42.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 586.1 30 Oct 2019 04:04AM UTC 0
59.48
Travis Job 586.1
Source Files on build 586
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #586
  • 043e68e0 on github
  • Prev Build on master (#567)
  • Next Build on master (#590)
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

© 2025 Coveralls, Inc