Commit Graph

89 Commits

Author SHA1 Message Date
c0185d4b86
Remove extra quotes in replication slot query 2025-06-15 02:20:45 -04:00
d34dfc5bf7
Fix replication monitoring queries 2025-06-15 02:19:10 -04:00
7c395a80fe
Add metrics for tracking cache hit ratios 2025-06-13 01:16:24 -04:00
8fe81e3ab3
Fix global variable placement 2025-06-04 12:49:35 -04:00
cfe01eb63e
Fix typo in latest version Zabbix item 2025-06-04 01:44:25 -04:00
55b9b16deb
Install to /usr/bin
* Standardize all install methods to use /usr/bin rather than some of
  them using /usr/local/bin

* Make the init script executable in install-openrc
2025-06-04 01:16:59 -04:00
6a22597f1f
Fix ID age query and template 2025-06-04 00:47:51 -04:00
295d1d6310
Fix typo in install-openrc 2025-06-03 19:38:59 -04:00
8b804f3912
Add requests as a dependency, split install target
* Add requests as a dependency on all OSs

* Split the install target into a common target and separate
  install-systemd and install-openrc targets to support installing on
  Alpine
2025-06-03 19:34:58 -04:00
bc9e039cb3
Fix Gentoo package prefix, update ebuild 2025-06-03 12:46:09 -04:00
54cf117591
Fix package contents for Gentoo
* Use git to identify only the version controlled files when creating
  the Gentoo tarball.
2025-06-03 12:06:34 -04:00
8e32e01c20
Merge branch 'dev/pg-version-lag' 2025-06-03 02:00:48 -04:00
af3bbf7515
Bump version to 1.0.3 2025-06-03 02:00:26 -04:00
180fa31d14
Add latest version metric
* Add a special handler for latest version info

* Add initial latest version items/triggers to the Zabbix template
2025-06-03 01:58:44 -04:00
39a6a9d23e
Add replication slot monitoring to Zabbix template 2025-06-03 01:42:50 -04:00
f716569aa7
Add more tests for the version check code 2025-06-02 12:39:34 -04:00
22ae634a87
Format code with black 2025-06-02 03:41:15 -04:00
375bf6a982
Restructure latest version code for testing
* Split the latest version check code into functions for unit testing

* Add initial unit tests for latest version check
2025-06-02 03:39:52 -04:00
487386a7cc
Initial work on latest version check code
* Add code to pull the latest supported versions of PostgreSQL from the
  official RSS feed.

* TODO: Split rss parsing code into separate function for unit testing.

* TODO: Test/debug

* TODO: Add metrics to return how far behind the latest version the
  current cluster is.
2025-06-01 02:44:01 -04:00
15097dcba4
Merge branch 'dev/query-tests' 2025-06-01 00:55:46 -04:00
1d642d41b2
Bump version to 1.0.2
* Modify Makefile to extract the version from the mainscript

* Bump version to 1.0.2
2025-06-01 00:23:26 -04:00
80304f40d1
Revise the versions on a few queries, improve query tests
* Add ability to specify the sslmode parameter when connecting to
  PostgreSQL

* Fix min versions for replication queries

* Add query-tests target to main Makefile
2025-06-01 00:12:31 -04:00
c0e1531083
Add query test script and test mode
* Add a mode to test all metric queries

* Add a script to run query tests against different versions of
  PostgeSQL

* Add Docker elements for query testing

* Switch to using a --config flag when specifying the config file

* Fix some metric queries

* Allow the agent address to be configured

* Allow the sslmode connection parameter to be configured
2025-05-22 14:53:25 -04:00
529bef9679
Add ability to run query tests 2025-05-18 12:52:32 -04:00
8928bba337
Format python using black 2025-05-15 02:04:50 -04:00
c872fc6b90
Start implementing metric tests 2025-05-15 02:01:20 -04:00
030afafc20
Actually fix Gentoo ebuild for v1.0.1 2025-05-14 02:42:10 -04:00
2dfc336288
Add target to build package for Gentoo 2025-05-14 01:43:44 -04:00
27e1c517bc
Add ebuild file for v1.0.1 2025-05-14 01:05:17 -04:00
e6166d1fe3
Update version to 1.0.1 2025-05-14 00:29:09 -04:00
bffabd9c8f
Reformat python code using black 2025-05-13 01:44:47 -04:00
98ac25743b
Add queries for replication slot monitoring 2025-04-19 02:33:48 -04:00
7fc23961b0
Switch template to http agent 2025-04-19 02:28:33 -04:00
8ace133c23
Dynamically specify version for RPM builds 2025-04-19 00:22:26 -04:00
2afeb827ed
Improve openrc init script, add port setting
* Ensure the log directory exists with openrc

* Add a port setting to configure the port the agent listens on

* Switch to RealDictCursor

* Fix type for connection timeout
2025-04-19 00:07:15 -04:00
9b382bedaa
Improve Gentoo ebuild 2025-01-31 00:18:17 -05:00
058fe546a4
Secure git repo 2025-01-27 00:48:17 -05:00
466e4e7073
Improve packaging 2025-01-25 01:33:30 -05:00
James Campbell
15c26e1a29 Improve install tests 2025-01-22 00:45:20 -05:00
ddbb276b9e
Correct missing directory for logrotate config 2025-01-16 00:14:05 -05:00
0cd1fe0148
Package logrotate script 2025-01-15 01:34:04 -05:00
ab7381f0ca
Tidy up a bit 2025-01-14 01:59:18 -05:00
e0a98b668e
Add missing dependencies 2025-01-14 01:54:35 -05:00
7b58b4a3ed
Make systemd user configurable and create log directory 2025-01-11 01:18:03 -05:00
2c87a41048
Remove f-strings for python2 compatibility 2025-01-10 12:39:22 -05:00
8b557d45dd
Continue to work on packaging 2025-01-10 00:40:41 -05:00
0fe6e259ea
Specify a minumum python version for deb, expand man page 2025-01-09 03:31:55 -05:00
292c6bfd80
More work on getting packaging working 2025-01-08 20:58:52 -05:00
a21a4355e5
Restructure for packaging 2025-01-08 18:34:51 -05:00
2ad9158cfe
Cleanup 2025-01-08 17:12:35 -05:00