Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need documentation for a working setup for fileexporter #20279

Closed
Juliaj opened this issue Mar 23, 2023 · 5 comments
Closed

Need documentation for a working setup for fileexporter #20279

Juliaj opened this issue Mar 23, 2023 · 5 comments
Labels
closed as inactive documentation Improvements or additions to documentation exporter/file Stale

Comments

@Juliaj
Copy link
Contributor

Juliaj commented Mar 23, 2023

Component(s)

No response

Describe the issue you're reporting

fileexporter is a good choice for debugging, especially with intermittent metrics errors. However, there is no instruction to help set it up. The readme states,

The official opentelemetry-collector-contrib container does not have a writable filesystem by default since it's built using the special from scratch layer. As such, you will need to create a writable directory for the path, potentially by creating writable volumes or creating a custom image.

If users want to explore the path of creating a writable directory for the path, there are a few obstacles on the way.

  • No interactive access point to OpenTelemetryCollector pod to discover a proper value for hostPath , i.e. kubectl exec -it doesn't work.
  • initContainers is not allowed thus creating custom path is impossible.

Experts, please help document the setup to promote the usage of this good tool.

@Juliaj Juliaj added the needs triage New item requiring triage label Mar 23, 2023
@atoulme atoulme added exporter/file and removed needs triage New item requiring triage labels Mar 23, 2023
@github-actions
Copy link
Contributor

Pinging code owners for exporter/file: @atingchen. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme atoulme added the documentation Improvements or additions to documentation label Mar 23, 2023
@atingchen
Copy link
Contributor

I'll try to add this documentation and would love to see you improve it.

@atingchen
Copy link
Contributor

@Juliaj I'm sorry for replying to you so late.

We will follow the documentation to first install the operator in an existing cluster and then create an OpenTelemetry Collector (otelcol) instance, like:

kubectl apply -f - <<EOF
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: fileexporter
spec:
  config: |
    receivers:
      otlp:
        protocols:
          grpc:
          http:
    processors:

    exporters:
      logging:
      file:
        path: /data/metrics.json

    service:
      pipelines:
        metrics:
          receivers: [otlp]
          processors: []
          exporters: [logging,file]
  volumes:
    - name: file
      emptyDir: {}
  volumeMounts: 
    - name: file
      mountPath: /data
EOF

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jun 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed as inactive documentation Improvements or additions to documentation exporter/file Stale
Projects
None yet
Development

No branches or pull requests

3 participants