Property | Value |
---|---|
Google Cloud Service Name | Cloud Monitoring |
Google Cloud Service Documentation | /monitoring/docs/ |
Google Cloud REST Resource Name | v3.projects.groups |
Google Cloud REST Resource Documentation | /monitoring/api/ref_v3/rest/v3/projects.groups |
Config Connector Resource Short Names | gcpmonitoringgroup gcpmonitoringgroups monitoringgroup |
Config Connector Service Name | monitoring.googleapis.com |
Config Connector Resource Fully Qualified Name | monitoringgroups.monitoring.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Custom Resource Definition Properties
Annotations
Fields | |
---|---|
cnrm.cloud.google.com/project-id |
Spec
Schema
displayName: string
filter: string
isCluster: boolean
parentRef:
external: string
name: string
namespace: string
resourceID: string
Fields | |
---|---|
Required |
A user-assigned name for this group, used only for display purposes. |
Required |
The filter used to determine which monitored resources belong to this group. |
Optional |
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters. |
Optional |
|
Optional |
The name of the group's parent, if it has one. The format is: projects/ For groups with no parent, `parent_name` is the empty string, ``. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
Immutable. Optional. The service-generated name of the resource. Used for acquisition only. Leave unset to create a new resource. |
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observation of the resource's current state. |
conditions.[] |
|
conditions.[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions.[].message |
Human-readable message indicating details about last transition. |
conditions.[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions.[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions.[].type |
Type is the type of the condition. |
Sample YAML(s)
Typical Use Case
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: monitoring.cnrm.cloud.google.com/v1beta1
kind: MonitoringGroup
metadata:
name: monitoringgroup-sample
spec:
filter: resource.metadata.name=has_substring("test")
displayName: "MonitoringSubGroup"
parentRef:
name: monitoringgroup-dep
---
apiVersion: monitoring.cnrm.cloud.google.com/v1beta1
kind: MonitoringGroup
metadata:
name: monitoringgroup-dep
spec:
filter: resource.metadata.region=europe-west2
displayName: "MonitoringGroup"