shenyu:metrics:enabled:false#false is close, true is openname :prometheus host:127.0.0.1port:8090jmxConfig:props:jvm_enabled:true#enable jvm monitoring
Finally, restart the access gateway metrics endpoint http://ip:8090 to respond to prometheus format data.
Configuration parameters
| Parameter name | Parameter help description |
|--------|----------------------------------------- --------------|
| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). |
| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. |
| Port | The port provided by the gateway Metric interface, the default is 8090. |
| Timeout | HTTP request response timeout |
| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds |
| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful |
| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here |
Collect metrics
Index collection: shenyu_request_total
Metric Name
Metric Unit
Metric Help Description
value
None
Collect all requests from ShenYu gateway
Metric collection: shenyu_request_throw_created
Metric Name
Metric Unit
Metric Help Description
value
None
Collect the number of abnormal requests from ShenYu Gateway