Comments (3)
This problem is more appropriate in the otel col contrib repo, However, I think you should read the fileexporter's
readme.md carefully first: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/fileexporter
The official opentelemetry-collector-contrib container does not have a writable filesystem by default since it's built on the scratch layer. As such, you will need to create a writable directory for the path, potentially by mounting writable volumes or creating a custom image.
from community.
as @JaredTan95 said, this is a good question for the collector community, #otel-collector channel on CNCF Slack might be a good place to ask this. If there is any docs related issue please update accordingly
from community.
myconfig.yaml
receivers:
otlp:
protocols:
grpc:
endpoint: [0.0.0.0:4317](http://0.0.0.0:4317/)
http:
endpoint: [0.0.0.0:4318](http://0.0.0.0:4318/)
processors:
batch:
exporters:
file:
path: ./logs/test.txt
extensions:
health_check:
pprof:
zpages:
service:
extensions: [health_check, pprof, zpages]
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [file]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [file]
logs:
receivers: [otlp]
processors: [batch]
exporters: [file]
Command Executed :sudo docker run -v ./myconfig.yaml:/etc/otelcol-contrib/config.yaml -v ./te./logs:/logs otel/opentelemetry-collector-contrib:0.97.0
Error: cannot start pipelines: open ./logs/test.txt: permission denied
2024/04/15 17:23:54 collector server run finished with error: cannot start pipelines: open ./logs/test.txt: permission denied
from community.
Related Issues (20)
- Verify opentelemetry.io with github.com HOT 3
- REQUEST: Create new team open-telemetry/semconv-security-approvers HOT 6
- REQUEST: New membership for michalpristas HOT 3
- REQUEST: New membership for @AlchemyDing HOT 3
- Generate Calendar entry and shared notes for Semantic Conventions: Tooling WG HOT 1
- New teams `docs-zh-approvers` and `docs-zh-maintainers` HOT 4
- Create calendar event for OTel Q&A on May 30th (OTel End User SIG) HOT 3
- REQUEST: Add users to group open-telemetry/sig-end-user-approvers HOT 3
- Sustainability SemConv SIG Calendar Invites and Meeting HOT 1
- REQUEST: Repository maintenance on open-telemetry/opentelemetry-operator HOT 4
- Add pull request CI step to validate tables are in sync with sigs.yml
- REQUEST: New membership for @mjwolf HOT 3
- Create calendar event for OTel Q&A on June 27th (OTel End User SIG) HOT 2
- Create calendar event for OTel in Practice on July 11th (OTel End User SIG) HOT 2
- REQUEST: Repository maintenance on opentelemetry-dotnet & opentelemetry-dotnet-contrib HOT 5
- REQUEST: New membership for @IliaBrahinets HOT 3
- Logs Data Model exclude resources field HOT 1
- REQUEST: New membership for @ankitpatel96 HOT 3
- How to add OpenTelemetry for .NET framework applications hosted in IIS?
- TC Review Request: Erlang/Elixir Metric API/SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.