Skip to content

[exporter/alibabacloudmysqlduckdb] Add Alibaba Cloud RDS MySQL DuckDB exporter#47419

Draft
wangype wants to merge 3 commits intoopen-telemetry:mainfrom
wangype:feature/mysql_exporter
Draft

[exporter/alibabacloudmysqlduckdb] Add Alibaba Cloud RDS MySQL DuckDB exporter#47419
wangype wants to merge 3 commits intoopen-telemetry:mainfrom
wangype:feature/mysql_exporter

Conversation

@wangype
Copy link
Copy Markdown

@wangype wangype commented Apr 7, 2026

Description

Add a new exporter alibabacloudmysqlduckdb that sends OpenTelemetry logs, traces, and metrics to Alibaba Cloud RDS MySQL with DuckDB
engine
, built by the Alibaba AliSQL team.

  • Supports logs, traces, and metrics (gauge, sum, histogram, summary)
  • Attributes stored as MySQL JSON columns
  • Batch multi-value INSERT for high throughput
  • Auto schema creation on startup
  • TTL-based data retention via MySQL scheduled EVENTs

Alibaba Cloud RDS MySQL DuckDB is built by the Alibaba AliSQL team. It provides native MySQL syntax compatibility with DuckDB's columnar compression storage and vectorized analytical query engine, making it well-suited for observability data.

Link to tracking issue

Fixes

Testing

  • Unit tests for config loading, validation, and factory creation
  • Integration tests (//go:build integration) against real Alibaba Cloud RDS MySQL, covering all signal types and TTL EVENT verification
  • MYSQL_DSN="user:pass@tcp(host:3306)/db" go test -tags integration -v ./...

Documentation

  • README.md: configuration reference, table schema, query examples, TTL setup, example collector config

@wangype wangype requested a review from a team as a code owner April 7, 2026 11:20
@wangype wangype requested a review from dmitryax April 7, 2026 11:20
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Apr 7, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Apr 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

wangype added 2 commits April 7, 2026 19:27
… exporter

Add a new exporter that writes OpenTelemetry logs, traces, and metrics
to Alibaba Cloud RDS MySQL with DuckDB engine. Key features:

- Supports all three signal types (logs, traces, metrics)
- Attributes stored as MySQL JSON columns for flexible querying
- Batch multi-value INSERT for high throughput
- Auto schema creation (database + tables) on startup
- Metrics split into gauge, sum, histogram, summary tables

Assisted-by: Claude Opus 4.6
…d EVENTs

Add `ttl` config option (e.g. `ttl: 72h`) that automatically creates
MySQL EVENTs to periodically delete expired data. Each event runs hourly
and deletes up to 100k rows per execution to avoid long transactions.

Also updates README with TTL documentation, prerequisites, and examples.

Assisted-by: Claude Opus 4.6
@wangype wangype force-pushed the feature/mysql_exporter branch from 89bef2c to 1bf4a3b Compare April 7, 2026 11:27
@wangype wangype changed the title Feature/mysql exporter [exporter/alibabacloudmysqlduckdb] Add Alibaba Cloud RDS MySQL DuckDB exporter Apr 7, 2026
Copy link
Copy Markdown
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR, please take a look at our guidelines for donating new components to move forward

@songy23 songy23 added the Sponsor Needed New component seeking sponsor label Apr 7, 2026
@songy23 songy23 marked this pull request as draft April 7, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time contributor PRs made by new contributors Sponsor Needed New component seeking sponsor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants