traces and new metrics work

This commit is contained in:
2025-07-10 23:44:23 -06:00
parent 6f98001d8e
commit 9662b68b0d
10 changed files with 408 additions and 332 deletions

View File

@@ -1,4 +1,6 @@
services:
# Database
surreal:
image: surrealdb/surrealdb:latest-dev
ports:
@@ -15,6 +17,18 @@ services:
- root
- rocksdb:/mydata/database.db
# Tracing
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./tempo.yaml:/etc/tempo.yaml
- tempo_storage:/var/tempo
ports:
- 3200:3200 # self metrics for prometheus
- 4317:4317 # otlp grpc - (alloy)
# Log scraper
alloy:
image: grafana/alloy:latest
ports:
@@ -24,9 +38,13 @@ services:
- ./logs/:/tmp/alloy-logs
- ./alloy.conf:/etc/alloy/config.alloy
- alloy_storage:/var/lib/alloy
command: run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
command:
- run
- --server.http.listen-addr=0.0.0.0:12345
- --storage.path=/var/lib/alloy/data
- /etc/alloy/config.alloy
#logs
# Log storage / analysis
loki:
image: grafana/loki:latest
ports:
@@ -35,16 +53,20 @@ services:
volumes:
- ./loki.yaml:/etc/loki/local-config.yaml
# Metrics collector
# Metrics
prometheus:
image: prom/prometheus:latest
expose:
- 9090
ports:
- 9090:9090
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
# persist data
- prometheus_storage:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
# - prometheus_storage:/prometheus
command:
- --enable-feature=native-histograms
- --web.enable-remote-write-receiver
- --web.enable-lifecycle
- --config.file=/etc/prometheus/prometheus.yml
# Everything viewer
grafana:
@@ -66,3 +88,4 @@ volumes:
grafana_storage:
alloy_storage:
surrealdb_storage:
tempo_storage: