This repository contains the JSON configuration and setup guide for the Gemini CLI Health Dashboard.
This dashboard provides real-time observability into the Gemini CLI, allowing Platform Engineering and DevOps teams to monitor API health, success vs. error rates, and response code distributions (2xx, 4xx, 5xx).
Before importing the dashboard, you must configure the Gemini CLI to send telemetry to Google Cloud and create specific Log-Based Metrics. The dashboard relies on these metrics to populate the charts.
Update your Gemini CLI settings file (typically ~/.gemini/settings.json) to enable telemetry and target Google Cloud:
{
"telemetry": {
"enabled": true,
"target": "gcp"
}
}
You must create 3 user-defined metrics in Google Cloud Logging using either option A or B .
-
- Metric Type: Counter
- Log Metric Name: gemini_cli_success
- Labels:
Name : success_status Type : STRING Field Name : jsonPayload."event.name" - Filter:
logName="projects/<project_id>/logs/gemini_cli" jsonPayload.status_code:* jsonPayload."event.name"="gemini_cli.api_response"
-
- Metric Type: Counter
- Log Metric Name: gemini_cli_error
- Labels:
Name : error_status Type : STRING Field Name : jsonPayload."event.name" - Filter:
logName="projects/<project_id>/logs/gemini_cli" jsonPayload.status_code:* jsonPayload."event.name"="gemini_cli.api_error"
-
- Metric Type: Counter
- Log Metric Name: gemini_cli_response
- Labels: Create 2 labels
Name : status Type : STRING Field Name : jsonPayload.status_code Name : event_name Type : STRING Field Name : jsonPayload."event.name" - Filter:
logName="projects/<project_id>/logs/gemini_cli" jsonPayload.status_code:*
Instead of manually creating metrics, you can also run the provided script:
- Open the terminal.
- Authenticate using Google Cloud Credentials
- Setup Google Cloud Project if not already set.
- Clone this git repository.
- Navigate path gemini-cli-health-dashboard/scripts/
- Run:
python3 create_log_based_metrics.py
- Download the gemini-cli-dashboard.json file from this repository.
- Go to the Google Cloud Console > Monitoring > Dashboards.
- Click Create Dashboard.
- Switch to the JSON Editor tab.
- Copy and paste the contents of gemini-cli-dashboard.json.
- Click Apply.
- [A] Success vs Error Rate: 📊 A stacked bar chart showing the ratio of successful requests to failed ones over time.
- [B] Response Code Distribution: 📉 A line chart visualizing the volume of traffic segmented by HTTP response codes (200s, 400s, 500s).

Feel free to submit Pull Requests to improve the dashboard layout or add new metrics!