ODCL (OTel Data Collector for LLM) is the tool or template to generate OpenTelemetry metrics for various LLM and LLM Applications. All implementation are based on predefined OpenTelemetry Semantic Conventions.
- Java 11+
Ensure that Java SDK 11+ is installed.
java -version
- Download the installation package:
curl -O https://github.com/instana/otel-dc/releases/download/Release/otel-dc-llm_1.0.0_linux_amd64.tar.gz
- Extract the package to the desired deployment location:
tar vxf otel-dc-llm_1.0.0_linux_amd64.tar.gz
cd otel-dc-llm-1.0.0
vi config/config.yaml
The following options are required:
otel.backend.url
:The OTel gRPC address of the OTel backends, for example Instana Agent (as OTel Backend): https://localhost:4317otel.service.name
:The Data Collector name, which can be any string you choose.*.price.prompt.tokens.per.kilo
:The unit price per thousand prompt tokens.*.price.complete.tokens.per.kilo
:The unit price per thousand complete tokens.
Run the Data Collector with the following command according to your current system:
nohup ./bin/otel-dc-llm &
If your platform is not supported by the pre-built binaries or if you prefer to compile from source, you can follow the steps in DEVELOP.md