timescale / prometheus-postgresql-adapter

Use PostgreSQL as a remote storage database for Prometheus
Apache License 2.0
335 stars 66 forks source link

Migrate to gomod #84

Closed spolcyn closed 5 years ago

spolcyn commented 5 years ago

Changed directory structure to https://github.com/golang-standards/project-layout, migrated to gomod, and fixed incompatibility with changes in Prometheus components.

RobAtticus commented 5 years ago

Looks like Travis config needs updating too. Let's make it consistent with our other repos actually:

See: https://github.com/timescale/timescaledb-tune/blob/master/.coverage_tests.sh and https://github.com/timescale/timescaledb-tune/blob/master/.travis.yml

In particular we should def test Go 1.11 and 1.12 (travis.yml) and coverage testing would be nice.

codecov[bot] commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@de37411). Click here to learn what that means. The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #84   +/-   ##
=========================================
  Coverage          ?   14.04%           
=========================================
  Files             ?        4           
  Lines             ?      584           
  Branches          ?        0           
=========================================
  Hits              ?       82           
  Misses            ?      487           
  Partials          ?       15
Impacted Files Coverage Δ
pkg/util/util.go 37.14% <ø> (ø)
pkg/util/election.go 25.37% <ø> (ø)
pkg/util/lock.go 0% <ø> (ø)
pkg/postgresql/client.go 10.6% <16.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de37411...3afcb9c. Read the comment docs.