summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJerop Kipruto <[email protected]>2025-06-23 01:10:26 -0400
committerGitHub <[email protected]>2025-06-23 06:10:26 +0100
commit64e1c7df75366bccc268dcfeff367a715462f5b2 (patch)
tree7b24e7e7ae6a96741b1e10ecd320c5b07207c407 /scripts
parentda128e725dadbba5bb031b98036a267dc70a9e35 (diff)
docs: update telemetry documentation and scripts (#1318)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/local_telemetry.js5
-rwxr-xr-xscripts/telemetry_gcp.js3
2 files changed, 8 insertions, 0 deletions
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
@@ -207,6 +207,11 @@ async function main() {
`
šŸ”Ž 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}`,