-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from krzko/docs-update-external-network
docs: refactor docs
- Loading branch information
Showing
4 changed files
with
124 additions
and
70 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
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,15 @@ | ||
version: '2' | ||
|
||
networks: | ||
o11y: | ||
name: o11y | ||
driver: bridge | ||
external: true | ||
|
||
services: | ||
curl: | ||
image: curlimages/curl:latest | ||
networks: | ||
- o11y | ||
# Generates, HTTP/1.1 405 Method Not Allowed | ||
command: "-v otel-collector:4318/v1/traces" |
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,78 @@ | ||
# External Network | ||
|
||
In certain scenarios, users may need to integrate their own `docker-compose` configurations with `run-o11y-run`. To facilitate this, we provide support for a multi docker-compose setup. | ||
|
||
To utilise this feature, simply run `run-o11y-run` with the `--external-network` flag. This allows you to seamlessly integrate your existing `docker-compose` configurations with `run-o11y-run`, enabling you to leverage the power of both environments in a unified manner. | ||
|
||
Here's an example of how you can set up your `docker-compose` configurations to work with `run-o11y-run`: | ||
|
||
1. To start `run-o11y-run` with an external bridged `o11y` network, simply run the following command: | ||
|
||
```sh | ||
run-o11y-run start --external-network | ||
``` | ||
|
||
This command initiates `run-o11y-run` and enables seamless integration with your existing infrastructure through the `o11y` network. By using the `--external-network` flag, you establish a bridge between `run-o11y-run` and your custom `docker-compose` configurations. | ||
|
||
2. Modify your `docker-compose.yaml` file to include a network definition for the o11y network: | ||
|
||
```yaml | ||
networks: | ||
o11y: | ||
name: o11y | ||
driver: bridge | ||
external: true | ||
``` | ||
3. Update the services in your `docker-compose.yaml` file to use the `o11y` network: | ||
|
||
```yaml | ||
services: | ||
foo: | ||
image: ... | ||
networks: | ||
- o11y | ||
environments: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT: otel-collector:431... | ||
bar: | ||
image: ... | ||
networks: | ||
- o11y | ||
environemnts: | ||
- OTEL_EXPORTER_OTLP_ENDPOINT: otel-collector:431... | ||
``` | ||
|
||
By connecting your customer-managed `docker-compose` setup with `run-o11y-run` assets through the `o11y` network, you establish communication between your applications and the observability components provided by `run-o11y-run`. | ||
|
||
## Network flow | ||
|
||
Here's a visual representation of the network flow: | ||
|
||
```mermaid | ||
flowchart TD | ||
subgraph run-o11y-run["run-o11y-run docker-compose"] | ||
direction LR | ||
collector | ||
minio --- loki | ||
collector --- loki | ||
collector --- prometheus | ||
collector --- zipkin | ||
end | ||
subgraph application["application docker-compose"] | ||
direction LR | ||
app1[app 1] | ||
app2[app 2] | ||
app1 --"default network"---app2 | ||
end | ||
application---collector | ||
``` | ||
|
||
This diagram illustrates how your application services (`app1` and `app2`) can communicate with the observability components provided by `run-o11y-run` through the `o11y` network. | ||
|
||
You can refer to the example file provided [here](docker-compose.yaml). |
This file was deleted.
Oops, something went wrong.