-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Ingestion of metrics or logs very slow (and high CPU usage on collector) #33427
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@rpasche I am not sure if component "cmd/telemetrygen" and the code owners can help here. I i understand it correctly you are complaining about high cpu on the collector side for log and metrics and not at the load generator "cmd/telemetrygen". |
Hi @cforce , I activated the I think I know notice, what is causing this. In |
This is a poor adjustment of the code, but it - basically - works to now also send
After building, running
looks like this Receiver + Processor Exporter In that 5 minutes, that one worker sent
|
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. |
@rpasche Would be great if you improve your code and upstream it as a PR finally. |
Component(s)
cmd/telemetrygen
Describe the issue you're reporting
Hi,
I am running the otel collector-contrib version
0.100.0
with this configurationI'm running this collector in a k8s POD (one container only) and the collector has
2 CPU
and4 GB memory
attached.When running the
telemetry-gen
command to send 1000traces
, this finishes within 1 second.If I run - basically - the same command to send either 1000
logs
ormetrics
, this takes ~ 2 - 3minutes
to complete. Looking into Grafana and the collector dashboard only~ 20 metrics / s
or only~ 8 logs / s
are received on thecollector
.Additionally, the CPU load when sending
metrics
orlogs
goes very high. It is around60%
.Compared to this, running a
trace
send for5m
with1 worker
, the CPU usage on the collector also goes to~ 60 %
, but it's processing~ 4k spans/s
.All time, there is no queuing shown within the collector.
Example commands I ran
Similar commands were used to send
1000
metrics or logs (--metrics 1000
or--logs 1000
without setting the--duration
)See some screenshots while trying to send
1000 logs
to the collectorReceiver:
Processor:
Exporters:
Collector stats:
Any hint what is going on here or what I am doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: