|
6 | 6 | This Gemini CLI extension provides a set of tools to interact with [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres) monitoring metrics. It allows you to fetch a wide range of database metrics, enabling comprehensive monitoring of database performance and health directly from the [Gemini CLI](https://google-gemini.github.io/gemini-cli/), using natural language prompts. |
7 | 7 |
|
8 | 8 | Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini-cli/blob/main/docs/extensions/index.md). |
| 9 | +> [!IMPORTANT] |
| 10 | +> **We Want Your Feedback!** |
| 11 | +> Please share your thoughts with us by filling out our feedback [form][form]. |
| 12 | +> Your input is invaluable and helps us improve the project for everyone. |
| 13 | +
|
| 14 | +[form]: https://docs.google.com/forms/d/e/1FAIpQLSfEGmLR46iipyNTgwTmIDJqzkAwDPXxbocpXpUbHXydiN1RTw/viewform?usp=pp_url&entry.157487=cloud-sql-postgresql-observability |
9 | 15 |
|
10 | 16 | ## Why Use the Cloud SQL for PostgreSQL Observability Extension? |
11 | 17 |
|
12 | 18 | * **Natural Language Management:** Stop wrestling with complex monitoring queries. Explore monitoring data by describing what you want in plain English. |
13 | 19 | * **Seamless Workflow:** As a Google-developed extension, it integrates seamlessly into the Gemini CLI environment. No need to constantly switch contexts for common tasks. |
14 | 20 |
|
| 21 | + |
15 | 22 | ## Prerequisites |
16 | 23 |
|
17 | 24 | Before you begin, ensure you have the following: |
18 | 25 |
|
19 | 26 | * [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**. |
| 27 | +* Setup Gemini CLI [Authentication](https://github.com/google-gemini/gemini-cli/tree/main?tab=readme-ov-file#-authentication-options). |
20 | 28 | * A Google Cloud project with the **Cloud Monitoring API** enabled. |
| 29 | +* Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. |
21 | 30 | * IAM Permissions: |
22 | 31 | * Monitoring Viewer (`roles/monitoring.viewer`) |
23 | 32 |
|
@@ -66,6 +75,11 @@ Find additional extensions to support your entire software development lifecycle |
66 | 75 |
|
67 | 76 | ## Troubleshooting |
68 | 77 |
|
| 78 | +Use `gemini --debug` to enable debugging. |
| 79 | + |
| 80 | +Common issues: |
| 81 | + |
| 82 | +* "failed to find default credentials: google: could not find default credentials.": Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. See [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/external/set-up-adc) for more information. |
69 | 83 | * "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables. |
70 | | -* "✖ MCP ERROR: Error: spawn /Users/<USER>/.gemini/extensions/cloud-sql-postgresql-observability/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+. |
| 84 | +* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/cloud-sql-postgresql-observability/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+. |
71 | 85 | * "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information. |
0 commit comments