-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#219: Setup local telemetry stack with Jaeger, Grafana, VictoriaMetri…
…cs and OTEL Collector
- Loading branch information
1 parent
bc5d95f
commit 88492d3
Showing
3 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
version: "3.7" | ||
services: | ||
otel-collector: | ||
profiles: | ||
- telemetry | ||
image: otel/opentelemetry-collector-contrib-dev:latest | ||
command: ["--config=/etc/otel-col-config.yaml", "${OTELCOL_ARGS}"] | ||
volumes: | ||
- ./tools/otel-col-config.yaml:/etc/otel-col-config.yaml | ||
ports: | ||
- "1888:1888" # pprof extension | ||
- "8888" # Prometheus metrics exposed by the collector | ||
- "8889:8889" # Prometheus exporter metrics | ||
- "13133:13133" # health_check extension | ||
- "4317:4317" # OTLP gRPC receiver | ||
- "55679" # zpages extension | ||
depends_on: | ||
- jaeger-all-in-one | ||
|
||
jaeger-all-in-one: | ||
profiles: | ||
- telemetry | ||
image: jaegertracing/all-in-one:latest | ||
environment: | ||
- COLLECTOR_OTLP_ENABLED=true | ||
ports: | ||
- "16686:16686" | ||
- "14268" | ||
- "14250:14250" | ||
- "6831:6831" | ||
|
||
victoriametrics: | ||
profiles: | ||
- telemetry | ||
container_name: victoriametrics | ||
image: victoriametrics/victoria-metrics | ||
ports: | ||
- "8428:8428" | ||
- "8089:8089" | ||
- "8089:8089/udp" | ||
- "2003:2003" | ||
- "2003:2003/udp" | ||
- "4242:4242" | ||
command: | ||
- '--storageDataPath=/storage' | ||
- '--graphiteListenAddr=:2003' | ||
- '--opentsdbListenAddr=:4242' | ||
- '--httpListenAddr=:8428' | ||
- '--influxListenAddr=:8089' | ||
restart: always | ||
|
||
grafana: | ||
profiles: | ||
- telemetry | ||
image: grafana/grafana:latest | ||
environment: | ||
- GF_AUTH_ANONYMOUS_ENABLED=true | ||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin | ||
- GF_AUTH_DISABLE_LOGIN_FORM=true | ||
ports: | ||
- "3000:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
|
||
exporters: | ||
prometheusremotewrite: | ||
endpoint: "http://victoriametrics:8428/api/v1/write" | ||
|
||
otlp: | ||
endpoint: jaeger-all-in-one:4317 | ||
tls: | ||
insecure: true | ||
|
||
processors: | ||
batch: | ||
|
||
extensions: | ||
health_check: | ||
pprof: | ||
endpoint: :1888 | ||
zpages: | ||
endpoint: :55679 | ||
|
||
service: | ||
extensions: [ pprof, zpages, health_check ] | ||
pipelines: | ||
traces: | ||
receivers: [ otlp ] | ||
processors: [ batch ] | ||
exporters: [ otlp ] | ||
metrics: | ||
receivers: [ otlp ] | ||
processors: [ batch ] | ||
exporters: [ prometheusremotewrite ] |