Web Request Metrics
v0.4.0rossigee · 2018年6月12日 上架
This plugin provides a mechanism for checking the main connection statistics for page requests to key pages on your site. It does this by connecting …
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 2,160
- 最近更新
- 2019年11月27日
贡献者
This plugin provides a mechanism for checking the main connection statistics for page requests to key pages on your site.
It does this by connecting to the key pages you configure every minute, using ‘curl’ PHP functions, gathering the metrics from the connection into a JSON statistics file to be supplied to your monitoring systems.
In our case, we run Prometheus, so a metrics endpoint is provided. We gather the metrics with the following section of Prometheus configuration:
`
– job_name: ‘WebRequestMetrics’
scrape_interval: 60s
honor_labels: true
scheme: ‘https’
basic_auth:
username: ‘prometheus’
password: ‘secret_token_known_to_your_monitoring_system’
metrics_path: ‘/’
params:
__metrics: [1]
static_configs:
– targets:
– www.golder.org
– www.myothersite.com
`