Skip to main content
Version: 1.6.x

spring_gateway

Collect and monitor the general performance metrics exposed by the SpringBoot actuator.

Pre-monitoring operations​

If you want to monitor information in 'Spring Gateway' with this monitoring type, you need to integrate your SpringBoot application and enable the SpringBoot Actuator.

1、Add POM .XML dependencies:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

2. Modify the YML configuration exposure metric interface:

management:
endpoint:
gateway:
enabled: true # default value
endpoints:
web:
exposure:
include: '*'
enabled-by-default: on

Configure parameters​

| Parameter name | Parameter Help describes the | |-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| | Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | | Monitoring Name | A name that identifies this monitoring that needs to be unique. | | Port | The default port provided by the database is 8080. | | Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | | The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | | Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | | Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here |

Collect metrics​

metric Collection: Health​

Metric Namemetric unitMetrics help describe
statusNoneService health: UP, Down

metric Collection: environment​

Metric Namemetric unitMetrics help describe
profileNoneThe application runs profile: prod, dev, test
portNoneApply the exposed port
osNoneRun the operating system
os_archNoneRun the operating system architecture
jdk_vendorNonejdk vendor
jvm_versionNonejvm version

metric Collection: threads​

| Metric Name | metric unit | Metrics help describe | |-------------|-------------|----------------------------------|-------------------| | state | None | Thread status | | number | None | This thread state corresponds to | number of threads |

metric Collection: memory_used​

Metric Namemetric unitMetrics help describe
spaceNoneMemory space name
mem_usedMBThis space occupies a memory size of

metric Collection: route_info​

Metric Namemetric unitMetrics help describe
route_idNoneRoute id
predicateNoneThis is a routing matching rule
uriNoneThis is a service resource identifier
orderNoneThe priority of this route