You've already forked wc-licensed-product
-
Release 0.7.4
StableAll checks were successfulCreate Release Package / build-release (push) Successful in 1m8sreleased this
2026-02-03 09:52:59 +00:00 | 3 commits to main since this releaseAdded
- 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 plugin
New Files
src/Metrics/PrometheusController.php- Prometheus metrics collection and registration
Technical Details
- Hooks into
wp_prometheus_collect_metricsaction 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
Downloads
- Prometheus Metrics Integration: Expose license and API metrics for monitoring