Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.2.0
2 changes: 1 addition & 1 deletion docs/workload-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
2 changes: 1 addition & 1 deletion planetscale_discovery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
across PostgreSQL databases and cloud infrastructure.
"""

__version__ = "2.1.0"
__version__ = "2.2.0"
__author__ = "PlanetScale"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading