Skip to content

Commit

Permalink
appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Sep 16, 2022
1 parent e1a5968 commit b5501ad
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 47 deletions.
34 changes: 17 additions & 17 deletions tracing/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: "3"

services:
Expand All @@ -18,37 +19,36 @@ services:
- "SPICEDB_METRICS_ENABLED=true"
- "SPICEDB_OTEL_PROVIDER=otlpgrpc"
- "OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317"

depends_on:
- otel-collector
- "otel-collector"
otel-collector:
image: "otel/opentelemetry-collector:0.60.0"
command: "--config /etc/otel-config.yaml"
volumes:
- ./otel-config.yaml:/etc/otel-config.yaml
- "./otel-config.yaml:/etc/otel-config.yaml"
ports:
- "4317:4317" # OTLP gRPC
- "8888" # Prometheus metrics for collector
- "4317:4317" # OTLP gRPC
- "8888" # Prometheus metrics for collector
depends_on:
- tempo
- "tempo"
tempo:
image: grafana/tempo:1.5.0
image: "grafana/tempo:1.5.0"
command: "-search.enabled=true -config.file=/etc/tempo.yaml"
volumes:
- ./tempo.yaml:/etc/tempo.yaml
restart: unless-stopped
- "./tempo.yaml:/etc/tempo.yaml"
restart: "unless-stopped"
ports:
- "4317" # OTLP gRPC
- "3100" # tempo
- "4317" # OTLP gRPC
- "3100" # tempo
grafana:
image: grafana/grafana:9.1.5-ubuntu
image: "grafana/grafana:9.1.5-ubuntu"
volumes:
- ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- "./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
- "GF_AUTH_DISABLE_LOGIN_FORM=true"
ports:
- "3000:3000"
depends_on:
- tempo
- "tempo"
23 changes: 12 additions & 11 deletions tracing/grafana-datasources.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
apiVersion: 1

datasources:
- name: 'Tempo'
type: tempo
access: proxy
orgId: 1
url: http://tempo:3100
basicAuth: false
isDefault: true
version: 1
editable: true
apiVersion: 1
uid: tempo
- name: "Tempo"
type: "tempo"
access: "proxy"
orgId: 1
url: "http://tempo:3100"
basicAuth: false
isDefault: true
version: 1
editable: true
apiVersion: 1
uid: "tempo"
15 changes: 8 additions & 7 deletions tracing/otel-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
---
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"

processors:
batch:
batch:

exporters:
logging:
loglevel: debug
loglevel: "debug"
otlp:
endpoint: tempo:4317
compression: none
endpoint: "tempo:4317"
compression: "none"
tls:
insecure: true

service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
receivers: ["otlp"]
processors: ["batch"]
exporters: ["otlp"]
telemetry:
logs:
level: "info"
Expand Down
25 changes: 13 additions & 12 deletions tracing/tempo.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
auth_enabled: false

server:
Expand All @@ -11,29 +12,29 @@ distributor:
grpc:

ingester:
trace_idle_period: 10s
trace_idle_period: "10s"
max_block_bytes: 100_000
max_block_duration: 1m
max_block_duration: "1m"

compactor:
compaction:
compaction_window: 1h
max_block_bytes: 100_000_000
block_retention: 1h
compacted_block_retention: 10m
compaction_window: "1h"
max_block_bytes: 100_000_000
block_retention: "1h"
compacted_block_retention: "10m"

storage:
trace:
backend: local
backend: "local"
block:
bloom_filter_false_positive: .05
index_downsample_bytes: 1000
encoding: zstd
encoding: "zstd"
wal:
path: /tmp/tempo/wal
encoding: snappy
path: "/tmp/tempo/wal"
encoding: "snappy"
local:
path: /tmp/tempo/blocks
path: "/tmp/tempo/blocks"
pool:
max_workers: 100
queue_depth: 10000
queue_depth: 10000

0 comments on commit b5501ad

Please sign in to comment.