Skip to main content

CLI Tool for Testing OpenTelemetry Implementations

Project description

OpenTelemetry Telemetry Tester CLI

Python Version PyPI Version License: MIT

Herramienta CLI para probar implementaciones de OpenTelemetry enviando datos de telemetría (traces, metrics, logs) a backends compatibles.

Características Principales

✅ Envío de Traces, Métricas y Logs
✅ Modo continuo (tail) para pruebas prolongadas
✅ Soporte para protocolos gRPC y HTTP
✅ Configuración de headers personalizados (API Keys, JWT, etc)
✅ Compresión gzip para transmisiones eficientes
✅ Generación de datos de prueba parametrizable
✅ Estadísticas en tiempo real con modo verbose
✅ Intervalos de envío configurables
✅ Conexiones seguras (TLS/SSL)
✅ Compatible con principales backends (New Relic, Grafana, Jaeger, etc)

Instalación

pip install otel-telemetry-tester-cli

Uso basico

otel-tester --endpoint otlp.nr-data.net:4317 \
  --protocol grpc \
  --secure \
  --header "api-key=TU_API_KEY" \
  --traces \
  --trace-count 5

Argumentos principales

Para ver el listado de argumentos posibles

otel-tester --help
Argumento Descripcion Valores por defecto Ejemplo
--endpoint Endpoint del collector OTLP Requerido otlp.nr-data.net:4317
--protocol Protocolo de comunicación grpc http
--service-name Nombre del servicio otel-test-service my-awesome-service
--secure Usar conexión TLS/SSL False
--timeout Timeout de conexión (segundos) 10 15
--header Headers en formato clave=valor Api-Key=abc123
--tail Ejecución continua hasta interrupción False
--compress Habilitar compresión gzip False
--verbose Mostrar detalles de ejecución False

Tipos de telemetria

Argumento Descripción
--traces Habilitar envío de traces
--metrics Habilitar envío de métricas
--logs Habilitar envío de logs

Configuración de Cantidades

Argumento Descripción Default Ejemplo
--trace-count Número de traces a generar 1 10
--metric-count Número de métricas a generar 1 50
--log-count Número de logs a generar 1 100
--interval Intervalo entre envíos (segundos) 0 0.5
--metric-interval Intervalo de exportación de métricas (ms) 5000 1000

Ejemplos avanzados

Modo continuo con compresión:

otel-tester --tail \
  --endpoint collector:4317 \
  --protocol grpc \
  --compress \
  --traces --trace-count 5 \
  --metrics --metric-count 100 \
  --interval 0.5 \
  --verbose

Enviar todos los tipos de telemetría:

otel-tester --endpoint localhost:4317 \
  --protocol grpc \
  --traces --metrics --logs \
  --trace-count 10 \
  --metric-count 20 \
  --log-count 15 \
  --interval 0.2

"Prueba de stress" con logs:

otel-tester --endpoint localhost:4317 \
  --logs --log-count 1000 \
  --interval 0.1 \
  --service-name "stress-test"

Enviar con autenticación y seguridad:

otel-tester --endpoint https://api.monitoring.com:443 \
  --protocol http \
  --secure \
  --header "Authorization=Bearer eyJhbGci..." \
  --header "X-Custom-Header=value" \
  --traces --metrics \
  --trace-count 10 \
  --metric-count 50

Modo Continuo (Tail)

Ejecuta la herramienta en segundo plano para monitoreo continuo:

otel-tester --tail \
  --endpoint otlp.nr-data.net:4317 \
  --protocol grpc \
  --traces --trace-count 10 \
  --metrics --metric-count 200 \
  --interval 1.5 \
  --compress

Características del modo tail:

🕹️ Control con Ctrl+C para detención limpia

📊 Estadísticas en tiempo real con --verbose

🔄 Reintentos automáticos en errores transitorios

📦 Optimización de recursos para ejecuciones prolongadas

Licencia

Distribuido bajo licencia MIT. Ver LICENSE para más detalles.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otel_telemetry_tester_cli-0.1.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otel_telemetry_tester_cli-0.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file otel_telemetry_tester_cli-0.1.2.tar.gz.

File metadata

File hashes

Hashes for otel_telemetry_tester_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 620539909ffa9c0ca6ba116229ac8c076a9ce2ecd680c4d841079629b5eb1c9c
MD5 b1c27a17d2d4295a022886aeceea7949
BLAKE2b-256 6cbb0b6f466d1f9621590e0bcf584e28285fe73071f285c2b7141cc7c60e1380

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_telemetry_tester_cli-0.1.2.tar.gz:

Publisher: publish.yml on santiagolator/otel-telemetry-tester-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file otel_telemetry_tester_cli-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for otel_telemetry_tester_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d105a4e801dd13186e76805cad9c241ce072af28741d90241b356c0c8d64b01a
MD5 a9f5f3dda94424bb136c68bf37598d88
BLAKE2b-256 f24c56a1bd2553147ebf0994a31750cd8ef47a2935634e0f34fd99cb1a124188

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_telemetry_tester_cli-0.1.2-py3-none-any.whl:

Publisher: publish.yml on santiagolator/otel-telemetry-tester-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page