Skip to content

Commit 7b5b298

Browse files
add additional metric GKE components options (#8850) (#15727)
* feat: add additional metric components options * feat: remove validation Signed-off-by: Modular Magician <[email protected]>
1 parent 8a527ac commit 7b5b298

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.changelog/8850.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
container: added additional options in `monitoring_config.enable_components`
3+
```

google/services/container/resource_container_cluster.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,9 @@ func ResourceContainerCluster() *schema.Resource {
10061006
Type: schema.TypeList,
10071007
Optional: true,
10081008
Computed: true,
1009-
Description: `GKE components exposing metrics. Valid values include SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, and SCHEDULER.`,
1009+
Description: `GKE components exposing metrics. Valid values include SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT and STATEFULSET.`,
10101010
Elem: &schema.Schema{
1011-
Type: schema.TypeString,
1012-
ValidateFunc: validation.StringInSlice([]string{"SYSTEM_COMPONENTS", "APISERVER", "CONTROLLER_MANAGER", "SCHEDULER"}, false),
1011+
Type: schema.TypeString,
10131012
},
10141013
},
10151014
"managed_prometheus": {

website/docs/r/container_cluster.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ This block also contains several computed attributes, documented below.
594594

595595
<a name="nested_monitoring_config"></a>The `monitoring_config` block supports:
596596

597-
* `enable_components` - (Optional) The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `CONTROLLER_MANAGER`, and `SCHEDULER`. In beta provider, `WORKLOADS` is supported on top of those 4 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.)
597+
* `enable_components` - (Optional) The GKE components exposing metrics. Supported values include: `SYSTEM_COMPONENTS`, `APISERVER`, `SCHEDULER`, `CONTROLLER_MANAGER`, `STORAGE`, `HPA`, `POD`, `DAEMONSET`, `DEPLOYMENT` and `STATEFULSET`. In beta provider, `WORKLOADS` is supported on top of those 10 values. (`WORKLOADS` is deprecated and removed in GKE 1.24.)
598598

599599
* `managed_prometheus` - (Optional) Configuration for Managed Service for Prometheus. Structure is [documented below](#nested_managed_prometheus).
600600

0 commit comments

Comments
 (0)