GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gemini-cli-extensions/cloud-sql-postgresql-observability

BranchesTags
Open more actions menu

Latest commit

 

History

66 Commits
66 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.licenserc.yaml
.licenserc.yaml
 
 
.lycheeignore
.lycheeignore
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLOUD-SQL-POSTGRESQL-OBSERVABILITY.md
CLOUD-SQL-POSTGRESQL-OBSERVABILITY.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DEVELOPER.md
DEVELOPER.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
gemini-extension.json
gemini-extension.json
 
 
release-please-config.json
release-please-config.json
 
 
toolbox_version.txt
toolbox_version.txt
 
 

Repository files navigation

Gemini CLI Extension - Cloud SQL for PostgreSQL Observability

Note

This extension is currently in beta (pre-v1.0), and may see breaking changes until the first stable release (v1.0).

This Gemini CLI extension provides a set of tools to interact with Cloud SQL for PostgreSQL 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, using natural language prompts.

Learn more about Gemini CLI Extensions.

Important

We Want Your Feedback! Please share your thoughts with us by filling out our feedback form. Your input is invaluable and helps us improve the project for everyone.

Why Use the Cloud SQL for PostgreSQL Observability Extension?

  • Natural Language Management: Stop wrestling with complex monitoring queries. Explore monitoring data by describing what you want in plain English.
  • Seamless Workflow: As a Google-developed extension, it integrates seamlessly into the Gemini CLI environment. No need to constantly switch contexts for common tasks.

Prerequisites

Before you begin, ensure you have the following:

  • Gemini CLI installed with version +v0.6.0.
  • Setup Gemini CLI Authentication.
  • A Google Cloud project with the Cloud Monitoring API enabled.
  • Ensure Application Default Credentials are available in your environment.
  • IAM Permissions:
    • Monitoring Viewer (roles/monitoring.viewer)

Getting Started

Installation

To install the extension, use the command:

gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-postgresql-observability

Configuration

Ensure Application Default Credentials are available in your environment.

Start Gemini CLI

To start the Gemini CLI, use the following command:

gemini

Usage Examples

Interact with Cloud Monitoring metrics using natural language right from your IDE:

  • "What is the memory usage for my Postgres database?"
  • "What is the overall system performance for my instance?"
  • "What queries have been run for this instance over the last 3 hours?"
  • "Provide the execution time for the query X"

Supported Tools

  • get_system_metrics: Fetches system level cloud monitoring data (timeseries metrics) for a Postgres instance using a PromQL query.
  • get_query_metrics: Fetches query level cloud monitoring data (timeseries metrics) for queries running in Postgres instance using a PromQL query.

Additional Extensions

Find additional extensions to support your entire software development lifecycle at github.com/gemini-cli-extensions, including:

  • Cloud SQL for PostgreSQL extension
  • Generic PostgreSQL extension
  • and more!

Troubleshooting

Use gemini --debug to enable debugging.

Common issues:

  • "failed to find default credentials: google: could not find default credentials.": Ensure Application Default Credentials are available in your environment. See Set up Application Default Credentials for more information.
  • "✖ 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.
  • "✖ 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+.
  • "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 for more information.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

6 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.