Commit Graph

64 Commits

Author SHA1 Message Date
Joe Adams
8d6d3041b9 Merge pull request #565 from alexmv/patch-1
Remove misplaced and duplicated phrase in README
2022-02-09 22:21:58 -05:00
Joe Adams
99446791e4 Merge pull request #567 from xelatirdan/patch-1
Add error prone SQL in README.md
2022-02-09 22:21:17 -05:00
Joe Adams
c0ca2fd0c9 Merge pull request #590 from juris-greitans/master
#258 Document running as non-superuser on PostgreSQL versions 10 or newer.
2022-01-26 10:07:23 -05:00
Alex
b10a7b7d3b Clarify default values for CLI flags
Reference here: https://grafana.com/docs/agent/latest/configuration/integrations/postgres-exporter-config/
Also, matches the environment variables section.

Signed-off-by: Alex Ruddick <a.ruddick@numat-tech.com>
2022-01-18 12:18:09 -06:00
juris.greitans
7c76896aa8 Fix issues mentioned in review. Add link to PostgreSQL documentation about pre-defined roles.
Signed-off-by: juris.greitans <juris.greitans@visma.com>
2021-11-29 13:13:14 +02:00
juris.greitans
545c3b7eba #258 Document running as non-superuser on PostgreSQL versions 10 or newer.
Signed-off-by: juris.greitans <juris.greitans@visma.com>
2021-11-17 12:44:59 +02:00
Xela
20aefc2e15 Add some SQL in README.md
Getting the error when adding non-root postgres user for exporter:
```
postgres=# CREATE OR REPLACE FUNCTION get_pg_stat_statements() RETURNS SETOF pg_stat_statements AS
postgres-# $$ SELECT * FROM public.pg_stat_statements; $$
postgres-# LANGUAGE sql
postgres-# VOLATILE
postgres-# SECURITY DEFINER;
ERROR:  type "pg_stat_statements" does not exist
```
Add following sql command for enable pg_stat_statements:
```
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
```

Signed-off-by: Xela Tirdan <xelatirdan@gmail.com>
2021-09-08 21:35:23 +03:00
Magnus Hagander
d9435b4c80 Fix typos in README
Signed-off-by: Magnus Hagander <magnus@hagander.net>
2021-08-24 13:28:32 +02:00
Alex Vandiver
d9a081d6d9 Remove misplaced and duplicated phrase in README
Signed-off-by: Alex Vandiver <alex@chmrr.net>
2021-08-02 11:43:20 -07:00
Paul van der Linden
bc97291103 basic integration test
Signed-off-by: Paul van der Linden <mail@paultjuh.org>
2021-04-19 15:20:53 +02:00
Pavel Sapezhko
2850ac800a Add ability to set allow DBs list
Signed-off-by: Pavel Sapezhko <me@weastur.com>
2021-03-11 16:43:13 +03:00
Julien Pivotto
be790e12ff Switch to go-kit log and enable TLS/basic auth
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-03-02 15:31:55 +01:00
Ben Kochie
33e61f3277 Add integration tests
Setup integration test matrix in CircleCI.
* Update README integration testing list.

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-02-28 14:26:51 +01:00
Ben Kochie
b67b69acd3 Update for Prometheus Community
Add standard Prometheus build setup
* CircleCI config
* Makefile
* Go modules
* Golang-CI Lint
* promu config
* Remove /vendor
* Remove mage build
* Update READMEs

