Skip to content

Commit

Permalink
Bare bones of Temporal + metric setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
robholland committed Aug 7, 2024
0 parents commit 7d27768
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
victoria-metrics-data
43 changes: 43 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
services:
vm:
image: victoriametrics/victoria-metrics:v1.102.1
networks:
- demo-network
ports:
- "8428:8428"
command:
- -retentionPeriod=1d
- -promscrape.config=/etc/victoriametrics/scrape.yaml
volumes:
- ./scrape.yaml:/etc/victoriametrics/scrape.yaml
postgresql:
container_name: temporal-postgresql
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres:13
networks:
- demo-network
ports:
- 5432:5432
temporal:
depends_on:
- postgresql
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
- PROMETHEUS_ENDPOINT=0.0.0.0:9090
image: temporalio/auto-setup:1.24.1
networks:
- demo-network
ports:
- 7233:7233
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
networks:
demo-network:
driver: bridge
name: demo-network
Empty file added dynamicconfig/docker.yaml
Empty file.
12 changes: 12 additions & 0 deletions scrape.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
global:
scrape_interval: 1s

scrape_configs:
- job_name: temporal-server
static_configs:
- targets:
- temporal:9090/metrics
- job_name: game-workers
static_configs:
- targets:
- blue-1.local:9090/metrics

0 comments on commit 7d27768

Please sign in to comment.