I have a spring-cloud-gateway-webflux service and I have enabled all the actuators but the /actuator/gateway doesn't show up so I can't view all the routes.
I am using the following dependencies:
plugins {
id 'java'
id 'org.springframework.boot' version '3.5.3'
id 'io.spring.dependency-management' version '1.1.7'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
ext {
set('springCloudVersion', "2025.0.0")
set('grpcVersion', '1.73.0')
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway-server-webflux'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.grpc:grpc-netty:' + grpcVersion
implementation 'io.grpc:grpc-protobuf:' + grpcVersion
implementation 'io.grpc:grpc-stub:' + grpcVersion
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
Yaml config:
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
gateway:
enabled: true
access: read_only
I have figured out the issue. Instead of "enabled" you have to use access. So use this:
endpoint:
gateway:
access: read_only