Skip to content

Commit

Permalink
Add some docs to readme regarding file exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
hughesjj committed May 6, 2024
1 parent a2171b8 commit 3624d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/fileexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ As such, you will need to create a writable directory for the path. You could d

On Linux, and given a `otel-collector-config.yaml` with a `file` exporter whose path is prefixed with `/file-exporter`,
```bash
# linux needs +x to list a directory. You can also use a+.
# linux needs +x to list a directory. You can use a+ instead of o+ for the mode if you want to ensure your user and group has access.
mkdir --mode o+rwx file-exporter
# z is an selinux construct that is a no-op on other systems
# z is an SELinux construct that is ignored on other systems
docker run -v "./file-exporter:/file-exporter:rwz" -v "otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml" otel/opentelemetry-collector-contrib:latest
```
Note this same syntax for volumes will work with docker-compose.
Expand Down

0 comments on commit 3624d09

Please sign in to comment.