» google_monitoring_custom_service

A Service is a discrete, autonomous, and network-accessible unit, designed to solve an individual concern (Wikipedia). In Cloud Monitoring, a Service acts as the root resource under which operational aspects of the service are accessible

To get more information about Service, see:

» Example Usage - Monitoring Service Custom

resource "google_monitoring_custom_service" "custom" {
  service_id = "custom-srv"
  display_name = "My Custom Service custom-srv"

  telemetry {
    resource_name = "//product.googleapis.com/foo/foo/services/test"

» Argument Reference

The following arguments are supported:

  • display_name - (Optional) Name used for UI elements listing this Service.

  • telemetry - (Optional) Configuration for how to query telemetry on a Service. Structure is documented below.

  • service_id - (Optional) An optional service ID to use. If not given, the server will generate a service ID.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

The telemetry block supports:

» Attributes Reference

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

  • id - an identifier for the resource with format {{name}}

  • name - The full resource name for this service. The syntax is: projects/[PROJECT_ID]/services/[SERVICE_ID].

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • update - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

Service can be imported using any of these accepted formats:

$ terraform import google_monitoring_custom_service.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.