Skip to content

Commit dab20cd

Browse files
committed
few nts
1 parent 2e4a320 commit dab20cd

3 files changed

Lines changed: 27 additions & 14 deletions

File tree

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# Ingestion Service / Backend
1+
# Backend Service
22

3-
A destination to which telemetry is exported to ultimately.
3+
The backend service acts as a destination for exported telemetry data. It
4+
currently supports OTLP/gRPC on port `5317`, counts the logs it receives, and
5+
exposes these count at the `:5000/metrics` endpoint.
46

5-
- Options include:
6-
- Null Sink (i.e., drop everything)
7-
- A fake service that adds configurable latency and tracks requests received.
8-
- A real backend for validating full pipeline integrity (vendor forks may
9-
leverage this)
7+
## Planned Enhancements
8+
9+
- A Null Sink to discard all incoming data.
10+
- A mock service that introduces configurable latency and tracks incoming
11+
requests.
12+
- A fully functional backend to validate end-to-end pipeline integrity (allowing
13+
vendor-specific forks to extend functionality).
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Load Generator
22

3-
Scripts or other mechanisms to generate load against
4-
system under test.
3+
A simple Python script that continuously sends OTLP logs for a specified
4+
duration. At the end of the run, it outputs the total count of logs sent to
5+
stdout, which can be parsed to determine the number of logs sent.
56

6-
- Initially, a basic script firing OTLP requests, later extended to:
7-
- Use language-specific OpenTelemetry SDKs
8-
- Integrate load gen tools like Locust or custom telemetry generators
7+
## Future Enhancements
8+
9+
- Utilize language-specific OpenTelemetry SDKs.
10+
- Integrate load generation tools like Locust or custom telemetry generators.
11+
- Extend the script to support configurable options such as log size and length.

tools/pipeline_perf_test/orchestrator/orchestrator.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,14 @@ def get_backend_received_count() -> int:
172172
print(f"Failed to query backend service: {e}")
173173
return -1
174174

175-
# example usage
176-
# python3 orchestrator/orchestrator.py --collector-config system_under_test/otel-collector/collector-config.yaml --duration 30
175+
# Pre-requisites:
176+
# 1. Create and activate a virtual environment:
177+
# python3 -m venv venv
178+
# source venv/bin/activate # On Windows use: venv\Scripts\activate
179+
# 2. Install dependencies:
180+
# pip install -r requirements.txt
181+
# 3. Run the orchestrator:
182+
# python3 orchestrator/orchestrator.py --collector-config system_under_test/otel-collector/collector-config.yaml --duration 30
177183
def main():
178184
parser = argparse.ArgumentParser(description="Orchestrate OTel pipeline perf test")
179185
parser.add_argument("--duration", type=int, default=10, help="Duration to perform perf test in seconds")

0 commit comments

Comments
 (0)