e8540767e4
chore!: adopt log/slog, drop go-kit/log ( #1073 )
...
* ci: update go to version 1.23
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com >
* build(deps): bump prometheus/{client_golang,common,exporter-toolkit}
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com >
* chore!: adopt log/slog, drop go-kit/log
The bulk of this change set was automated by the following script which
is being used to aid in converting the various exporters/projects to use
slog:
https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com >
---------
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com >
Co-authored-by: Ben Kochie <superq@gmail.com >
2024-10-26 21:44:17 +02:00
a8b86cf7da
Include all idle processes in the process idle metrics
...
Signed-off-by: Tom Hughes <tom@compton.nu >
2023-07-06 08:48:59 +01:00
6b56e2f057
Unpack postgres arrays for process idle times correctly ( #855 )
...
Signed-off-by: Ben Kochie <superq@gmail.com >
2023-07-06 09:33:54 +02:00
e6ce2ecba9
Bug Fix: Fix lingering type issues ( #828 )
...
* Fix postmaster type issue
* Disable postmaster collector by default
---------
Signed-off-by: Felix Yuan <felix.yuan@reddit.com >
2023-06-27 20:18:02 +02:00
030a2a9bc7
Cleanup collectors ( #826 )
...
Fix up `replication` and `process_idle` Update input params to match
the rest of the collectors.
Signed-off-by: SuperQ <superq@gmail.com >
2023-06-27 16:40:12 +02:00
8d087f2c64
Bug fix: Make collector not fail on null values ( #823 )
...
* Make all values nullable
---------
Signed-off-by: Felix Yuan <felix.yuan@reddit.com >
Co-authored-by: Ben Kochie <superq@gmail.com >
2023-06-27 08:07:59 +02:00
ab33346cbd
Add the instance struct to handle connections
...
The intent is to use the instance struct to hold the connection to the database as well as metadata about the instance. Currently this metadata only includes the version of postgres for the instance which can be used in the collectors to decide what query to run. In the future this could hold more metadata but for now it keeps the Collector interface arguments to a reasonable number.
Signed-off-by: Joe Adams <github@joeadams.io >
2023-06-21 20:36:59 -04:00
99828de70a
Fix up collector registration ( #812 )
...
Use const definitions to make collector registration consistent.
* Use collector subsystem name consistently.
* Fix up replication metric name unit.
Signed-off-by: SuperQ <superq@gmail.com >
2023-06-13 17:28:11 +02:00
fe960c6b54
Move queries from queries.yaml to collectors ( #801 )
...
Signed-off-by: Ben Kochie <superq@gmail.com >
2023-06-08 23:28:04 +02:00