Christian Nicolai
030e90f03e
Update build version of Go to 1.7.5
...
Includes fix for this issue: https://github.com/golang/go/issues/16739
2017-04-14 00:42:41 +10:00
Matt Bostock
c7ac2b0e12
Make references to PostgreSQL consistent
...
While many pronounce it as 'post-GRES', the spelling is 'PostgreSQL' with two 's'.
https://www.postgresql.org/about/press/faq/
2017-03-04 02:56:35 +11:00
Will Rouesnel
5211415ebe
Gofmt the code.
2017-02-25 01:18:27 +11:00
Will Rouesnel
ff8e0c5382
Add coverage and code quality badges.
2017-02-25 01:18:27 +11:00
Jim Tilander
8ded56a7da
Better error message for debugging connection failures
2017-02-17 01:10:13 +11:00
Jim Tilander
f5f7d836f5
Removed dependency on local build
2017-02-17 01:10:13 +11:00
Jim Tilander
03ee288c3a
Added a cross compilation target as well as push
2017-02-17 01:10:13 +11:00
matevarga
623d2eb6de
Using a connection pool of size 1 instead
...
of closing/reopening connections
2017-02-07 21:06:15 +11:00
Ed Schouten
2c6594edca
Properly print the SQL server error string in the log message.
...
On a Debian + PostgreSQL 9.4 system I had a hard time getting the
exporter to work. It looks like I was running into some authentication
issues that weren't logged by sql.Open(), but by sql.DB.QueryRow().
This change extends the warning generated by the call to
checkMapVersions() to also print the error message generated by
sql.DB.QueryRow().
2017-01-10 01:32:14 +11:00
Will Rouesnel
1e43282aa2
Update .travis.yml to push tagged versions.
2016-11-29 07:49:34 +11:00
Will Rouesnel
8ec2d3d73c
Remove the spurious config.expect-replication-stats option.
...
This was something that was going to be added but never materialized into a practical feature.
2016-11-29 07:44:38 +11:00
Will Rouesnel
3ead0f9aff
Add a test case to detect regression on issue fixed by PR #39 .
...
Related issue is #38 . Time to start expanding functional test coverage since
the integration tests missed this.
2016-11-29 02:32:23 +11:00
Dominik Schulz
8f3088611b
Use correct SemVer range condition. Fixes #38 ( #39 )
2016-11-29 01:49:25 +11:00
Alex Simenduev
37e6dd3bec
Update Dockerfile with the new port (9187) ( #37 )
2016-11-26 13:06:23 +11:00
Will Rouesnel
22534f7cd6
Merge pull request #36 from mjtrangoni/patch-1
...
README.md: Update to new default port 9187
2016-11-21 21:58:34 +11:00
Mario Trangoni
cd9bb8605e
README.md: Update to new default port 9187
2016-11-21 09:50:15 +01:00
Will Rouesnel
e3ba4b3c5d
Merge pull request #33 from wrouesnel/bugfixes_and_upgrades
...
Bugfixes and upgrades
2016-11-18 03:58:26 +11:00
Will Rouesnel
98d26cb9c7
Update the integration test.
2016-11-18 03:52:58 +11:00
Will Rouesnel
9f1835bb2d
Vendor new packages, fix bad sync dependency.
2016-11-18 03:45:42 +11:00
Will Rouesnel
1246d1b90b
Update .travis.yml to push tagged docker container releases.
2016-11-18 03:42:36 +11:00
Will Rouesnel
d49127d34f
Re-enabled the YAML file format processing.
2016-11-18 03:32:16 +11:00
Will Rouesnel
2297eb5ba8
Tests passing for all postgres versions.
2016-11-18 02:47:24 +11:00
Will Rouesnel
be1a76b167
Tests passing for PostgreSQL 9.1. Set semantic version in filename.
2016-11-18 02:26:33 +11:00
Will Rouesnel
175686dc0f
Use the gocheck binary to run Postgres matrix tests.
2016-11-17 22:14:13 +11:00
Will Rouesnel
045ae96430
Implement the compileable source code of the basic integration test suite.
...
This is the first step in moving the integration test suite to a more
reliable Golang based one.
2016-11-17 03:09:20 +11:00
Will Rouesnel
a95fad8d1e
Refactor scrape() to break out the major components.
...
This puts us on the road to dropping the bash tests and doing it all in
Go.
2016-11-17 02:16:45 +11:00
Will Rouesnel
53ad0efbbb
Add docker-compose and replication environment tests to the smoke-tests.
...
Use docker-compose and p2 to setup a replicated environment for each
version of PostgreSQL we want to support.
Still missing: key-specific tests to ensure each version doesn't lose
metrics.
2016-11-17 02:00:42 +11:00
Will Rouesnel
f554139279
Add pg_static synthetic key to collect Postgres version.
...
Similar to the node_exporter, this key is synthetic and used to create
a constant metric which records the version strings of PostgreSQL in its
labels.
2016-11-17 01:59:46 +11:00
Will Rouesnel
8c0f2ed166
Add postgres cluster replication smoke tests.
2016-11-17 01:14:03 +11:00
Will Rouesnel
c00d3fb6e7
Revert PR #23 which broke replication stats.
...
This PR is not general to all versions of postgres, and in the worst case
meant the query returned nothing.
Closes #30 and shows we need a test case.
2016-11-17 00:16:21 +11:00
Will Rouesnel
6f2f9890f7
Change default port to 9187.
...
This is the postgres_exporter WIP port for Prometheus and avoids the
by default collision with the nginx_exporter.
Closes #22 .
2016-11-16 23:02:42 +11:00
Will Rouesnel
9143f5984a
Merge pull request #25 from wrouesnel/tweak-makefile-for-osx
...
Make the makefile less Linux specific
2016-09-09 01:19:57 +10:00
Will Rouesnel
db37da547e
Make the makefile less Linux specific (find on OSX complains apparently).
2016-09-09 01:15:01 +10:00
Will Rouesnel
286550f3bf
Merge pull request #21 from ncabatoff/feature-queries_from_file
...
Feature queries from file
2016-09-09 01:10:15 +10:00
Will Rouesnel
935ca797a0
Merge pull request #23 from mcanevet/slot_name
...
Add slot_name to pg_stat_replication
2016-09-09 01:07:42 +10:00
Will Rouesnel
28cb683407
Merge pull request #24 from wrouesnel/fix-dockerfile
...
Fix docker build steps.
2016-09-09 01:00:54 +10:00
Will Rouesnel
5fec9aacab
Fix docker build steps.
...
Docker 1.12 completely broke setting entrypoints on import, so we need to
switch to using an actual Dockerfile.
2016-09-09 00:56:57 +10:00
Mickaël Canévet
83bf7840f5
Add slot_name to pg_stat_replication
2016-09-08 15:24:42 +02:00
Nick Cabatoff
511ef0eacd
fix a bug in the query to fetch shared_buffers setting
2016-09-07 16:55:41 -04:00
Nick Cabatoff
b3bb44082a
merge with upstream
2016-09-07 16:29:30 -04:00
Nick Cabatoff
64f5d9ac0f
Document -extend.query-path in README. Add more examples to queries.yaml.
2016-09-07 15:15:52 -04:00
Nick Cabatoff
fc3a14f645
fix bug with multiple columns in same metric (only the last one was being used because the map was being overwritten each time); add -dumpmaps option for debugging
2016-08-20 12:32:08 -04:00
Will Rouesnel
39bd5d3938
Merge pull request #18 from tmc/master
...
Update to use common/log
2016-08-06 12:46:52 +10:00
Travis Cline
09a998035d
update to use common/log
2016-08-05 18:54:41 -07:00
Will Rouesnel
9cdd620449
Merge pull request #6 from marcusmartins/duration_handling
...
Handle `pg_runtime_variable` return values
2016-07-30 11:48:44 +10:00
Will Rouesnel
382729a166
Merge pull request #17 from jinty/string-to-flaot
...
Parse strings to floats
2016-07-30 11:44:17 +10:00
Brian Sutherland
0830d3e098
Parse strings to floats. fixes https://github.com/wrouesnel/postgres_exporter/issues/15
2016-07-28 12:59:28 +02:00
Will Rouesnel
5085f2a137
Merge pull request #13 from wrouesnel/smoketests
...
Add docker based integration test suite.
2016-07-16 12:54:47 +10:00
Will Rouesnel
8cca2a59a5
Add docker based integration test suite.
...
This simply pulls and runs postgres against a number of versions and checks
that we can successfully connect to it.
2016-07-16 12:41:34 +10:00
Reda NOUSHI
895166bbbb
Made cosmetic changes to fit the Go coding standards
2016-06-29 22:09:42 +00:00