open-telemetry / opentelemetry-collector-contrib

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

Line Protocol generated by influxDB exporter seems to be incorrect #33444

Open yasha145 opened 5 months ago

yasha145 commented 5 months ago

Component(s)

exporter/influxdb

What happened?

Description

The line protocol generated by influxDB exporter has following issues: String values are not enclosed by double quotes because all the data is been mapped to tags set instead of to fields set.

Because of above issue, the influxDB UI (hosted in localhost 8086) is not displaying any data as UI needs data to be in fields set while data and measurements is been displayed via influxQL.

Expected Result

SP-Srvrmon File\ Start\ Time="20240115T1958-00000121-20min",Thread\ No.=155909,epochthreadEnd=1705348627,epochthreadStart=1705347444,otel.library.name="SP-Srvrmon",psSessionThread.DB2\ Fetch\ Prep.MaxTime=0.004,psSessionThread.DB2\ Fetch\ Prep.MinTime=0,psSessionThread.DB2\ Fetch\ Prep.totTime=0.006,count=0

Actual Result

SP-Srvrmon,File\ Start\ Time=20240115T1958-00000121-20min,Thread\ No.=155909,epochthreadEnd=1705348627,epochthreadStart=1705347444,otel.library.name=SP-Srvrmon,psSessionThread.DB2\ Fetch\ Prep.MaxTime=0.004,psSessionThread.DB2\ Fetch\ Prep.MinTime=0,psSessionThread.DB2\ Fetch\ Prep.totTime=0.006 count=0 0

Collector version

v0.95.0

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

github-actions[bot] commented 5 months ago

Pinging code owners:

github-actions[bot] commented 3 months 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.

Pinging code owners:

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

atoulme commented 2 months ago

@jacobmarble please review as code owner