[WordPress] 外掛分享: Web Request Metrics

首頁外掛目錄 › Web Request Metrics
10+
安裝啟用
尚無評分
2304 天前
最後更新
問題解決
WordPress 4.7.2+ v0.4.0 上架:2018-06-11

內容簡介

這個外掛提供機制,檢查您的網站上關鍵頁面的主要連線統計數據。

它透過使用「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

`

開發者團隊

⬇ 下載最新版 (v0.4.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Web Request Metrics」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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
`

延伸相關外掛

文章
Filter
Apply Filters
Mastodon