Skip to content

Commit

Permalink
Add cloud logging dependency to enable push logs to GCP.
Browse files Browse the repository at this point in the history
Add micrometrics prometheus to enable scrap metrics from application.
  • Loading branch information
ekharkunov committed Oct 14, 2024
1 parent e328286 commit 272439c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ dependencies {
}

implementation('com.google.cloud:spring-cloud-gcp-starter-storage')
implementation("com.google.cloud:spring-cloud-gcp-starter-logging")
implementation('com.google.cloud:google-cloud-compute:1.59.0')
implementation('com.google.guava:guava:33.2.1-jre')
implementation('com.samskivert:jmustache:1.16')
Expand All @@ -74,6 +75,7 @@ dependencies {
implementation('io.micrometer:micrometer-tracing-bridge-otel:1.3.4')
runtimeOnly('net.logstash.logback:logstash-logback-encoder:8.0')
runtimeOnly('io.micrometer:micrometer-registry-influx:1.13.2')
runtimeOnly('io.micrometer:micrometer-registry-prometheus:1.13.2')

testImplementation('junit:junit:4.13.2')
testImplementation('org.springframework:spring-test')
Expand Down
3 changes: 2 additions & 1 deletion server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ management:

spring.cloud.gcp:
core.enabled: false
storage.enabled: false
storage.enabled: false
logging.enabled: false

0 comments on commit 272439c

Please sign in to comment.