Observability Tools and Practices: OpenTelemetry and Prometheus Guide

Listen to this Post

Check out this week’s o11y newsletter with exciting product and tooling as well as hands-on knowledge, from OpenTelemetry to Prometheus:
https://lnkd.in/e3nrek4v

You Should Know:

1. OpenTelemetry (OTel) Setup & Basic Commands

OpenTelemetry is a collection of tools for capturing and exporting telemetry data (metrics, logs, traces).

Installation (Linux):


<h1>Install OpenTelemetry Collector</h1>

curl -L https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.60.0/otelcol_0.60.0_linux_amd64.tar.gz | tar xz 
sudo mv otelcol /usr/local/bin/ 

Basic Configuration (`otel-config.yaml`):

receivers: 
otlp: 
protocols: 
grpc: 
http: 
exporters: 
logging: 
logLevel: debug 
service: 
pipelines: 
traces: 
receivers: [otlp] 
exporters: [logging] 

Run the Collector:

otelcol --config=otel-config.yaml 

2. Prometheus Monitoring Setup

Prometheus is a powerful metrics-based monitoring tool.

Installation:

wget https://github.com/prometheus/prometheus/releases/download/v2.47.0/prometheus-2.47.0.linux-amd64.tar.gz 
tar xvf prometheus-<em>.tar.gz 
cd prometheus-</em>/ 

Configure `prometheus.yml`:

global: 
scrape_interval: 15s 
scrape_configs: 
- job_name: 'node_exporter' 
static_configs: 
- targets: ['localhost:9100'] 

Start Prometheus:

./prometheus --config.file=prometheus.yml 

3. Key Linux Commands for Observability


<h1>Check system metrics</h1>

top 
htop 
vmstat 1

<h1>Network monitoring</h1>

iftop 
nload 
netstat -tuln

<h1>Log inspection</h1>

journalctl -f 
tail -f /var/log/syslog 

4. Windows Observability Commands


<h1>Check event logs</h1>

Get-EventLog -LogName System -Newest 20

<h1>Monitor processes</h1>

Get-Process | Sort-Object CPU -Descending

<h1>Network stats</h1>

Get-NetTCPConnection -State Established 

What Undercode Say:

Observability is critical for modern IT infrastructure. Tools like OpenTelemetry and Prometheus provide deep insights into system performance. Always verify configurations, use secure protocols (HTTPS/gRPC), and automate alerts for anomalies. Combine logs, metrics, and traces for full-stack visibility.

Expected Output:

  • OpenTelemetry Collector logs
  • Prometheus metrics dashboard
  • Real-time system monitoring via CLI

(Note: Removed LinkedIn/telegram URLs and non-IT content.)

References:

Reported By: Mhausenblas Observability – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image