Skip to content

Commit afc3d37

Browse files
committed
prometheus: config unchanged, ports now controlled via compose/env
1 parent 86dd3ac commit afc3d37

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎monitoring/prometheus/prometheus.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global:
55
alerting:
66
alertmanagers:
77
- static_configs:
8-
- targets: ['alertmanager:${ALERTMANAGER_INTERNAL_PORT:-9093}']
8+
- targets: ['alertmanager:9093']
99

1010
rule_files:
1111
- "alert.rules.yml"
@@ -16,9 +16,9 @@ scrape_configs:
1616
metrics_path: /actuator/prometheus
1717
static_configs:
1818
- targets:
19-
- skillforge-gateway:${SERVER_PORT_GATEWAY:-8081}
20-
- skillforge-user-service:${SERVER_PORT_USER:-8082}
21-
- skillforge-course-service:${SERVER_PORT_COURSE:-8083}
19+
- skillforge-gateway:8081
20+
- skillforge-user-service:8082
21+
- skillforge-course-service:8083
2222

2323
# ----- GenAI FastAPI -----
2424
- job_name: genai
@@ -29,7 +29,7 @@ scrape_configs:
2929
regex: "(.*)"
3030
replacement: "$1"
3131
static_configs:
32-
- targets: [ 'skillforge-genai:${GENAI_PORT:-8888}' ]
32+
- targets: [ 'skillforge-genai:8888' ]
3333

3434
# ----- Traefik Proxy -----
3535
- job_name: traefik
@@ -41,7 +41,7 @@ scrape_configs:
4141
- target_label: "service"
4242
replacement: "traefik"
4343
static_configs:
44-
- targets: [ 'traefik:${TRAEFIK_INTERNAL_PORT:-8085}' ]
44+
- targets: [ 'traefik:8085' ]
4545

4646
# ----- Database exporters -----
4747
- job_name: mongo_exporter
@@ -50,10 +50,10 @@ scrape_configs:
5050
- target_label: "job"
5151
replacement: "mongodb-exporter"
5252
static_configs:
53-
- targets: [ 'mongo-exporter:${MONGO_EXPORTER_INTERNAL_PORT:-9216}' ]
53+
- targets: [ 'mongo-exporter:9216' ]
5454

5555
# ----- Weaviate vector DB -----
5656
- job_name: weaviate
5757
metrics_path: /metrics
5858
static_configs:
59-
- targets: [ 'skillforge-weaviate:${WEAVIATE_INTERNAL_PORT:-2112}' ]
59+
- targets: [ 'skillforge-weaviate:2112' ]

0 commit comments

Comments
 (0)