Lightlines
By google

cloud-monitoring-promql-query

google2.7k installs

Get PromQL queries for Cloud Monitoring metrics.

What it does

Generates PromQL queries for Cloud Monitoring metrics using metric descriptors and resource parameters.

When to use it

Use when asked to create or format Cloud Monitoring PromQL queries, not for raw metric discovery or selection.

How to use it

Give it a metric name or description and any resource filters; it returns validated PromQL queries in the conversation.

What you provide

  • a metric name or description

Uses

Good to know

  • sends a credential to a server: TOKEN

Latest review

What you need · 3

Requires Python 3 to run the mandatory query validator.

When a resource label schema is unknown, obtains an access token through gcloud application-default authentication or, alternatively, gcloud user authentication, and sends it to the Cloud Monitoring REST API as a Bearer token.


Access · 3

This skill

Cloud Monitoring

Read

Fetches Cloud Monitoring descriptors

promql-parser

Execute

Installs the PromQL parser