內容簡介
這個外掛提供機制,檢查您的網站上關鍵頁面的主要連線統計數據。
它透過使用「curl」PHP 函數連接您設定的關鍵頁面,並每分鐘從連線中收集指標,再將數據寫入 JSON 統計檔案來供監控系統使用。
在我們的情況下,我們使用 Prometheus,因此提供了指標端點。我們通過下列 Prometheus 配置部分收集指標:
`
– 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
`
開發者團隊
原文外掛簡介
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
`