https://github.com/prometheus-community/postgres_exporter/issues/478

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-02-23 10:51:33 +01:00
Ajay Bhat
c55a3b3c5b Fixes (#364) (#387)
Have a custom prefix for each of the default metrics created by postgres_exporter

Co-authored-by: Will Rouesnel <wrouesnel@wrouesnel.com>
2020-12-25 02:36:18 +11:00
Robbie Trencheny
a7538454ed Add pg_stat_statements view for non-superuser instructions (#398) 2020-08-28 10:03:23 +10:00
Lars Kellogg-Stedman
77d42931d0 update docs with examples of DATA_SOURCE_URI (#378)
this has a minor change to the wording and a couple of examples to demonstrate
the use of DATA_SOURCE_URI.

Closes #113
2020-04-10 01:14:24 +10:00
Vladimir N. Indik
75d542d496 Update "Flags" list in README (#331)
* Update README according --help output

* Update environment variables list in README
2019-11-20 10:19:34 +11:00
sfalkon
deac1c37db fix master database behavior 2019-11-20 10:18:20 +11:00
Benjamin P. Jung
9b13f5ec57 Add support for 'DATA_SOURCE_URI_FILE' envvar.
Closes #326 as is provides a viable solution to use a K8S init container
to fully contruct the PostgreSQL URI and 'hand it over' to the postgres_exporter
process.
2019-11-20 10:17:31 +11:00
Will Rouesnel
c2866fd2e2 Fix README.md. 2019-11-01 01:04:08 +11:00
Marcos A L M Macedo
27d5c9926d Add SQL for grant connect (#303)
To resolve the error below, it was necessary to add a new grant to the database postgres.

Error: 'pq: permission denied for database \ "postgres \"'
2019-10-30 14:58:17 +11:00
Alexis Sellier
1ab8d2bbc8 Discover only databases that are not templates and allow connections (#297)
* Discover only databases that are not templates and allow connections

* Update readme
2019-08-12 11:40:58 +10:00
Alexis Sellier
c768e64548 Add --exclude-databases option (#298)
* Add exclude-databases option
* Update readme to explain --exclude-databases
* Add comments to ExcludeDatabases function and unexport Contains function
2019-08-12 11:25:01 +10:00
Sakis
1c14eb964a README: SQL that supports re-execution
Make the SQL work in automated deployments where it will be repeated many times.
2019-07-12 10:26:07 +10:00
Will Rouesnel
97554928e6 Update README.md 2019-07-03 22:37:58 +10:00
Arno Geurts
4d96104c10 Add documentation for auto-discover-databases 2019-07-03 22:17:15 +10:00
Asher Foa
f9bb147ee8 Add badge for docker pulls. 2019-07-01 08:43:24 +10:00
Michael Kaye
b12adc11e4 Update README.md
Allow non-superuser commands to be re-run without (some) errors.
2019-07-01 08:43:07 +10:00
Sean Corkum
07dd31dea6 Update README.md
add ; for any users that are copy/pasting from the readme
2019-06-15 19:39:39 +10:00
Asher Foa
c9dc7a20a1 remove unsupported postgres versions 2019-06-15 19:38:40 +10:00
Freddy Spierenburg
fce869257f Update the running as non-superuser section. This solves the problem that certain metrics didn't produce a value. 2019-02-20 23:37:10 +11:00
Anthony Regeda
1d6a733ba2 multi-server-exporter multi server exporter is introduced 2018-12-19 01:46:45 +11:00
Will Rouesnel
fec1a171ba Update README.md 2018-11-11 15:48:27 +11:00
Phil Frost
456ac72430 Document --constantLabels
This functionality was added in c225a1e194
but not documented.
2018-11-11 13:55:45 +11:00
Sylvain Rabot
844076cd6d Add dbname to example to avoid confusion 2018-11-03 01:23:54 +11:00
Samuel Barabas
265a2ea8eb Add info about PG_* env vars to README (#199) 2018-07-17 01:20:01 +10:00
Will Rouesnel
36e13ca8a5 Update README.md
Improve the documentation for `--disable-default-metrics` and update the listing of current flags.
2018-03-21 00:41:58 +11:00
Hang Sun
f00c4b7b87 Added command-line flag to disable the default metrics 2018-03-21 00:28:59 +11:00
Will Rouesnel
989489096e Refactor repository layout and convert build system to Mage.
This commit implements a massive refactor of the repository, and
moves the build system over to use Mage (magefile.org) which should
allow seamless building across multiple platforms.
2018-03-06 07:29:35 +10:00
Joscha
3e6cf08dc5 In docker example both containers should run on the host net (#149)
* In docker example both containers should run on the host net 
* remove unecessary portmapping in docs
2018-02-20 18:27:58 +10:00
fjavierm
02718d0e26 Add a couple of pre-instructions to the README file for the build process. (#152) 2018-02-02 19:04:07 +10:00
Will Rouesnel
5b9fea01ee Add cross-compilation Makefile targets and tar-based releases.
Revamp the build system to be more inline with other Prometheus exporters.
Notably add Darwin and Windows build targets, and add support for releases
using tar files.
2017-11-30 13:17:13 +10:00
Chris Travers
8b4d70ae5f Removed unnecessary complexity in readme.md
In PostgreSQL, views run as the defining user, meaning you don't 
need a view wrapping a function (you can just have a view).  This 
improves readability, maintainability, performance, and clarity.
2017-10-26 20:01:59 +11:00
Will Rouesnel
e3dbbe64fd Update README.md 2017-10-26 19:46:02 +11: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
Michał Czeraszkiewicz
53b9d9cea7 Improve "Running as non-superuser" documentation.
Closes #53 (rebased and merged).
2017-04-14 00:49:31 +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
ff8e0c5382 Add coverage and code quality badges. 2017-02-25 01:18:27 +11:00