google_monitoring_app_engine_service

A Monitoring Service is the root resource under which operational aspects of a generic service are accessible. A service is some discrete, autonomous, and network-accessible unit, designed to solve an individual concern

An App Engine monitoring service is automatically created by GCP to monitor App Engine services.

To get more information about Service, see:

Example Usage - Monitoring App Engine Service

# Monitors the default AppEngine service
data "google_monitoring_app_engine_service" "srv" {
  module_id = google_app_engine_standard_app_version.myapp.service
}

resource "google_app_engine_standard_app_version" "myapp" {
  version_id = "v1"
  service    = "myapp"
  runtime    = "nodejs20"

  entrypoint {
    shell = "node ./app.js"
  }

  deployment {
    zip {
      source_url = "https://storage.googleapis.com/${google_storage_bucket.bucket.name}/${google_storage_bucket_object.object.name}"
    }
  }

  env_variables = {
    port = "8080"
  }

  delete_service_on_destroy = false
}

resource "google_storage_bucket" "bucket" {
  name     = "appengine-static-content"
  location = "US"
}

resource "google_storage_bucket_object" "object" {
  name   = "hello-world.zip"
  bucket = google_storage_bucket.bucket.name
  source = "./test-fixtures/hello-world.zip"
}

Argument Reference

The arguments of this data source act as filters for identifying a given App Engine-created service.

The given filters must match exactly one service whose data will be exported as attributes. The following arguments are supported:

One of the following fields must be specified:


Other optional fields include:

Attributes Reference

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

The telemetry block includes: