Commit Graph

68 Commits

Author SHA1 Message Date
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
0a05102bc1
Build out more unit tests and fix bugs 2025-01-08 17:01:11 -05:00
0c62ee19ce
Switch back to psycopg2 2025-01-08 02:39:20 -05:00
40200c5372
Add initial unit tests 2025-01-03 02:16:40 -05:00
c10079d2c5
Cache PostgreSQL version 2024-10-31 02:18:45 -04:00
1e9f8e4b1d
Leave failed dbs alone for a bit 2024-10-31 01:03:43 -04:00
237ee9d2a2
Add ability to read sql from files, align dbname 2024-10-29 02:51:57 -04:00
449c202098
Add agent version 2024-10-29 01:57:24 -04:00
80661f1b72
Clean up Gentoo install files 2024-10-25 02:45:14 -04:00
c13951e16e
Simplify the code by switching to http for IPC 2024-10-24 12:26:15 -04:00
9fd03f5027
Fix config reload 2024-07-18 00:10:43 -04:00
James Campbell
0d2e78fa7c Add agent and cluster LLD macros to item keys
* In order to suport calculated items and to select the right agent, add
  the {#agent} and {#cluster} discovery macros to item keys.

* Add more tags to items
2024-07-17 12:33:07 -04:00
James Campbell
695ad60b43 Fix verbose flag, and some queries
* Make the verbose flag do something (sets stderr logging to DEBUG)

* Coalesce potentially NULL values to 0 in db stats

* Cast the stats reset time difference to float since the python json
  library can't serialize a Decimal type.
2024-07-17 12:26:03 -04:00
James Campbell
8edda91f2a Fix positional parameters 2024-06-29 17:24:49 -04:00
James Campbell
000875f5aa Pass agent and cluster names to discovery 2024-06-29 12:59:45 -04:00
7bad418850
Fix logging 2024-06-07 03:11:07 -04:00
4afa78713f
Fix template and typo 2024-06-07 02:39:44 -04:00
c1747d58dc
Debug agent 2024-06-07 02:10:38 -04:00
7a4e62a94e
Fix args 2024-06-06 22:44:34 -04:00
20c897d37a
Fix Gentoo init script 2024-06-06 00:51:04 -04:00
9b527e172d
Make writing the pid file optional 2024-06-06 00:44:05 -04:00
f528d92030
Modify userparam file for Gentoo 2024-06-06 00:27:43 -04:00