Group

The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. To get more information about Group, see:

Example Usage

Monitoring Group Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.monitoring.Group;
import com.pulumi.gcp.monitoring.GroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new Group("basic", GroupArgs.builder()
.displayName("tf-test MonitoringGroup")
.filter("resource.metadata.region=\"europe-west2\"")
.build());
}
}

Monitoring Group Subgroup

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.monitoring.Group;
import com.pulumi.gcp.monitoring.GroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var parent = new Group("parent", GroupArgs.builder()
.displayName("tf-test MonitoringParentGroup")
.filter("resource.metadata.region=\"europe-west2\"")
.build());
var subgroup = new Group("subgroup", GroupArgs.builder()
.displayName("tf-test MonitoringSubGroup")
.filter("resource.metadata.region=\"europe-west2\"")
.parentName(parent.name())
.build());
}
}

Import

Group can be imported using any of these accepted formats

$ pulumi import gcp:monitoring/group:Group default {{name}}

Properties

Link copied to clipboard
val displayName: Output<String>

A user-assigned name for this group, used only for display purposes.

Link copied to clipboard
val filter: Output<String>

The filter used to determine which monitored resources belong to this group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isCluster: Output<Boolean>?

If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.

Link copied to clipboard
val name: Output<String>

A unique identifier for this group. The format is "projects/{project_id_or_number}/groups/{group_id}".

Link copied to clipboard
val parentName: Output<String>?

The name of the group's parent, if it has one. The format is "projects/{project_id_or_number}/groups/{group_id}". For groups with no parent, parentName is the empty string, "".

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>