OpenTelemetry has become the standard way to instrument applications for traces, metrics and logs. Instead of tying each service to a specific vendor's agent, applications send telemetry in one format to a collector, which decides where it goes. That makes it easy to switch backends, send data to several places, and remove sensitive fields centrally.
How the Collector Works
receivers (otlp, prometheus, filelog, hostmetrics)
─▶ processors (memory_limiter, batch, attributes, filter, tail_sampling)
─▶ exporters (prometheus remote write, otlp to Tempo/Jaeger, Loki, vendors)
Pipelines are defined per signal (traces, metrics, logs) in a YAML configuration. Extensions add health checks and other features.
Core or Contrib
The core distribution contains a small set of stable components. The contrib distribution adds many receivers, processors and exporters (such as file log reading, host metrics, tail sampling and many backends). You can also build a custom distribution with only the components you need using the builder tool, which reduces size and attack surface. Pin the version, since component configurations evolve.
Agent and Gateway Patterns
| Pattern | Description | Use |
|---|---|---|
| Agent | Collector on each server, receiving from local apps and collecting host metrics and logs | Host-level data, low latency, offloading work from apps |
| Gateway | Central collectors receiving from agents or apps | Tail sampling, central policy, single egress to vendors |
| Both | Agents forward to gateways | Most production setups with several servers |
Reliability Settings
- Put the
memory_limiterprocessor first in each pipeline so the collector refuses data before running out of memory. - Use the
batchprocessor to send data efficiently. - Enable sending queues and retries on exporters; consider persistent queues on disk for important data.
- Enable the health check extension for your process manager or load balancer.
Sampling Traces
Storing every trace from a busy system is expensive. Head sampling (in the SDK) keeps a fixed percentage. Tail sampling (in a gateway collector) decides after seeing the whole trace, so you can keep all errors and slow requests while sampling normal ones. Tail sampling needs all spans of a trace to reach the same collector instance, so use a load-balancing exporter in front of multiple gateways.
Processing and Privacy
Use attribute and transform processors to remove or hash sensitive fields (emails, tokens, card numbers), add resource attributes such as environment and region, and drop noisy data such as health check spans. Doing this centrally is easier than fixing every application.
Common Backends
- Metrics: Prometheus via remote write or a scrape endpoint (see our Grafana and Prometheus guide).
- Traces: Grafana Tempo or Jaeger via OTLP.
- Logs: Loki or Elasticsearch/OpenSearch (see our ELK guide).
- Commercial observability platforms, most of which accept OTLP.
Security
- Bind OTLP receivers to localhost for agents, or to private interfaces for gateways.
- If receiving over the internet (for example from browsers or mobile apps), use TLS and authentication extensions, plus rate limiting at a proxy.
- Keep exporter credentials in environment variables or secret files, not in committed configs.
- Run the collector as a non-root user, with access only to the log files it needs.
Monitoring the Collector
The collector exposes its own metrics: accepted, refused and dropped data per receiver and exporter, queue sizes and send failures. Scrape them and alert on dropped data or growing queues, which signal that a backend is down or the collector is overloaded.
Deployment
Run the collector as a systemd service or container with automatic restart, keep configuration in Git, validate it before deploying, and roll out changes gradually. For Kubernetes, the OpenTelemetry Operator and Helm charts manage agents and gateways.
Sizing
| Role | Suggested plan |
|---|---|
| Agent on application servers | Shares your existing plan |
| Gateway for a few services | 2 vCores / 8 GB |
| Gateway with tail sampling and many services | 4 vCores / 16 GB, scaled horizontally |
Example: A Microservices Team
A team runs collectors as agents on four application servers, collecting host metrics, logs and OTLP from services, and forwarding to a gateway on a 4 vCore / 16 GB VPS. The gateway removes user emails from attributes, keeps all error and slow traces with tail sampling plus 10 percent of the rest, and exports metrics to Prometheus, traces to Tempo and logs to Loki.
Common Mistakes
- No memory limiter, letting the collector crash under load.
- Public OTLP ports without authentication.
- Tail sampling across several gateways without load balancing by trace ID.
- Using the full contrib build when a minimal custom build would do.
- Not monitoring dropped data.
In Short
Use the OpenTelemetry Collector as the single path for telemetry: agents near apps, gateways for central policy, memory limiting and batching for reliability, sampling and scrubbing for cost and privacy, and private, monitored endpoints.
Instrumenting Applications
Use the OpenTelemetry SDK or automatic instrumentation for your language to produce traces and metrics for incoming requests, database calls and outgoing HTTP requests. Set the service name and version as resource attributes, point the OTLP exporter at the local agent collector, and propagate trace context across services so a request can be followed end to end. Start with automatic instrumentation, then add manual spans around important business operations such as checkout or report generation.
SkyRainCloud Plans for This Workload
Collectors are efficient; throughput and processing decide size. An agent fits alongside apps on any plan; a gateway handling many services with tail sampling suits 4 vCores / 16 GB.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.