Skip to content

Commit

Permalink
Enable API on aggregator and provide tap/top instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Perkins <[email protected]>
  • Loading branch information
Luc Perkins committed Sep 2, 2021
1 parent 80f96a3 commit e64d402
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions aggregator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,30 @@ This starts up the full scenario in the background, which includes:
* 3 Vector agents emitting Syslog logs
* 3 [Fluent-Bit] agents emitting logs generated by the `random` source

## Aggregator output

You can see the aggregator output in real-time by running this command:

```shell
docker-compose logs --follow aggregator
```

You can also see the aggregator output using [vector tap]:

```shell
vector tap
```

## Aggregator metrics

You can see some realtime metrics for the aggregator using [vector top]:

```shell
vector top
```

[agent]: https://vector.dev/docs/setup/deployment/roles/#agent
[aggregator]: https://vector.dev/docs/setup/deployment/roles/#aggregator
[fluent-bit]: https://fluentbit.io
[vector tap]: https://vector.dev/docs/reference/cli/#tap
[vector top]: https://vector.dev/docs/reference/cli/#top
1 change: 1 addition & 0 deletions aggregator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
container_name: aggregator
image: timberio/vector:nightly-alpine
ports:
- 8686:8686
- 9000:9000
- 24224:24224
environment:
Expand Down
5 changes: 5 additions & 0 deletions aggregator/vector/aggregator/vector.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[api]
enabled = true
address = "0.0.0.0:8686"
playground = true

[sources.vector_agents]
type = "vector"
address = "0.0.0.0:9000"
Expand Down

0 comments on commit e64d402

Please sign in to comment.