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
Reda NOUSHI
8dd3912150
Add gopkg.in/yaml.v2 dependency to vendor/
2016-06-29 01:21:04 +00:00
Reda NOUSHI
c0ae101d89
Add support for custom queries from yaml file
2016-06-29 00:32:47 +00:00
Reda NOUSHI
1d383291eb
Add sample queries file
2016-06-28 23:57:13 +00:00
Reda NOUSHI
6565c98ad5
Add queries file support
2016-06-28 23:56:47 +00:00
Will Rouesnel
86caf395f6
Update .travis.yml to release only on master
2016-06-03 23:13:55 +10:00
Will Rouesnel
76f8d57e99
Setup travis releases
2016-05-28 14:53:48 +10:00
Will Rouesnel
66db8ebaa0
Update README.md for travis-build
2016-05-28 14:35:17 +10:00
Will Rouesnel
490e1626f5
Merge branch 'master' of github.com:wrouesnel/postgres_exporter
2016-05-28 14:33:46 +10:00
Will Rouesnel
2711bd78d3
Modifications to setup .travis.yml and builds.
2016-05-28 14:31:43 +10:00
Will Rouesnel
c929bad6a1
README.md connection strings were wrong
...
Looks like lib/pq has updated their connection strings upstream so the URL parsing is more URL-like.
2016-05-20 19:04:31 +10:00
Marcus Martins
2a8bef5235
Handle pg_runtime_variable
return values
...
When querying postgres `pg_runtime_variable`, postgres might return -1
for `max_standby_archive_delay` and `max_standby_streaming_delay`
2016-05-05 18:07:27 -07:00
Will Rouesnel
4c8b9700c6
Merge branch 'local_changes'
2016-03-12 21:18:05 +11:00
Will Rouesnel
054d825c7d
Vendor all dependencies, add docker build to makefile.
...
Vendor and store all dependencies. This allows us to have a makefile which
builds to a minimized docker image.
2016-03-12 21:16:17 +11:00
Will Rouesnel
bb26a644f9
Merge branch 'knutemann-master'
2016-02-03 13:52:08 +11:00
fiknytte
7e8fbdf07f
Added support for collecting arbitrary sql queries.
...
Added metrics for locks per database per mode, pg_stat_activity, pg_stat_replication.
Updated README.md with possible solution for running as non-superuser.
2016-01-21 13:15:20 +01:00