|
| 1 | +Restart local stack and verify |
| 2 | + |
| 3 | +- Restart services: |
| 4 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml down --remove-orphans |
| 5 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml up -d |
| 6 | + |
| 7 | +- Check logs: |
| 8 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml logs --since=90s api |
| 9 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml logs --since=90s dashboard |
| 10 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml logs --since=90s otelcollector |
| 11 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml logs --since=90s clickhouse |
| 12 | + |
| 13 | +- Open dashboard: |
| 14 | + http://localhost:3000/signin |
| 15 | + |
| 16 | +- Generate a trace (example): |
| 17 | + AGENTOPS_API_KEY=<key> \ |
| 18 | + AGENTOPS_API_ENDPOINT=http://localhost:8000 \ |
| 19 | + AGENTOPS_APP_URL=http://localhost:3000 \ |
| 20 | + AGENTOPS_EXPORTER_ENDPOINT=http://localhost:4318/v1/traces \ |
| 21 | + OPENAI_API_KEY=<openai_key> \ |
| 22 | + python examples/openai/openai_example_sync.py |
| 23 | + |
| 24 | +- Verify ClickHouse and dashboard: |
| 25 | + curl -s -u default:password "http://localhost:8123/?query=SELECT%20count()%20FROM%20otel_2.otel_traces%20WHERE%20TraceId%20=%20'<TRACE_ID>'" |
| 26 | + |
| 27 | + http://localhost:3000/traces?trace_id=<TRACE_ID> |
| 28 | + |
| 29 | + |
| 30 | +Local ClickHouse (self-hosted) |
| 31 | +- Set in .env: |
| 32 | + CLICKHOUSE_HOST=127.0.0.1 |
| 33 | + CLICKHOUSE_PORT=8123 |
| 34 | + CLICKHOUSE_USER=default |
| 35 | + CLICKHOUSE_PASSWORD=password |
| 36 | + CLICKHOUSE_DATABASE=otel_2 |
| 37 | + CLICKHOUSE_SECURE=false |
| 38 | + CLICKHOUSE_ENDPOINT=http://clickhouse:8123 |
| 39 | + CLICKHOUSE_USERNAME=default |
| 40 | + |
| 41 | +- Start services (includes otelcollector + local ClickHouse): |
| 42 | + docker compose -f compose.yaml -f opentelemetry-collector/compose.yaml up -d |
| 43 | + |
| 44 | +- Initialize ClickHouse schema: |
| 45 | + curl -u default:password 'http://localhost:8123/?query=CREATE%20DATABASE%20IF%20NOT%20EXISTS%20otel_2' |
| 46 | + curl --data-binary @app/clickhouse/migrations/0000_init.sql -u default:password 'http://localhost:8123/?query=' |
| 47 | + |
| 48 | +- Run example with local OTLP exporter: |
| 49 | + AGENTOPS_API_KEY=<your_key> \ |
| 50 | + AGENTOPS_API_ENDPOINT=http://localhost:8000 \ |
| 51 | + AGENTOPS_APP_URL=http://localhost:3000 \ |
| 52 | + AGENTOPS_EXPORTER_ENDPOINT=http://localhost:4318/v1/traces \ |
| 53 | + OPENAI_API_KEY=<openai_key> \ |
| 54 | + python examples/openai/openai_example_sync.py |
| 55 | + |
| 56 | +- Verify: |
| 57 | + - Dashboard: http://localhost:3000/traces?trace_id=<printed_id> |
| 58 | + - CH rows: curl -s -u default:password "http://localhost:8123/?query=SELECT%20count()%20FROM%20otel_2.otel_traces%20WHERE%20TraceId%20=%20'<TRACE_ID>'" |
1 | 59 | # AgentOps |
2 | 60 |
|
3 | 61 | [](https://www.elastic.co/licensing/elastic-license) |
@@ -312,6 +370,7 @@ AgentOps requires several external services. Here's how to set them up: |
312 | 370 | ``` |
313 | 371 | 4. Run migrations: `supabase db push` |
314 | 372 |
|
| 373 | +For Linux environments with CLI install issues, see docs/local_supabase_linux.md for a manual binary install and env mapping steps. |
315 | 374 | **Option B: Cloud Supabase** |
316 | 375 |
|
317 | 376 | 1. Create a new project at [supabase.com](https://supabase.com) |
|
0 commit comments