Skip to content

Commit ce69a77

Browse files
author
Jawher Kallel
committed
init implement k8s config and monitoring
1 parent 297e775 commit ce69a77

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

infra/docker-compose.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@ services:
1414
depends_on:
1515
- redis
1616

17-
#admin:
18-
# build: ./admin
19-
# ports: ["3010:3010"]
20-
# depends_on:
21-
# - redis
17+
prometheus:
18+
image: prom/prometheus
19+
volumes:
20+
- ../../ops/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
21+
ports: ["9090:9090"]
22+
23+
grafana:
24+
image: grafana/grafana:latest
25+
ports: ["3001:3000"]
26+
volumes:
27+
- ../../ops/grafana:/var/lib/grafana
28+
29+
admin:
30+
build: ../admin
31+
ports: ["3010:3010"]
32+
depends_on:
33+
- redis

infra/k8s/config.yaml

Whitespace-only changes.

ops/prometheus/prometheus.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
scrape_configs:
2+
- job_name: 'gateway'
3+
static_configs:
4+
- targets: ['gateway:3020']
5+
6+
- job_name: 'openai-adapter'
7+
static_configs:
8+
- targets: ['adapter-openai:3030']
9+
10+
- job_name: 'hf-adapter'
11+
static_configs:
12+
- targets: ['adapter-hf:3040']

0 commit comments

Comments
 (0)