If I run this project on Windows, then everything works fine, but when I run it on macOS, the actuator/prometheus endpoint becomes unavailable. On macOS it is not even created, when requesting /actuator there are all endpoints except /prometheus.
Here's full project: https://github.com/Rohlend1/Dictionary/tree/grafana/backend
Here's my application.properties
management.endpoint.prometheus.enabled=true management.prometheus.metrics.export.enabled=true management.endpoints.web.exposure.include=*
Here's my build.gradle.kts
plugins {
java
id("org.springframework.boot") version "3.2.3"
id("io.spring.dependency-management") version "1.1.4"
id("org.openapi.generator") version "7.3.0"
id("com.google.protobuf") version "0.9.4"
}
group = "com.example"
version = "1.0"
val openApiGeneratingTasks = mutableListOf<GenerateTask>()
val grpcVersion = "1.62.2"
val protocVersion = "3.25.3"
val osClassifier = "osx-x86_64"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
}
If I run this project on Windows, then everything works fine, but when I run it on macOS, the actuator/prometheus endpoint becomes unavailable. On macOS it is not even created, when requesting /actuator there are all endpoints except /prometheus. Here's full project: https://github.com/Rohlend1/Dictionary/tree/grafana/backend Here's my application.properties
management.endpoint.prometheus.enabled=true management.prometheus.metrics.export.enabled=true management.endpoints.web.exposure.include=*
Here's my build.gradle.kts