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

Add configuration to run against local mock #96

Merged
Merged
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
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]
Loading