-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
influxdb receiver dropping metrics contain 'count' #30433
Comments
Pinging code owners for receiver/influxdb: @jacobmarble. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @fiona-huang-tyro, sorry for the delayed response. It looks like the error is being logged in a dependency when the receiver adds a data point. From the location of the log message, it appears to be unrelated to the The log message shows that the metric that the collector is receiving includes an attribute key |
hey @crobert-1 - will follow up on this one with you (same team). The behaviour we are seeing is that using certain words in the field for the metrics causes those metrics to not be sent. The clearest example I can provide is as follows: I setup the otel-config exactly as @fiona-huang-tyro has done above:
If I send the following metric, it works as expected:
as I can see in the detailed logs from the
but, if I change the metric to have a
similarily for setting a
Finally, if we have either of these 2
What we are trying to understand is:
Will try and dig into what is going on under the covers but any help appreciated |
Hi @oldNoakes, thanks for posting the config and simple repro, it was super helpful! I was able to reproduce. For context, the receiver uses an InfluxDB package to automatically detect the data schema it receives (source). For the data point you're sending via curl that works as expected (no However, when including a field with the name If you're intentionally sending histograms, please update the type of the values being sent with these keys to be what's expected. Otherwise, please rename the field so it's not automatically detected as a histogram. Summary |
@crobert-1 - awesome explanation - thank you so mouch for that - we are actively attempting to move internal teams off of the legacy custom solution that has this issue and over to the open-telemetry instrumentation libraries. I can use this as another stick to get them moving. |
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 Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
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 Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Describe the bug
We have found out if influxdb receiver receives metrics contain 'count' it will ignore all the metrics and drop everything. There is no clear debug log showing we used
count
in the metrics and results in failure, instead its only showingskipping unrecognized histogram field
. We can not find any documentation around the keywords used by influxdb receiver.It will be good
cpu_load_short_value
metric and dropcpu_load_short_count
Steps to reproduce
Send an influxdb metrcs to 8086 port
curl -i -XPOST 'http://localhost:8086/write' --data-binary --data-binary 'cpu_load_short,host=ps15 value=10i,count=5i 1704933600251384987'
What did you expect to see?
What did you see instead?
2024-01-11T11:45:30.047+1100 debug [email protected]/logger.go:22 skipping unrecognized histogram field {"kind": "receiver", "name": "influxdb", "data_type": "metrics", "field": "value", "value": 10}
What version did you use?
Version: otel/opentelemetry-collector-contrib:0.89.0
What config did you use?
Otel Config
The text was updated successfully, but these errors were encountered: