Skip to content
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

Comparison: OpenTelemetry Collector vs. Prometheus Agent Mode for Lightweight Metric Collection (Benchmark) #6649

Open
Radhe1002 opened this issue Dec 17, 2024 · 1 comment

Comments

@Radhe1002
Copy link

Hi Team,

I am trying to determine the more lightweight solution for metric collection and remote writing to a TSDB in terms of memory and CPU usage (benchmark). I have the following two setups:

OpenTelemetry Collector Configuration:

Receiver: Prometheus receiver (scraping metrics from a target)
Exporter: Prometheus Remote Write exporter

pipelines:
metrics/otel-pipeline:
receivers:
- prometheus
exporters:
- prometheusremotewrite

Prometheus Agent Mode Configuration:
Minimal Prometheus configuration for scraping and remote writing:

scrape_configs:

Question:
Which of these setups is more lightweight in terms of memory and CPU consumption?
Are there any benchmarks or best practices available to decide between OpenTelemetry Collector and Prometheus Agent mode for this use case?
Does the addition of components like batch/memory limiter in OpenTelemetry pipelines significantly affect resource usage compared to Prometheus Agent?

Environment:

OpenTelemetry version: 0.106.1
Prometheus version: prom/prometheus:2.45.0
Deployment method: Kubernetes

I would appreciate any guidance or insights on this!

Copy link

welcome bot commented Dec 17, 2024

Thanks for opening this issue. A team member should give feedback soon. In the meantime, feel free to check out the contributing guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant