Files
wp-prometheus/CHANGELOG.md
magdev 6256ba777c
All checks were successful
Create Release Package / build-release (push) Successful in 59s
feat: Add runtime metrics for HTTP requests and database queries (v0.1.0)
- Add RuntimeCollector class for tracking request lifecycle metrics
- Add wordpress_http_requests_total counter (method, status, endpoint)
- Add wordpress_http_request_duration_seconds histogram
- Add wordpress_db_queries_total counter (endpoint)
- Add wordpress_db_query_duration_seconds histogram (requires SAVEQUERIES)
- Update Collector to expose stored runtime metrics
- Add new settings options for enabling/disabling runtime metrics
- Create translation files (.pot, .po, .mo) for internationalization
- Update documentation and changelog

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 14:24:05 +01:00

2.2 KiB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.1.0] - 2026-02-02

Added

  • HTTP request metrics:
    • wordpress_http_requests_total - Counter of HTTP requests by method, status code, and endpoint
    • wordpress_http_request_duration_seconds - Histogram of request durations
  • Database query metrics:
    • wordpress_db_queries_total - Counter of database queries by endpoint
    • wordpress_db_query_duration_seconds - Histogram of query durations (requires SAVEQUERIES)
  • RuntimeCollector class for collecting metrics during WordPress request lifecycle
  • New settings options for enabling/disabling runtime metrics
  • Translation files (.pot, .po, .mo) for German (Switzerland)

Changed

  • Metrics are now categorized into static metrics (users, posts, etc.) and runtime metrics (HTTP, database)
  • Runtime metrics only collected when explicitly enabled and license is valid

[0.0.2] - 2026-02-01

Fixed

  • Fixed composer.json dependency version constraint for wc-licensed-product-client (^0.2.2 instead of dev-main)
  • Changed minimum-stability back to stable

[0.0.1] - 2026-02-01

Added

  • Initial plugin structure and bootstrap
  • Main plugin class with singleton pattern
  • License management integration with wc-licensed-product-client
  • Prometheus metrics collector with default WordPress metrics:
    • wordpress_info - WordPress installation information
    • wordpress_users_total - Total users by role
    • wordpress_posts_total - Total posts by type and status
    • wordpress_comments_total - Total comments by status
    • wordpress_plugins_total - Total plugins by status
  • Authenticated /metrics endpoint with Bearer token
  • Admin settings page under Settings > Metrics
  • Extensibility via wp_prometheus_collect_metrics action hook
  • Gitea CI/CD pipeline for automated releases
  • Comprehensive documentation (README.md, PLAN.md, CLAUDE.md)

Security

  • Bearer token authentication for metrics endpoint
  • Nonce verification for all AJAX requests
  • Capability checks for admin operations
  • Input sanitization and output escaping