Skip to content

Cloud Monitoring Chart Generator

Builds valid Cloud Monitoring dashboard chart widget definitions from PromQL or ListTimeSeries queries.

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
11 files

What it does

When installed, the agent can turn an existing Google Cloud Monitoring query (PromQL or a ListTimeSeries filter) into a dashboard widget definition, written as a Protocol Buffer text file that Cloud Monitoring's dashboard tools accept. It suggests a title, axis label, plot type and unit, using three bundled Python scripts that compute label candidates, assemble the widget file and validate it. The skill is instructed to copy the user's queries exactly and not to search the repository for metric data.

Great for

  • Engineers who manage Cloud Monitoring dashboards as code and want consistent, valid widget definitions
  • Teams generating dashboard provisioning files from queries they already have
  • Developers who want an agent to handle widget formatting and unit selection

Skip it if

  • Discovering metrics or writing new PromQL queries; the skill says to use separate metric-selection or PromQL skills for that
  • Users without a Google Cloud project who only want generic charts, since the output targets Cloud Monitoring specifically
  • Production dashboards deployed without review, because the agent chooses titles and units that a human should check

Try asking

  • “Turn this PromQL query for VM CPU utilization into a Cloud Monitoring line chart widget textproto”
  • “Generate a stacked area dashboard widget for this ListTimeSeries filter with ALIGN_RATE and REDUCE_SUM”
  • “Create a widget definition file for a histogram latency query with an appropriate seconds unit”
Step-by-step guide: how to use Cloud Monitoring Chart GeneratorInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 11 original files, the Apache-2.0 licence and an attribution note.

    cloud-monitoring-chart-generation.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip cloud-monitoring-chart-generation.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip cloud-monitoring-chart-generation.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Provide the exact metric display name, resource type, unit and query up front so the agent does not need to search for them, which the skill forbids anyway.
  • Review the generated title, axis label and unitOverride before applying the widget to a live dashboard.
  • Run the bundled validation step and check the file path printed after 'Wrote widget textproto to:' before using the output.

What's inside

  • references/attribution.md
  • scripts/assemble_widget_proto_test.py
  • scripts/assemble_widget_proto.py
  • scripts/compute_labels_test.py
  • scripts/compute_labels.py
  • scripts/requirements.txt
  • scripts/textproto_util_test.py
  • scripts/textproto_util.py
  • scripts/validate_chart_test.py
  • scripts/validate_chart.py
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.