Commit Graph

186 Commits

Author SHA1 Message Date
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
6d2cae6fa8 fix-param-env-key fix spelling of env parameter 2019-01-04 00:32:12 +11:00
Anthony Regeda
1d6a733ba2 multi-server-exporter multi server exporter is introduced 2018-12-19 01:46:45 +11:00
Will Rouesnel
72446a5b1e
Don't fail builds when GIT_API_KEY is not available (on PRs).
We don't need GIT_API_KEY to clone the assets branch, so don't require it.
2018-11-17 16:11:38 +11:00
Will Rouesnel
c9ba19e6fd
Metric push is working. 2018-11-11 22:53:38 +11:00
Will Rouesnel
4a74bf13f6
More debugging. 2018-11-11 22:27:40 +11:00
Will Rouesnel
fd4691cbc0
Fix metrics push. 2018-11-11 21:43:13 +11:00
Will Rouesnel
5bd5c591be
Debug metric push. 2018-11-11 21:03:41 +11:00
Will Rouesnel
1e5f7f46f4
Fix the metric changes script. 2018-11-11 18:02:41 +11:00
Will Rouesnel
5854cac87f
Specify assets branch to get-changes. 2018-11-11 17:39:50 +11:00
Will Rouesnel
711ab8490b
More specific glob for metric files. 2018-11-11 17:13:06 +11:00
Will Rouesnel
df0bb41a13
Add metric change tracking scripts. 2018-11-11 17:00:02 +11:00
Will Rouesnel
a2a2a1df2d
Fix permissions on gh-asset-clone. 2018-11-11 16:20:34 +11:00
Will Rouesnel
93736366d9
Update goimport/gofmt of files. 2018-11-11 16:05:05 +11:00
Will Rouesnel
3acec53018
Add gh-assets-clone.sh script. 2018-11-11 16:04:10 +11:00
Will Rouesnel
fec1a171ba
Update README.md 2018-11-11 15:48:27 +11:00
Will Rouesnel
474a600842
Add Postgresql 11 to smoke-tests. 2018-11-11 15:40:09 +11:00
Will Rouesnel
414e9b13c2
Remove -x from smoke-test. 2018-11-11 15:39:51 +11:00
Will Rouesnel
99ff02c6a9
Fix the errors introduced into smoke-test from the refactor. 2018-11-11 15:34:33 +11:00
Will Rouesnel
ae8bea6eb8
Add GIT_API_KEY variable for collecting assets into the repo. 2018-11-11 15:33:06 +11:00
Will Rouesnel
9330d1bc64
Bump Go version. 2018-11-11 15:08:05 +11:00
Will Rouesnel
43072ddaa7
Improve support code quality. 2018-11-11 15:07:07 +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
Greg Stark
5452a3aac6 Postgres commits 6e7baa3227 and b06d8e58b5 added a new unit suffix "B"
for memory parameters for bytes.
2018-11-03 01:23:01 +11:00
Daniel Bäurer
42f9de480a Added pg_statio_user_tables 2018-09-22 15:48:36 +10:00
Robson Roberto Souza Peixoto
e2db729a41 Speedup docker image build 2018-09-22 15:47:35 +10:00
Robson Roberto Souza Peixoto
c225a1e194 Accept constantLabels as parameters
When you area monitoring server from cloud providers the exporter
IP/hostname is not the server IP, so add some constant labels is useful
on dashboards and alerts.

And is very important to use with `--disable-default-metrics` to add
info like `datname` and figure out the database name that you are
monitoring
2018-09-22 15:47:35 +10:00
Samuel Barabas
265a2ea8eb Add info about PG_* env vars to README (#199) 2018-07-17 01:20:01 +10:00
tshohe
763159e1d2 add query for v9.1 (#203) 2018-07-17 01:18:08 +10:00
Thomas Skowron
3d0c258c72 FreeBSD compilation target 2018-06-25 23:49:05 +10:00
Marc Bachmann
05429f2d1c Fix comments about DATA_SOURCE_* environment variable usage 2018-06-19 23:05:16 +10:00
Adam Harrison
3f905289a2 URL encode username/password fields
Fixes #188.
2018-05-23 10:42:19 +10:00
Will Rouesnel
9eff17a257 Fix the replication test. 2018-05-23 01:06:52 +10:00
Will Rouesnel
2db74865b1 Fix lint and fmt errors. 2018-04-15 23:31:18 +10:00
Will Rouesnel
d5caaf5a4d Fix issue #174
Postgres can emit 32MB and 64MB units which were previously unhandled. Handle them.
2018-04-15 23:31:18 +10:00
Will Rouesnel
771eb94ea8 Add test case which reproduces issue #173 2018-04-15 23:31:18 +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
Hang Sun
2db8b47fe8 Added a new unit 32kB 2018-03-21 00:28:29 +11:00
Will Rouesnel
4df26a0922 Fix version not being set properly during build.
Closes #170.

This release will be backported and 0.4.4 re-released.
2018-03-21 00:28:29 +11:00
Will Rouesnel
c82c0eb9e1 Fix docker image push from Travis. 2018-03-07 18:24:02 +11:00
Will Rouesnel
5abe56d1fc Fix new linter issues. 2018-03-07 05:25:17 +10:00
Will Rouesnel
9118b7c814 Fix bad gofmt'ing. 2018-03-07 05:25:17 +10:00
Will Rouesnel
fa2c1e8f0f Fix pg_up never being set to 1 (introduced by #162).
Correct fix for #160.
2018-03-07 05:25:17 +10:00
Will Rouesnel
2f4fc7201f Disable lll in gometalinter. 2018-03-07 05:25:17 +10:00
Will Rouesnel
3f6cdf2e85 Fix magefile exclusion handling. 2018-03-07 05:25:17 +10:00
Will Rouesnel
4117fb2afc Ensure pg_up is always set to 0 when the initial database connection fails.
This did in fact turn out to be an oversight in the error handling. Now, any
error in the initial connection path will always trip pg_up to be 0.

Fixes #160
2018-03-06 07:57:44 +10: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