mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
fix(scripts): add metrics interval to env variables
This commit is contained in:
parent
661bd28e86
commit
e8d20b9c50
2 changed files with 10 additions and 10 deletions
|
|
@ -235,6 +235,7 @@ if [[ "$STACK_CONFIG" == *"server:"* && "$COLLECT_ONLY" == false ]]; then
|
||||||
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
|
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
|
||||||
export OTEL_BSP_SCHEDULE_DELAY="200"
|
export OTEL_BSP_SCHEDULE_DELAY="200"
|
||||||
export OTEL_BSP_EXPORT_TIMEOUT="2000"
|
export OTEL_BSP_EXPORT_TIMEOUT="2000"
|
||||||
|
export OTEL_METRIC_EXPORT_INTERVAL="200"
|
||||||
|
|
||||||
# remove "server:" from STACK_CONFIG
|
# remove "server:" from STACK_CONFIG
|
||||||
stack_config=$(echo "$STACK_CONFIG" | sed 's/^server://')
|
stack_config=$(echo "$STACK_CONFIG" | sed 's/^server://')
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,7 @@ def test_telemetry_format_completeness(mock_otlp_collector, llama_stack_client,
|
||||||
assert len(metrics) > 0, "No metrics found within timeout"
|
assert len(metrics) > 0, "No metrics found within timeout"
|
||||||
|
|
||||||
# Filter metrics to only those from the specific model used in the request
|
# Filter metrics to only those from the specific model used in the request
|
||||||
# This prevents issues when multiple metrics with the same name exist from different models
|
# Multiple metrics with the same name can exist (e.g., from safety models)
|
||||||
# (e.g., when safety models like llama-guard are also called)
|
|
||||||
inference_model_metrics = {}
|
inference_model_metrics = {}
|
||||||
all_model_ids = set()
|
all_model_ids = set()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue