#general

OTLP Exporter vs HttpClient for Service Creation in Signoz Cloud

TLDR abhishek had a question about using OTLP exporter or httpclient for creating a service in Signoz cloud. Nocnica confirmed the use of OTLP exporter and provided a detailed config example.

Powered by Struct AI
7
1mo
Solved
Join the chat
Oct 23, 2023 (1 month ago)
abhishek
Photo of md5-064cf4bb2d61ae82200e490ce499aaf4
abhishek
06:42 PM
Just a generic question, do we use OTLP exporter or httpclient for creating a service in signoz cloud?
Oct 24, 2023 (1 month ago)
Nocnica
Photo of md5-7d3e7e5883af6e145e90d5d5a7a25acf
Nocnica
04:58 PM
pretty sure you can do this just with the OTLP exporter. Good news I'm working on a demo of this today so I'll get you an answer in a little while.
Oct 25, 2023 (1 month ago)
abhishek
Photo of md5-064cf4bb2d61ae82200e490ce499aaf4
abhishek
08:59 AM
Hi Nocnica,
thank you so much for the response
09:00
abhishek
09:00 AM
I was trying to export the activity traces to signoz cloud
09:01
abhishek
09:01 AM
so far I can see them on console, I do specify the endpoint and accesstoken in header for OLTP exporter. But dont see any services being created on signoz cloud. Any inputs on this issue?
Nocnica
Photo of md5-7d3e7e5883af6e145e90d5d5a7a25acf
Nocnica
02:41 PM
it's a pretty classic disconnect, I'm going to attach my stripped down Collector config:

receivers:
  otlp:
    protocols:
      grpc:
      http:

processors:
  batch:

exporters:
  otlp:
    endpoint: "ingest.us.signoz.cloud:443"
    tls:
      insecure: false
    headers:
      "signoz-access-token": "[ingest key]"

extensions:
  health_check:
  pprof:
  zpages:

service:
  extensions: [health_check, pprof, zpages]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]
    logs:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]
02:44
Nocnica
02:44 PM
so yeah you can use the OTLP exporter to send data into SigNoz cloud