Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Add configuration to run against local mock
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksander Mistewicz <[email protected]>
  • Loading branch information
AwesomePatrol authored and lambdanis committed Jun 27, 2023
1 parent 3dc9e3e commit 34b5ba9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DEV_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ This script will run `mock-hubble` with a set of sample flows from `testdata` di
as 10x the rate stored in the sample file. The sample file simply contains output of `hubble observe -o json -f`
and can be updated easily.

To connect to the mock, use `with-mock.yaml` configuration:

```
./dev-scripts/run-otelcol.sh --config dev-scripts/with-mock.yaml
```

## Running `hubble-otel` (standalone)

To start Hubble adaptor in standalone mode against a local collector, run:
Expand Down
24 changes: 24 additions & 0 deletions dev-scripts/with-mock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
receivers:
hubble:
endpoint: http://localhost:4245 # unix:///var/run/cilium/hubble.sock
buffer_size: 10
include_flow_types:
traces: ["trace"]
tls:
insecure: true

processors:
batch:
timeout: 30s
send_batch_size: 20

exporters:
logging:
loglevel: debug

service:
pipelines:
traces:
receivers: [hubble]
processors: [batch]
exporters: [logging]

0 comments on commit 34b5ba9

Please sign in to comment.