From 7b93aeefa09e8c3c18723bedd9dc67a259a1a607 Mon Sep 17 00:00:00 2001 From: hlcianfagna <110453267+hlcianfagna@users.noreply.github.com> Date: Thu, 28 Dec 2023 08:06:04 +0000 Subject: [PATCH 1/2] Chore: Update change log --- CHANGES.rst | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 234d56e..37b61ad 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,40 +5,37 @@ CHANGES for CrateDB Prometheus Adapter Unreleased ========== -- Add support for Go 1.20 and 1.21, drop support for previous releases. -- Update to pgx5 library + +CHANGES +------- +- Accept invoking the program without default configuration file ``config.yml`` + In this case, the program will fall back to the builtin defaults, essentially + connecting to ``localhost:5432`` with username ``crate``. - Add query timeouts using context cancellation. The corresponding configuration settings are ``read_timeout`` and ``write_timeout``. - Use a different connection pool for read vs. write operations. The corresponding settings to configure the maximum pool sizes are ``read_pool_size_max`` and ``write_pool_size_max``. -- Use a DSN-style connection string for talking to pgx5 -- Update Prometheus libraries (client: 1.16, server: 2.46) +- Accept invocation without default configuration file ``config.yml``. +- Add command line option ``-config.make`` to print a blueprint configuration + file to stdout. +- Use a DSN-style connection string for talking to pgx5. +- Add program version to startup log message. + +DEPENDENCIES +------------ +- Add support for Go 1.20 and 1.21, drop support for previous releases +- Update dependency packages across the board to their latest or minor patch releases +- Update Prometheus libraries (client: 1.18, server: 2.48) - Update Protocol Buffers libraries (google.golang.org/protobuf 1.31) +- Update to pgx5 library BREAKING CHANGES ---------------- - - This release removes the default value for the ``-config.file`` command line option, which was ``config.yml``. When the option is omitted, the service will use the built-in settings, connecting to CrateDB on ``localhost:5432``. -CHANGES -------- - -- Add support for Go 1.18 and 1.19, drop support for previous releases. - -- Update dependency packages across the board to their latest or minor patch releases. - -- Accept invoking the program without default configuration file ``config.yml``. - In this case, the program will fall back to the builtin defaults, essentially - connecting to ``localhost:5432`` with username ``crate``. - -- Add command line option ``-config.make`` to print a blueprint configuration - file to stdout. - -- Add program version to startup log message - 2021-05-04 0.4.0 ================ From 7d6e85a68706f2fa0f3b2ddea6f4758b90cc6d7b Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 12 Jan 2024 07:16:38 +0100 Subject: [PATCH 2/2] Release 0.5.0 --- CHANGES.rst | 2 ++ server.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 37b61ad..d02f742 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ CHANGES for CrateDB Prometheus Adapter Unreleased ========== +2024-01-12 0.5.0 +================ CHANGES ------- diff --git a/server.go b/server.go index a71d301..8949530 100644 --- a/server.go +++ b/server.go @@ -26,7 +26,7 @@ import ( yaml "gopkg.in/yaml.v2" ) -const version = "0.5.0-dev" +const version = "0.5.0" var ( listenAddress = flag.String("web.listen-address", ":9268", "Address to listen on for Prometheus requests.")