Skip to content

Commit df9eea8

Browse files
committed
feat: influxdb docker docs
1 parent 500204e commit df9eea8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ $ docker exec -it gsw-service sh
4545

4646
All binaries are in PATH as the names of their folders in `cmd/`.
4747

48+
### Exporting telemetry from docker-compose InfluxDB
49+
50+
You can access the InfluxDB CLI using `docker compose exec -it influxdb influx`.
51+
For example, to export all receiver telemetry as a CSV, run:
52+
```shell
53+
$ docker compose exec influxdb influx \
54+
-database "udp" \
55+
-format csv \
56+
-execute "SELECT * FROM receiver"
57+
```
58+
4859
## Unit Tests
4960
There are several unit tests that can be run. You can do a `go test ./...` from the root project directory to execute all tests. It is also recommended to run with the -cover
5061
flag to get coverage statements.

0 commit comments

Comments
 (0)