Linux 软件免费装

SlyMetrics

开发者 timonf
更新时间 2025年11月11日 02:46
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: MIT
版权网址: 版权信息

标签

performance monitoring metrics prometheus observability

下载

1.3.7 1.3.3 1.3.4 1.3.5 1.3.6 1.3.2

详情介绍:

The SlyMetrics WordPress plugin is a powerful monitoring plugin that exports comprehensive WordPress metrics in Prometheus format. Perfect for DevOps teams and system administrators who want to monitor their WordPress sites using modern observability tools. Key Features: Available Metrics: Authentication Methods:
  1. Bearer Token (Recommended)
  2. API Key (URL Parameter)
  3. WordPress Administrator (Automatic access for logged-in admins)
Security Features: Performance Features:

安装:

  1. In Wordpress: Install the plugin in the plugin section. Manual: Download and upload the plugin files to the /wp-content/plugins/slymetrics/ directory
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Navigate to 'Settings' → 'SlyMetrics' to configure authentication tokens
  4. Copy your Bearer Token or API Key for use in your Prometheus configuration
  5. Configure your Prometheus server to scrape the metrics endpoint
For detailed information take a look on the Github Page https://github.com/slydlake/slymetrics Prometheus Configuration Example: yaml scrape_configs: - job_name: 'wordpress' static_configs: - targets: ['yoursite.com'] metrics_path: '/slymetrics/metrics' authorization: type: Bearer credentials: 'your_bearer_token_here' scrape_interval: 60s

屏幕截图:

  • Admin settings page for authentication methods
  • Admin settings page for user sampels
  • Grafana dashboard displaying WordPress metrics and health status
  • Grafana dashboard displaying WordPress metrics and health status
  • Grafana dashboard selectable Websites

升级注意事项:

1.3.6 Headless WordPress support: Plugin now auto-initializes on first request without requiring admin access. Perfect for containerized, and Kubernetes deployments where wp-admin is never accessed. 1.3.3 Important fix for Kubernetes/Prometheus users: Resolves Host header issues that caused metrics endpoints to return 404 when accessed from ServiceMonitors. Highly recommended for containerized deployments. 1.3.2 Critical bugfix: Fixes encryption key creation during installation. Existing installations will be automatically migrated. Plugin now properly removes all data during uninstall. 1.3.1 Adds proper plugin uninstall functionality with complete database cleanup. No action required for existing installations. 1.3.0 WordPress.org compliance update: Proper wp_enqueue implementation, unique CSS classes, and security improvements. Fully backward compatible with enhanced admin interface. 1.2.0 Major enterprise upgrade: 3x performance boost, advanced security (rate limiting, input validation), intelligent caching, and professional code architecture. Fully backward compatible. 1.1.0 Major update with Prometheus naming compliance and rebranding to SlyMetrics. All metric names have changed from wp_* to wordpress_* and labels from wp_site to wordpress_site. Update your Prometheus queries and Grafana dashboards accordingly. 1.0.0 Initial release of Prometheus Metrics Wordpress Plugin. Install to start monitoring your WordPress site with Prometheus and Grafana.

常见问题:

What endpoints are available for metrics?

The plugin provides multiple endpoint options:

  • Primary: /slymetrics/metrics (requires permalink support)
  • Alternative: /slymetrics (requires permalink support)
  • REST API: /wp-json/slymetrics/v1/metrics
  • Fallback: /index.php?rest_route=/slymetrics/v1/metrics
  • Query parameter: /?slymetrics=1

Do I need to configure Apache or Nginx?

No! The plugin works out-of-the-box without requiring server configuration changes. Fallback URLs are automatically provided if rewrites don't work.

How secure is the authentication?

Extremely secure with enterprise-grade features. All tokens are encrypted using AES-256-CBC with unique initialization vectors. Version 1.2.0 adds comprehensive security enhancements including input validation, SQL injection prevention, XSS protection, rate limiting (60 requests/minute), and security headers. You can also use environment variables for the encryption key in production.

What metrics are exported?

The plugin exports comprehensive metrics including user counts, post/page statistics, plugin/theme information, database sizes, PHP configuration, site health data, and much more. All metrics include site labels for multi-site environments.

Can I use this with multi-site WordPress?

Yes! All metrics include site labels, making it perfect for monitoring multi-site WordPress installations.

What are the system requirements?

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • OpenSSL PHP extension (recommended for encryption)
  • WordPress administrator access for configuration
  • Minimum 64MB PHP memory limit (recommended 128MB for optimal performance)
  • Database with InnoDB support for performance metrics

更新日志:

1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.0 1.1.0 1.0.1 1.0.0