Skip to content

Instantly share code, notes, and snippets.

View Cali0707's full-sized avatar

Calum Murray Cali0707

View GitHub Profile
@Cali0707
Cali0707 / setup-otel.sh
Created July 14, 2025 12:58
This installs all the components needed to collect metrics and traces with OTel, store them in Prometheus/Jaeger, and view them in Grafana.
#!/usr/bin/env bash
header=$'\e[1;33m'
reset=$'\e[0m'
function header_text {
echo "$header$*$reset"
}
header_text "Installing Cert Manager"
from llama_stack_client import Agent, AgentEventLogger, RAGDocument, LlamaStackClient
from llama_stack.apis.common.content_types import URL
client = LlamaStackClient(base_url="http://localhost:8321")
models = client.models.list()
# Select the first LLM and first embedding models
model_id = next(m for m in models if m.model_type == "llm").identifier
embedding_model_id = (