Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivcodes committed Jan 20, 2025
1 parent e4c0138 commit 4d2afe1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 35 deletions.
1 change: 1 addition & 0 deletions apps/observe/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ services:
- GF_DATABASE_NAME=grafana
- GF_DATABASE_USER=grafana
- GF_DATABASE_PASSWORD=your_secure_db_password
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor traceQLStreaming metricsSummary
networks:
- observe-network
depends_on:
Expand Down
6 changes: 2 additions & 4 deletions apps/observe/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_interval: 5s
evaluation_interval: 5s

scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]

- job_name: "otel-collector"
static_configs:
- targets: ["otel-collector:8889"]

- job_name: "tempo-metrics"
static_configs:
- targets: ["tempo:3200"]
49 changes: 18 additions & 31 deletions apps/observe/tempo/tempo-config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
stream_over_http_enabled: true
server:
http_listen_port: 3200
log_level: info

distributor:
receivers:
Expand All @@ -9,11 +11,21 @@ distributor:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
jaeger:
protocols:
thrift_http:
endpoint: "0.0.0.0:14268"
zipkin:

compactor:
compaction:
block_retention: 48h

metrics_generator:
registry:
external_labels:
source: tempo

storage:
trace:
backend: local
local:
path: /var/tempo/traces

ingester:
max_block_duration: 5m
Expand All @@ -25,32 +37,7 @@ ingester:
replication_factor: 1
final_sleep: 0s

storage:
trace:
backend: local
local:
path: /var/tempo/traces

compactor:
compaction:
block_retention: 48h

metrics_generator:
registry:
external_labels:
source: tempo
storage:
path: /var/tempo/generator/wal
remote_write:
- url: http://prometheus:9090/api/v1/write
send_exemplars: true
traces_storage:
path: /var/tempo/generator/traces

overrides:
metrics_generator_processors: [service-graphs, span-metrics, local-blocks]
max_global_traces_per_user: 10000000
max_traces_per_user: 10000000
defaults:
metrics_generator:
processors: [service-graphs, span-metrics, local-blocks] # enables metrics generator
generate_native_histograms: both

0 comments on commit 4d2afe1

Please sign in to comment.