Releases: crate/cratedb-prometheus-adapter
0.5.1
What's Changed
- Packaging: Re-add compatibility with glibc 2.31,
by building ongolang:1.20-bullseye
. - Fixed use of
schema
configuration setting, it was not honored.
Details
- CI: Start providing OCI images for the ARM architecture by @amotl in #114
- Tests: Integration tests to verify query expressions end-to-end by @amotl in #115
- Packaging: Re-add compatibility with glibc 2.31 by @amotl in #122
- Fix use of
schema
configuration setting, it was not honored by @amotl in #117 - Chore(deps): Bump github.com/jackc/pgx/v5 from 5.5.1 to 5.5.2 by @dependabot in #118
- Chore(deps): Bump github.com/jackc/pgtype from 1.14.0 to 1.14.1 by @dependabot in #119
- Chore(deps): Bump github.com/prometheus/common from 0.45.0 to 0.46.0 by @dependabot in #120
- Chore: Development sandbox Docker Compose configuration; Tests: Fix
PROMETHEUS_URL
; deactivate failing test; Misc. by @amotl in #116
Full Changelog: 0.5.0...0.5.1
0.5.0
What's Changed
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 tolocalhost:5432
with usernamecrate
. - Add query timeouts using context cancellation. The corresponding
configuration settings areread_timeout
andwrite_timeout
. - Use a different connection pool for read vs. write operations.
The corresponding settings to configure the maximum pool sizes
areread_pool_size_max
andwrite_pool_size_max
. - 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 wasconfig.yml
. When the option is omitted, the service
will use the built-in settings, connecting to CrateDB onlocalhost:5432
.
Full Changelog: 0.4.0...0.5.0
0.4.0
BREAKING CHANGES
- This release changes the toplevel configuration section name to
cratedb_endpoints
.
It is an aftermath of the "naming things" refactorings happening in 0.3.0.
CHANGES
-
Improve network behaviour: Adjust TCP timeout and keepalive settings to
mitigate problems that can occur when the adapter in connecting to CrateDB
via a load balancer that may drop idle connections in-transparently, such as
in AKS. The default values are:- KeepAlive: 30 seconds
- ConnectTimeout: 10 seconds
The TCP connect timeout can be adjusted by using the
-tcp.connect.timeout
option.
0.3.0
BREAKING CHANGES
- This release changes the program name to
cratedb-prometheus-adapter
and the default prefix for exported metrics tocratedb_prometheus_adapter_
.
The latter can be reconfigured using the new-metrics.export.prefix
option.
CHANGES
-
Provide a default
config.yml
in the Docker image, which can be replaced
by mounting a file on/etc/cratedb-prometheus-adapter/config.yml
. -
Made Go 1.16 a minimum requirement.
-
Updated project to make use of
Go modules <https://golang.org/ref/mod>
_
instead of Govendor. -
Renamed the program to
cratedb-prometheus-adapter
. -
Renamed the exported metric prefix to
cratedb_prometheus_adapter_
. It is
now, for example,cratedb_prometheus_adapter_write_latency_seconds
.
Attention: This is a breaking change with respect to your exported metric
names. In order to keep the former name, use
./cratedb-prometheus-adapter -metrics.export.prefix=crate_adapter_
.
0.2.1
-
Fixed the translation of prometheus queries using regular expressions
(metric_name{job=~"something"}
) , so that the generated SQL queries match
the proper records in CrateDB. -
Fixed an issue that caused reads to increment the write metrics instead of
the read metrics.
crate_adapter-0.2.0 / 2018-07-10
CHANGES
- Use Postgres wire protocol (pgx client library) to connect to CrateDB:
- This change requires CrateDB 3.1.0 or newer!
- Connections can be configured via
crate.yml
configuration file using the-config.file
flag. - Added support for multiple endpoints.