目錄
ANALYTICS & MONITORING
Prometheus
LOGGING
HTTP Log
測試
Enabling the plugin globally:
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsISPrdEZwZ1Rh5WNXp1bwNjW1ZUba9VZwlHdsATOfd3bkFGazxCMx8VesATMfhHLlN3XnxCMwEzX0xiRGZkRGZ0Xy9GbvNGLpZTY1EmMZVDUSFTU4VFRR9Fd4VGdsYTMfVmepNHLrJXYtJXZ0F2dvwVZnFWbp1zczV2YvJHctM3cv1Ce-cmbw5iN3cDZkdzY5MGZ4IjYkdjMxUGNzgjZxcjNhVmN4kzN18CX5EzLcdDMxIDMy8CXn9Gbi9CXzV2Zh1WavwVbvNmLvR3YxUjL1M3Lc9CX6MHc0RHaiojIsJye.png)
Available metrics:
Status codes
Latencies Histograms
Request
Kong
Upstream
Bandwidth
DB reachability
Connections
Target Health
Here is an example of output you could expect from the /metrics endpoint:
Prometheus 監控 Kong 配置:
Check:
Grafana dashboard: Metrics exported by the plugin can be graphed in Grafana using a drop in dashboard: https://grafana.com/dashboards/7424.
配置 Logstash 管道:從 Kong HTTP Log 接受,并導入到 ElasticSearch,index 為 <code>kong-</code>。
檢視 ES index:
開啟 Kong HTTP Log 插件:
Log Format:
調用 Kong Proxy API:
檢視 Kong Server 日志:
檢視 Logstash 日志:
檢視 Kiabana discover: