junmuz opened a new pull request, #7647:
URL: https://github.com/apache/paimon/pull/7647
### Purpose
Bridge Paimon commit metrics into Spark's MetricsSystem using a Codahale
MetricRegistry so they are accessible as JMX MBeans. This enables
jmx_prometheus_javaagent to scrape Paimon metrics (commit duration, files
added/deleted, records appended, partitions written, etc.).
- Add SparkMetricGroup extending MetricGroupImpl to dual-register metrics in
both Paimon's internal registry and a shared Codahale registry
- Add PaimonMetricsSource singleton with its own JmxReporter to register
MBeans immediately (bypasses Spark MetricsSystem snapshot limitation)
- Wire SparkMetricRegistry to use SparkMetricGroup
- Add withMetricRegistry() to V1 commit path in PaimonSparkWriter
### Tests
- Unit tests for SparkMetricGroup: gauge/counter/histogram registration,
lazy value updates, close cleanup, name sanitization, collision handling,
backward compatibility with getMetrics()
- Integration tests verifying commit metrics appear in the Codahale
registry after writes and update correctly on subsequent commits
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]