Will Rouesnel
0e4c3ce395
Update all dependencies.
...
* Switch to using kingpin for CLI interface as upstream Prometheus has moved
that way too.
2017-10-26 19:27:29 +11:00
Will Rouesnel
5c04bc0463
Add support for attribute renames from Postgres 10.
2017-10-23 16:20:33 +11:00
Will Rouesnel
9026088d66
Remove localhost assumption for standalone tests.
2017-10-23 16:20:33 +11:00
Will Rouesnel
97708205f6
Fix regression where failed tests would still leave passing builds.
2017-10-23 16:20:33 +11:00
Will Rouesnel
2d3aa082b1
Add PostgreSQL 10 to smoke-tests.
...
Closes #111 .
Closes #91 .
2017-10-23 16:20:33 +11:00
Will Rouesnel
cb4b628ca1
Add tolerant version regex parsing to handle PostgreSQL 10.
...
Closes #112 .
2017-10-23 16:20:33 +11:00
Matthias Berkenkamp
6e3d130f40
fix shell usage in make file
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
4bee618699
add coverage folder
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
5a4b1a5f81
try to fix coverage location in travis
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
142716dcb0
use check for tests
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
fce6b005a6
add some test cases
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
fcf07546cd
Fix gofmt issues
2017-09-20 21:24:32 +10:00
Matthias Berkenkamp
528e347b48
add support for secrets files
2017-09-20 21:24:32 +10:00
Will Rouesnel
e701b80fd5
Add the 16kB unit size to pg_settings parser.
...
Fixes #101 .
2017-09-07 23:52:27 +10:00
Will Rouesnel
17592ee8e9
Fix new linter errors.
2017-08-04 02:30:33 +10:00
Will Rouesnel
4c2dc4a7dd
unparam was refusing to update - force an update.
2017-08-04 02:30:33 +10:00
Will Rouesnel
23f4af2354
Allow the redacted DSN logging to actually fire (DSN was never logged).
...
The DSN parsing code failed to ever detect a URL like DSN, and as such never
logged anything.
2017-08-04 02:30:33 +10:00
Will Rouesnel
c692b4e76a
Localize the shared database connection to the Exporter object.
...
This allows the integration tests to properly exercise configuration parameters.
2017-08-04 02:30:33 +10:00
Will Rouesnel
41cb2e7a68
Add test case for issue #93 .
2017-08-04 02:30:33 +10:00
Will Rouesnel
a7ff84a674
Update vendored tools/.
2017-08-04 02:30:33 +10:00
Giancarlo Rubio
1afbd62ab1
Sample for database size ( #76 )
2017-07-26 22:53:16 +10:00
Alexander Savchuk
81194c9219
Grant postgres_exporter role to deployer role
...
If the deployer role is not superuser (which is the case in AWS RDS,
for example), we need to grant it access to postgres_exporter role
before we can create a schema with AUTHORIZATION postgres_exporter.
2017-06-09 20:04:27 +10:00
Alexander Savchuk
1ec400b707
Fix PostgreSQL name
...
PostgreSQL name was misspelled in
53b9d9cea7
.
2017-06-09 20:04:27 +10:00
Will Rouesnel
3b9a68897f
Fix overbroad tools .gitignore.
2017-06-07 00:53:19 +10:00
Will Rouesnel
f5c88e1806
Update tools/Makefile.
2017-06-07 00:53:19 +10:00
Will Rouesnel
801793e185
Update .travis.yml.
2017-06-07 00:53:19 +10:00
Will Rouesnel
8877b69804
Fix an extraneous comma which bugged the SQL introduced when merging PR #78
...
See commit 0de0311c22
. The SQL for <9.2 had a
typo which we somehow missed, caught by integration testing.
2017-06-07 00:53:19 +10:00
Will Rouesnel
3f0fb9d3a4
Suppress build messages from tools/Makefile
2017-06-07 00:53:19 +10:00
Will Rouesnel
8a1a12fd05
Update Makefile test handling.
2017-06-07 00:53:19 +10:00
Will Rouesnel
34ffcb449d
Fix issues identified by the gometalinters.
2017-06-07 00:53:19 +10:00
Will Rouesnel
4477dfa9b3
Add warning if Postgres Version is lower then the minimum version.
2017-06-07 00:53:19 +10:00
Will Rouesnel
e2b6c973a1
Add self-contained gometalinter build tooling.
2017-06-07 00:53:19 +10:00
Guo Xiang Tan
0de0311c22
Ignore functions that cannot be executed during recovery.
...
https://github.com/wrouesnel/postgres_exporter/issues/52
2017-06-07 00:02:49 +10:00
Tyler Yahn
5c587cb725
Add CLI flag to return version info
...
Fixes wrouesnel/postgres_exporter#67 .
2017-06-06 23:57:30 +10:00
Heikki Hulkko
1bf7f2435f
Add confirmed_flush_lsn to pg_stat_replication
2017-06-06 23:51:34 +10:00
Adam Sunderland
1fa394d488
Remove pg_settings query examples
...
These fields are now automatically scraped so they will conflict if they are accidentally specified.
2017-04-24 00:01:39 -10:00
Will Rouesnel
c4f701e817
Fix the .travis.yml deployment.
2017-04-18 23:25:56 +10:00
Adam Sunderland
a87b6bc583
Handle pg_settings names with '.'
2017-04-18 23:11:14 +10:00
Matt Bostock
98ba566322
Use the pg_settings view to retrieve runtime variable
...
Adds all bool/integer/real runtime variables that can be retrieved ths way.
Use the `pg_settings` view to retrieve runtime variables:
https://www.postgresql.org/docs/current/static/view-pg-settings.html
Replaces the use of `SHOW` to retrieve runtime variables.
Only runtime variables with a `vartype` of `bool`, `real`, or `integer`
are currently supported. Uses the `short_desc` field as a description.
This commit deprecates the following metric names:
```
pg_runtime_variable_max_connections
pg_runtime_variable_max_files_per_process
pg_runtime_variable_max_function_args
pg_runtime_variable_max_identifier_length
pg_runtime_variable_max_index_keys
pg_runtime_variable_max_locks_per_transaction
pg_runtime_variable_max_pred_locks_per_transaction
pg_runtime_variable_max_prepared_transactions
pg_runtime_variable_max_standby_archive_delay_milliseconds
pg_runtime_variable_max_standby_streaming_delay_milliseconds
pg_runtime_variable_max_wal_senders
```
They are replaced by equivalent names under `pg_settings` with the exception of
```
pg_runtime_variable_max_standby_archive_delay_milliseconds
pg_runtime_variable_max_standby_streaming_delay_milliseconds
```
which are replaced with
```
pg_settings_max_standby_archive_delay_seconds
pg_settings_max_standby_streaming_delay_seconds
```
Adds approximately 195 new metrics, when considered across all supported
PostgreSQL versions.
2017-04-14 02:09:44 +10:00
Will Rouesnel
994be318d4
Add metric parsing scripts to generate additions/removals for complex changes.
...
These scripts hold some learnings on how to compare changes to the metric
profile of the exporter. In future we'll teach travis to build this against
master automatically and post a comment back to a PR with what's been changed.
For now we just want to store them.
2017-04-14 01:57:51 +10:00
Will Rouesnel
f6e4292bc5
Have smoketests output representative samples of metrics.
...
Future: build the current master and produce a comparison.
2017-04-14 01:21:31 +10:00
Michał Czeraszkiewicz
53b9d9cea7
Improve "Running as non-superuser" documentation.
...
Closes #53 (rebased and merged).
2017-04-14 00:49:31 +10:00
Dimitrios Karagiannis
12b95c44d4
Mask the password field of the connection URL.
...
This solves the issue where failed connections can leak the database connection
string to logs.
2017-04-14 00:44:48 +10:00
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