Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions data-ingestion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ apply plugin: 'org.owasp.dependencycheck'
group = 'gov.cdc.dataingestion'
version = '0.0.1-SNAPSHOT'

springBoot {
buildInfo()
}

java {
sourceCompatibility = JavaVersion.VERSION_21
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public class SecurityConfig {
"/webjars/**",
"/v3/api-docs/**",
"/swagger-ui/**",
"/api/auth/token"
"/api/auth/token",
"/actuator/health",
"/actuator/info"
};
@Autowired
private CustomAuthenticationManagerResolver customauthenticationmanagerresolver;
Expand Down
17 changes: 16 additions & 1 deletion data-ingestion-service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,29 @@ server:
max-http-form-post-size: ${API_PAYLOAD_MAX_SIZE:100MB}
max-swallow-size: ${API_PAYLOAD_MAX_SIZE:100MB}

info:
app:
name: DI
version: 1.0.0
description: Data Ingestion

management:
info:
build:
enabled: true
java:
enabled: true
endpoint:
prometheus:
enabled: true
health:
show-details: always
roles: ADMIN
endpoints:
web:
base-path: /actuator
exposure:
include: "*"
include: "health,info"
prometheus:
metrics:
export:
Expand Down
4 changes: 4 additions & 0 deletions srte-data-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ apply plugin: 'org.owasp.dependencycheck'
group = 'gov.cdc.rti'
version = '0.0.1-SNAPSHOT'

springBoot {
buildInfo()
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public class SecurityConfig {
"/actuator/prometheus",
"/actuator/prometheus/**",
"/swagger-ui/**",
"/api/auth/token"
"/api/auth/token",
"/actuator/health",
"/actuator/info"
};
@Autowired
private CustomAuthenticationManagerResolver customauthenticationmanagerresolver;
Expand Down
28 changes: 28 additions & 0 deletions srte-data-service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@ server:
servlet:
context-path: /data

info:
app:
name: SRTE Data Exchange
version: 1.0.0
description: SRTE Data Exchange Service

management:
info:
build:
enabled: true
java:
enabled: true
endpoint:
prometheus:
enabled: true
health:
show-details: always
roles: ADMIN
endpoints:
web:
base-path: /actuator
exposure:
include: "health,info"
prometheus:
metrics:
export:
enabled: true

spring:
application:
name: srte-data-service
Expand Down
Loading