From 64e1c7df75366bccc268dcfeff367a715462f5b2 Mon Sep 17 00:00:00 2001 From: Jerop Kipruto Date: Mon, 23 Jun 2025 01:10:26 -0400 Subject: docs: update telemetry documentation and scripts (#1318) --- scripts/local_telemetry.js | 5 +++++ scripts/telemetry_gcp.js | 3 +++ 2 files changed, 8 insertions(+) (limited to 'scripts') diff --git a/scripts/local_telemetry.js b/scripts/local_telemetry.js index 561ce5f8..d7ff6941 100755 --- a/scripts/local_telemetry.js +++ b/scripts/local_telemetry.js @@ -206,6 +206,11 @@ async function main() { console.log( ` šŸ”Ž View traces in the Jaeger UI: http://localhost:${JAEGER_PORT}`, + ); + console.log(`šŸ“Š View metrics in the logs and metrics: ${OTEL_LOG_FILE}`); + console.log( + ` +šŸ“„ Tail logs and metrics in another terminal: tail -f ${OTEL_LOG_FILE}`, ); console.log(` Press Ctrl+C to exit.`); diff --git a/scripts/telemetry_gcp.js b/scripts/telemetry_gcp.js index 710fbe17..7e2d287b 100755 --- a/scripts/telemetry_gcp.js +++ b/scripts/telemetry_gcp.js @@ -169,6 +169,9 @@ async function main() { '\nšŸš€ To send telemetry, run the Gemini CLI in a separate terminal window.', ); console.log(`\nšŸ“„ Collector logs are being written to: ${OTEL_LOG_FILE}`); + console.log( + `šŸ“„ Tail collector logs in another terminal: tail -f ${OTEL_LOG_FILE}`, + ); console.log(`\nšŸ“Š View your telemetry data in Google Cloud Console:`); console.log( ` - Logs: https://console.cloud.google.com/logs/query;query=logName%3D%22projects%2F${projectId}%2Flogs%2Fgemini_cli%22?project=${projectId}`, -- cgit v1.2.3