File tree Expand file tree Collapse file tree 5 files changed +33
-9
lines changed
Expand file tree Collapse file tree 5 files changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,22 @@ global:
22 scrape_interval : 15s
33
44scrape_configs :
5- - job_name : ' prod'
5+ # Prod jobs
6+ - job_name : ' genai'
67 static_configs :
78 - targets : ['genai:8081']
8- labels :
9- app : " genai-server"
9+
10+ - job_name : ' server'
11+ static_configs :
12+ - targets : ['server:8082']
13+ metrics_path : /actuator/prometheus
1014
1115 # For dev only (when services are run manually)
12- - job_name : ' dev'
16+ - job_name : ' genai-dev'
17+ static_configs :
18+ - targets : ['host.docker.internal:8000']
19+
20+ - job_name : ' server-dev'
1321 static_configs :
14- - targets : ['host.docker.internal:8000'] # genai
15- labels :
16- app : " genai-server"
22+ - targets : ['host.docker.internal:8082']
23+ metrics_path : /actuator/prometheus
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ dependencies {
3333 implementation(" io.jsonwebtoken:jjwt-api:0.12.3" )
3434 runtimeOnly(" io.jsonwebtoken:jjwt-impl:0.12.3" )
3535 runtimeOnly(" io.jsonwebtoken:jjwt-jackson:0.12.3" )
36+
37+ // Prometheus dependencies
38+ implementation(" org.springframework.boot:spring-boot-starter-actuator" )
39+ implementation(" io.micrometer:micrometer-registry-prometheus" )
40+
3641
3742 testImplementation(" org.springframework.boot:spring-boot-starter-test" )
3843 testImplementation(" org.springframework.security:spring-security-test" )
Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ genai.service.url=http://localhost:8081
2727# Weaviate Configuration for local development
2828weaviate.host =localhost
2929weaviate.port =8083
30- weaviate.scheme =http
30+ weaviate.scheme =http
31+
32+ # Prometheus setup
33+ management.endpoints.web.exposure.include =prometheus
34+ management.endpoint.prometheus.enabled =true
Original file line number Diff line number Diff line change @@ -24,4 +24,8 @@ server.error.include-message=never
2424# Logging
2525logging.level.org.springframework.web =WARN
2626logging.level.org.hibernate =WARN
27- logging.level.de.tum.cit.aet.server =INFO
27+ logging.level.de.tum.cit.aet.server =INFO
28+
29+ # Prometheus setup
30+ management.endpoints.web.exposure.include =prometheus
31+ management.endpoint.prometheus.enabled =true
Original file line number Diff line number Diff line change @@ -28,3 +28,7 @@ jwt.refresh-expiration=604800000
2828
2929# Security Configuration
3030app.security.enabled =true
31+
32+ # Prometheus setup
33+ management.endpoints.web.exposure.include =prometheus
34+ management.endpoint.prometheus.enabled =true
You can’t perform that action at this time.
0 commit comments