Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate local IOx dev copy #260

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions demo/IOX.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Local Dev

To get this to work w/ a local copy of IOx:

Terminal 1:

```console
$ docker-compose up
```

Terminal 2:

```console
$ # go to iox checkout
$ cd my/iox/checkout

$ # clean state
$ rm -rf ~/.influxdb_iox

$ # start IOx
$ # need to bind to all interfaces for docker/podman
$ cargo run -- run all-in-one -vv --catalog-dsn=memory --router-http-bind=0.0.0.0:8080 --querier-grpc-bind=0.0.0.0:8082
```

Now visit the test app and generate some traces:

<http://localhost:8090/>

Then open the Jaeger UI:

<http://localhost:16686/>

**NOTE: It may take a few minutes for the Jaeger UI to show the traces. This is currently a caching issue in IOx.**
23 changes: 17 additions & 6 deletions demo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
ADMIN_HTTP_HOST_PORT: :16687
QUERY_UI_CONFIG: /jaeger-ui-config.json
volumes:
- ./demo/jaeger-ui-config.json:/jaeger-ui-config.json:ro
- ./jaeger-ui-config.json:/jaeger-ui-config.json:ro

jaeger-influxdb:
image: jacobmarble/jaeger-influxdb:0.5.2
Expand All @@ -26,19 +26,20 @@ services:
LISTEN_ADDR: :17271
INFLUXDB_TIMEOUT: 30s
# required: hostname or hostname:port
INFLUXDB_ADDR:
INFLUXDB_ADDR: host.containers.internal:8082
# required: bucket name
INFLUXDB_BUCKET: otel
INFLUXDB_BUCKET: otel_otel
# optional: bucket name for archived traces
INFLUXDB_BUCKET_ARCHIVE:
# required
INFLUXDB_TOKEN:
INFLUXDB_TOKEN: xxx
INFLUXDB_TLS_DISABLE: "true"

hotrod:
image: jaegertracing/example-hotrod:1.41
stop_grace_period: 1s
ports:
- "8080:8080" # web UI
- "8090:8080" # web UI
depends_on:
- otelcol-influxdb
environment:
Expand All @@ -50,4 +51,14 @@ services:
command: [ "--config", "/config.yml" ]
stop_grace_period: 10s
volumes:
- ./demo/otelcol-config.yml:/config.yml:ro
- ./otelcol-config.yml:/config.yml:ro

# if you need to debug network stuff:
# debug:
# image: nixery.dev/shell/findutils/gnugrep/gnutar/hexdump/less/mount/procps/curl/grpcurl/binutils/gdb/lldb/strace/rustc/linuxpackages.perf/perf-tools/gzip/zstd/tcpdump/netcat-openbsd
# # network_mode: "slirp4netns:allow_host_loopback=true"
# command:
# - /bin/bash
# - -c
# - --
# - while true; do sleep 30; done;
5 changes: 3 additions & 2 deletions demo/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ receivers:

exporters:
influxdb:
endpoint:
endpoint: http://host.containers.internal:8080
bucket: otel
token:
org: otel
token: xxx
metrics_schema: otel-v1

connectors:
Expand Down