-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-compose: add otel-collector override, dev override (#838)
- Loading branch information
Showing
7 changed files
with
146 additions
and
29 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ nginx/sourcegraph.key | |
|
||
.vagrant | ||
*.log | ||
.env | ||
/.env | ||
|
||
/right.dhall |
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,13 @@ | ||
# Development overlay | ||
|
||
For use developing Sourcegraph's docker-compose deployment only. | ||
For deployments, refer to the official [Sourcegraph with Docker Compose](https://docs.sourcegraph.com/admin/install/docker-compose) documentation. | ||
|
||
Example usage: | ||
|
||
```sh | ||
docker-compose \ | ||
-f docker-compose/docker-compose.yaml \ | ||
-f docker-compose/otel/docker-compose.yaml \ | ||
-f docker-compose/dev/docker-compose.yaml up | ||
``` |
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,12 @@ | ||
# Development overlay - has reduced resource requirements, and exposes the deployment on | ||
# 127.0.0.1:8080 | ||
|
||
version: '2.4' | ||
services: | ||
zoekt-webserver-0: | ||
cpus: 1 | ||
zoekt-indexserver-0: | ||
cpus: 1 | ||
caddy: | ||
ports: | ||
- '0.0.0.0:8080:80' |
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,67 @@ | ||
version: '2.4' | ||
services: | ||
# Description: Ingests OpenTelemetry data. | ||
# | ||
# Disk: 128GB / non-persistent SSD | ||
# Ports exposed to other Sourcegraph services: 4317 (receiver), 55679 (zpages) | ||
# Ports exposed to the public internet: none | ||
otel-collector: | ||
container_name: otel-collector | ||
image: otel/opentelemetry-collector:0.54.0 | ||
volumes: | ||
- '../otel-collector/config.yaml:/etc/otel-collector/config.yaml' | ||
cpus: 0.5 | ||
mem_limit: '512m' | ||
networks: | ||
- sourcegraph | ||
restart: always | ||
environment: | ||
- JAEGER_AGENT_HOST=jaeger | ||
command: ['--config', '/etc/otel-collector/config.yaml'] | ||
|
||
# Apply exporter configuration - to learn more, see: | ||
# https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options | ||
|
||
sourcegraph-frontend-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
sourcegraph-frontend-internal: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
gitserver-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
zoekt-indexserver-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
zoekt-webserver-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
searcher-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
github-proxy: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
precise-code-intel-worker: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
repo-updater: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
worker: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 | ||
|
||
symbols-0: | ||
environment: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317 |
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,24 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
|
||
exporters: | ||
jaeger: | ||
# Default Jaeger GRPC server | ||
endpoint: "$JAEGER_AGENT_HOST:14250" | ||
tls: | ||
insecure: true | ||
|
||
extensions: | ||
health_check: | ||
port: 13133 | ||
zpages: | ||
endpoint: "localhost:55679" | ||
|
||
service: | ||
extensions: [health_check,zpages] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
exporters: [jaeger] |