open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.02k stars 2.33k forks source link

Skywalking Receiver/Exporter How to use it ? #9338

Closed tonycody closed 11 months ago

tonycody commented 2 years ago

https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/skywalkingreceiver https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/skywalkingexporter

I've been trying for a long time, but I can't figure out how to use it? Skywalking UI never had data.

I'm using a mirror image: otel/opentelemetry-collector-contrib-dev:latest

receivers:
  otlp:
    protocols:
      grpc:
  prometheus:
    config:
      scrape_configs:
        - job_name: 'vm-monitoring' # make sure to use this in the vm.yaml to filter only VM metrics
          scrape_interval: 10s
          static_configs:
            - targets: [ 'node-exporter:9100' ]
  skywalking:
    protocols:
      grpc:
        endpoint: "oap:11800"

exporters:
  opencensus:
    endpoint: "oap:11800" # The OAP Server address
    tls:
      insecure: true
  skywalking:
    endpoint: "oap:11800"
    tls:
      insecure: true
  logging:
    logLevel: info
processors:
  batch:

extensions:
  health_check:
  pprof:
  zpages:

service:
  extensions: [ pprof, zpages, health_check ]
  pipelines:
    traces:
      receivers: [ otlp, skywalking ]
#      processors: [ batch ]
      exporters: [ logging,opencensus ]
    logs:
      receivers: [ otlp ]
#      processors: [ batch ]
      exporters: [ skywalking ,logging ]
    metrics:
      receivers: [ otlp ]
#      processors: [ batch ]
      exporters: [ skywalking,opencensus,logging ]
codeboten commented 2 years ago

@JaredTan95 @liqiangz

liqiangz commented 2 years ago

@tonycody Now skywalking exporter does not support trace data, only for metric and log.

JaredTan95 commented 2 years ago

@tonycody Now skywalking exporter does not support trace data, only for metric and log.

@tonycody yes, from your description, You can wait to skywalking/exporter support trcing data.

github-actions[bot] commented 1 year ago

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.

leopardrota commented 1 year ago

@tonycody Now skywalking exporter does not support trace data, only for metric and log.

@liqiangz @JaredTan95 I want to manually provide metrics data to SkyWalking via OpenTelemetry in a java project. Can you give me a demo implementing this, or a guidance describing the steps, or something like that? I will very appreciate if you know and tell me.

wu-sheng commented 1 year ago

@tonycody yes, from your description, You can wait to skywalking/exporter support trcing data.

There would not be a trace exporter in theory. SkyWalking's trace context is a superset of the traditional otel trace format. They are designed for different purposes.

@codeboten Feel free to close. This had been discussed for a long time in SkyWalking channel.

JaredTan95 commented 1 year ago

@tonycody yes, from your description, You can wait to skywalking/exporter support trcing data.

There would not be a trace exporter in theory. SkyWalking's trace context is a superset of the traditional otel trace format. They are designed for different purposes.

@codeboten Feel free to close. This had been discussed for a long time in SkyWalking channel.

got it.

wu-sheng commented 1 year ago

We had Zipkin receiver natively for months, https://skywalking.apache.org/docs/main/next/en/setup/backend/zipkin-trace/ If this is possible from a tech perspective to transfer, we had done that before.

This is an upstream native repo about this, https://github.com/SkyAPM/zipkin-skywalking, Adrian and I have listed the possibilities. Sadly, with all evaluations, it is not worth to do.

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 11 months ago

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