Cratedb Prometheus Adapter Versions Save

CrateDB Prometheus Adapter.

0.5.1

3 months ago

What's Changed

  • Packaging: Re-add compatibility with glibc 2.31, by building on golang:1.20-bullseye.
  • Fixed use of schema configuration setting, it was not honored.

Details

Full Changelog: https://github.com/crate/cratedb-prometheus-adapter/compare/0.5.0...0.5.1

0.5.0

4 months ago

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 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.
  • 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.

Full Changelog: https://github.com/crate/cratedb-prometheus-adapter/compare/0.4.0...0.5.0

0.4.0

3 years ago

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

3 years ago

BREAKING CHANGES

  • This release changes the program name to cratedb-prometheus-adapter and the default prefix for exported metrics to cratedb_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

5 years ago
  • 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.

Download binaries

0.2.0

5 years ago

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.

Download binaries