google_monitoring_monitored_project

A project being monitored by a Metrics Scope.

To get more information about MonitoredProject, see:

Example Usage - Monitoring Monitored Project Basic

resource "google_monitoring_monitored_project" "primary" {
  metrics_scope = "my-project-name"
  name          = google_project.basic.project_id
}

resource "google_project" "basic" {
  project_id = "m-id"
  name       = "m-id-display"
  org_id     = "123456789"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

MonitoredProject can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import MonitoredProject using one of the formats above. For example:

import {
  id = "v1/locations/global/metricsScopes/{{name}}"
  to = google_monitoring_monitored_project.default
}

When using the terraform import command, MonitoredProject can be imported using one of the formats above. For example:

$ terraform import google_monitoring_monitored_project.default v1/locations/global/metricsScopes/{{name}}
$ terraform import google_monitoring_monitored_project.default {{name}}