CLI Tool for Testing OpenTelemetry Implementations
Project description
OpenTelemetry Telemetry Tester CLI
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)
✅ 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=API_KEY" \
--trace-count 5
Argumentos principales
Para ver el listado de argumentos posibles
otel-tester --help
| Argumento | Descripcion | Valores por defecto | Ejemplo |
|---|---|---|---|
--endpoint, -e |
Endpoint del collector OTLP | Requerido | otlp.nr-data.net:4317 |
--protocol , -p |
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, -t |
Ejecución continua hasta interrupción | False | |
--verbose, -v |
Mostrar detalles de ejecución | False |
Configuración de cantidades y tipos de telemetria
| Argumento | Descripción | Default | Ejemplo |
|---|---|---|---|
--all, -a |
Envía la misma cantidad para todos los tipos de telemetría | 1 | 10 |
--trace-count, -traces |
Número de traces a generar | 1 | 10 |
--metric-count, -metrics |
Número de métricas a generar | 1 | 50 |
--log-count, -logs |
Número de logs a generar | 1 | 100 |
--interval |
Intervalo entre envíos (segundos) | 0 | 0.5 |
Ejemplos avanzados
Envio de traces y metricas en modo continuo:
otel-tester --tail \
--endpoint collector:4317 \
--protocol grpc \
--trace-count 5 \
--metric-count 100 \
--interval 0.5 \
--verbose
Enviar todos los tipos de telemetría:
otel-tester --endpoint localhost:4317 \
--protocol grpc \
--all 10
"Prueba de stress" con logs:
otel-tester --endpoint localhost:4317 \
--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" \
-metrics 100 \
-traces 10 \
-logs 50
Modo Continuo (Tail)
Ejecuta la herramienta en segundo plano para monitoreo continuo:
otel-tester --tail \
--endpoint otlp.nr-data.net:4317 \
--protocol grpc \
--trace-count 10 \
---metric-count 200 \
--interval 1.5 \
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file otel_telemetry_tester_cli-0.1.3.tar.gz.
File metadata
- Download URL: otel_telemetry_tester_cli-0.1.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1834157c619dc4a6034045adca9f4a4d7983d072a133a38f2a8581541fb779
|
|
| MD5 |
dd7dc91120656ce874cb20378f6f65b7
|
|
| BLAKE2b-256 |
f3573e8a1747efa64b33db357c5a26bd849542b9d10dbbde1d69ad09658a7754
|
Provenance
The following attestation bundles were made for otel_telemetry_tester_cli-0.1.3.tar.gz:
Publisher:
publish.yml on santiagolator/otel-telemetry-tester-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
otel_telemetry_tester_cli-0.1.3.tar.gz -
Subject digest:
ba1834157c619dc4a6034045adca9f4a4d7983d072a133a38f2a8581541fb779 - Sigstore transparency entry: 211112698
- Sigstore integration time:
-
Permalink:
santiagolator/otel-telemetry-tester-cli@bb293b60024c1ba1421003ee7c4fa49081653363 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/santiagolator
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb293b60024c1ba1421003ee7c4fa49081653363 -
Trigger Event:
release
-
Statement type:
File details
Details for the file otel_telemetry_tester_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: otel_telemetry_tester_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3763b81e7a458c28c0f1f3d1a8e0d31c2eb91d1e7f5fd462c079f2668407aa51
|
|
| MD5 |
ce737207f179ed8f593df55db8962b53
|
|
| BLAKE2b-256 |
55e11c004579d2ad4b77dde5b1b0fff200561814d78121d6c1b3beb092988a20
|
Provenance
The following attestation bundles were made for otel_telemetry_tester_cli-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on santiagolator/otel-telemetry-tester-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
otel_telemetry_tester_cli-0.1.3-py3-none-any.whl -
Subject digest:
3763b81e7a458c28c0f1f3d1a8e0d31c2eb91d1e7f5fd462c079f2668407aa51 - Sigstore transparency entry: 211112702
- Sigstore integration time:
-
Permalink:
santiagolator/otel-telemetry-tester-cli@bb293b60024c1ba1421003ee7c4fa49081653363 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/santiagolator
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb293b60024c1ba1421003ee7c4fa49081653363 -
Trigger Event:
release
-
Statement type: