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

wrouesnel / postgres_exporter / 762
66%

Build:
DEFAULT BRANCH: master
Ran 17 Feb 2021 02:11PM 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

17 Feb 2021 02:04PM UTC coverage: 66.403% (-0.3%) from 66.667%
762

push

travis-ci

web-flow
User defined configuration to run the query for different database server version from single yml file (#428)

* Run the query for specific database version if provided from yml file.
By default query will run on all the databases if "runonserver" is not provided.

If user want the query to be run on multiple database versions, use below string.
  runonserver: "9.5, 9.6"

Example yml file as below. ( e.g. below query will run only on database version 9.5 )

pg_replication:
  query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp())) as lag"
  master: true
  runonserver: "9.5"
  metrics:
    - lag:
        usage: "GAUGE"
        description: "Replication lag behind master in seconds"

* Fixed the below review comments given by Ashesh Vashi

    Instead of having db version string from yml file, user can define the range of
    database server version where query is to be executed.

    If user want to run the query on database version greater than 10.0.0, use below format.
      runonserver: ">=10.0.0"

      Below are the example of db version range user can defined in yml file.
            <=10.1.0
            >=12.1.0
            =11.0.0
            <9.6.0 || >=11.0.0

* Remove the call from unused places where 'runOnServer' is not required.
Only Server type hold that value.

* Fix compilation issues.

* Fix the issue with Debugln to print the database server version

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

755 of 1137 relevant lines covered (66.4%)

23.28 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
cmd/postgres_exporter/postgres_exporter.go
Jobs
ID Job ID Ran Files Coverage
1 762.1 (DOCKER_USER=wrouesnel GIT_ASSETS_BRANCH=assets DOCKER_PASS=[secure] GIT_API_KEY=[secure]) 17 Feb 2021 02:11PM UTC 0
66.4
Travis Job 762.1
Source Files on build 762
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #762
  • 8531abac on github
  • Prev Build on master (#753)
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