diff --git a/CHANGELOG.md b/CHANGELOG.md index f8aa820..dd5a7fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,22 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added - -- **Common values of declared columns.** The workload bundle now has `distributions.json`. It holds the most common values from `pg_stats` for each column under `database.workload.distributions`. Values ship verbatim unless `hash_values: true`. The capture role needs `SELECT` on each declared column. See [Recording the common values of chosen columns](docs/workload_capture.md#recording-the-common-values-of-chosen-columns). -- **Aurora Serverless capacity and real storage.** The AWS analyzer reads CloudWatch metrics for each RDS instance and Aurora cluster in one `GetMetricData` call per region. Each `db.serverless` instance records its observed ACU range and the memory that it gives. Aurora clusters record `VolumeBytesUsed` and their backup and snapshot storage. See [AWS Setup](docs/providers/aws.md). +## [2.2.0] - 2026-10-09 -### Changed +### Added -- The AWS IAM policy needs `cloudwatch:GetMetricData` in place of `cloudwatch:GetMetricStatistics`. +- **Common values of declared columns.** The workload bundle has a new `distributions.json` with the most common values of each declared column. See [Recording the common values of chosen columns](docs/workload_capture.md#recording-the-common-values-of-chosen-columns). +- **Aurora Serverless capacity and storage.** The AWS analyzer records the ACU range of each `db.serverless` instance and the storage of each Aurora cluster. See [AWS Setup](docs/providers/aws.md). ### Changed -- **Query log capture settings.** `capture_log_type` is required when `capture_log` is on, and is `statement` or `pgaudit`. `capture_log_source` is now `file` or `log_fdw`, and defaults to `file`. The tool reads whether an exported file is plain text, csvlog or a pgAudit JSON export. The old `capture_log_source` values `pgaudit`, `pgaudit-json`, `stderr` and `auto` are rejected, and the error names the settings that replace them. See [Capturing transaction shapes and values](docs/workload_capture.md#capturing-transaction-shapes-and-values). +- The AWS IAM policy needs `cloudwatch:GetMetricData`, not `GetMetricStatistics`. +- **Query log capture settings.** `capture_log_source` is now `file` or `log_fdw`, and the new `capture_log_type` is `statement` or `pgaudit`. See [Capturing transaction shapes and values](docs/workload_capture.md#capturing-transaction-shapes-and-values). ### Fixed -- **`mysql.database` did not limit MySQL discovery to one database.** The setting only chose the connection's default database, and the schema analysis and feature checks scanned every non-system database on the server. They now cover the configured database alone. An empty `database` still covers every non-system database. +- `mysql.database` now limits MySQL discovery to that database. ## [2.1.0] - 2026-10-05 diff --git a/README.md b/README.md index a6c1550..716a239 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ Agents must follow instructions in `AGENTS.md`. ```bash # Download and extract the release -unzip ps-discovery-2.1.0.zip -cd ps-discovery-2.1.0 +unzip ps-discovery-2.2.0.zip +cd ps-discovery-2.2.0 # Run the interactive setup script ./setup.sh diff --git a/VERSION b/VERSION index 7ec1d6d..ccbccc3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0 +2.2.0 diff --git a/docs/workload-bundle.md b/docs/workload-bundle.md index 1365d7a..e1980b0 100644 --- a/docs/workload-bundle.md +++ b/docs/workload-bundle.md @@ -156,7 +156,7 @@ here would be a second source that can disagree with them. "schema_version": 3, "capture_id": "b01d8e74", "generated_at": "2026-08-31T14:27:19Z", - "discovery_version": "2.1.0", + "discovery_version": "2.2.0", "window": { "start": "...", "end": "...", "tz": "UTC" }, "intervals": [{ "start": "...", "end": "...", "calls": 146079 }], "intervals_skipped": [], diff --git a/planetscale_discovery/__init__.py b/planetscale_discovery/__init__.py index cd9d982..e55feff 100644 --- a/planetscale_discovery/__init__.py +++ b/planetscale_discovery/__init__.py @@ -5,5 +5,5 @@ across PostgreSQL databases and cloud infrastructure. """ -__version__ = "2.1.0" +__version__ = "2.2.0" __author__ = "PlanetScale" diff --git a/pyproject.toml b/pyproject.toml index 3ba6fed..cf8b6a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "planetscale-discovery-tools" -version = "2.1.0" +version = "2.2.0" description = "Comprehensive database and cloud infrastructure discovery tools" authors = [{name = "PlanetScale", email = "engineering@planetscale.com"}] readme = "README.md" diff --git a/setup.py b/setup.py index b252af9..f8d5634 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name="planetscale-discovery-tools", - version="2.1.0", + version="2.2.0", description="Comprehensive database and cloud infrastructure discovery tools", long_description=README, long_description_content_type="text/markdown",