A collection of common infrastructure modules that encapsulate Cloud Run and GCP patterns.
See MODULES.md for a summary of all available modules.
The httpmetrics package provides HTTP instrumentation and opt-in serving-revision metadata for HTTP and gRPC services.
The memusage package logs Linux process and container memory high-water marks, including peaks between monitoring samples.
To use components in this library, you must provide the project in a
provider.google resource in your top-level main.tf:
provider "google" {
project = var.project
}Many modules add a terraform-module label and a label named after the module. Modules differ in which other labels they apply and whether they accept a labels map. Check the module's variables and resources before relying on a specific label.
Modules no longer set team or product labels on resources that support Resource Manager tags; attribute those resources with tags instead. Alert routing and the incident.io catalog read the operational squad label, which modules set only where a consumer reads it, such as dead-letter topics and Cloud Run services and jobs. Billing never reads squad. Cloud Run services and jobs keep their team and product labels, and dead-letter topics keep team, only as transitional labels that are removed once the consumers are verified. Where a module still accepts team and product only so existing callers keep planning, its variable description says the input is unused. Upgrading removes previously applied team and product labels from those resources on the next apply.
These modules are canonically located within a private Chainguard repository, and are continuously pushed from there to this repository.
If you would like to submit a PR, please do make one against this repository. After the review process, someone at Chainguard will merge it into our internal repository, and the change will then be pushed here.