add alarm template for spring cloud gateway (#3019)

This commit is contained in:
maoling
2024-09-28 00:30:41 +08:00
committed by GitHub
parent 165b3eef91
commit 7cc9434f52
2 changed files with 64 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ In addition, through the `spring.cloud.gateway.metrics.tags.path.enabled` proper
* `path`: The path of the request.
These metrics are then available to be scraped from `/actuator/metrics/spring.cloud.gateway.requests` and can be easily integrated with Prometheus to create a link:images/gateway-grafana-dashboard.jpeg[Grafana] link:gateway-grafana-dashboard.json[dashboard].
You can also alarm with these useful metrics to take an example from link:gateway-alarming.adoc[alarming-template].
NOTE: To enable the prometheus endpoint, add `micrometer-registry-prometheus` as a project dependency.