描述
PromPress tracks various website and WordPress related metrics for collection by Prometheus, which allows you to monitor your site’s performance and health. You can even setup dashboards with Grafana and/or setup alerting via Prometheus Alertmanager.
(Note: Requires Object Caching via Redis to be active, so that the plugin can store metrics.)
We track a range of Website and WordPress specific metrics:
- Request Count
- Request Duration
- Request Peak Memory Usage
- External Request Duration
- Query Count
- Query Duration
- Plugin Updates
- Theme Updates
- Emails Sent
- User Count
- Post Count
- Option Count
This gives you the ability to monitor the performance of your website over time and get an early warning of potential problems, like your site sending a lot of emails or the post count increasing a lot.
We purposefully avoid general software and/or server level metrics which are better handled outside of the website, like detailed database metrics which is better handled via the mysqld exporter.
常见问题
-
Does this require external service(s)?
-
Yes. This plugin requires you to have Prometheus setup and collecting the metrics from your site. You can also use Alertmanager and Grafana to get more out of it.
-
How do I configure Prometheus to scrape metrics from my site?
-
You can use this snippet in your Prometheus config (just update the domain under targets):
`yml– job_name: ‘wordpress’
scrape_interval: 15s
metrics_path: /wp-json/prompress/v1/metrics
static_configs:
– targets:
– ‘example.com’
`
贡献者及开发者
更新日志
1.2.1
- Bugfix- Properly sets the Redis prefix.
- Bugfix- Adds a filter for the Redis prefix.
1.2.0
- Bugfix- Multisite support. Uses a unique Redis key per site, allowing multiple sites in a network and/or on the same server to share a Redis server.
1.0.0
- Initial release.
