You've already forked wc-licensed-product
Add Prometheus metrics integration (v0.7.4)
All checks were successful
Create Release Package / build-release (push) Successful in 1m8s
All checks were successful
Create Release Package / build-release (push) Successful in 1m8s
- New Metrics settings tab with enable/disable toggle - PrometheusController for wp_prometheus_collect_metrics hook - License gauges: total by status, lifetime, expiring, expiring soon - Download gauges: total downloads, active versions - API counters: requests, rate limits, validation errors - Metric tracking in RestApiController and UpdateController Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
22
CHANGELOG.md
22
CHANGELOG.md
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.7.4] - 2026-02-03
|
||||
|
||||
### Added
|
||||
|
||||
- **Prometheus Metrics Integration**: Expose license and API metrics for monitoring
|
||||
- New "Metrics" settings tab with enable/disable toggle
|
||||
- License gauges: total by status, lifetime, expiring, expiring soon
|
||||
- Download gauges: total downloads, active versions count
|
||||
- API counters: requests by endpoint/result, rate limit exceeded events, validation errors by type
|
||||
- Requires [WP Prometheus](https://src.bundespruefstelle.ch/magdev/wp-prometheus) plugin
|
||||
|
||||
### New Files
|
||||
|
||||
- `src/Metrics/PrometheusController.php` - Prometheus metrics collection and registration
|
||||
|
||||
### Technical Details
|
||||
|
||||
- Hooks into `wp_prometheus_collect_metrics` action for metric collection
|
||||
- API counters stored persistently in WordPress options (`wclp_prometheus_counters`)
|
||||
- Static methods for incrementing counters from API controllers
|
||||
- Metrics only collected when enabled in settings
|
||||
|
||||
## [0.7.3] - 2026-02-01
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in New Issue
Block a user