Coder Social home page Coder Social logo

Comments (3)

JaredTan95 avatar JaredTan95 commented on June 12, 2024 2

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.

svrnm avatar svrnm commented on June 12, 2024

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.

SantoshAvaji avatar SantoshAvaji commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.