Skip to content

Commit

Permalink
Add support for monitoring prometheus (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulAhadAkhter authored Aug 24, 2023
1 parent 8841377 commit 483abe4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
31 changes: 24 additions & 7 deletions vpc-native-beta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
## vpc-native-beta-v1.5.1

- Enables utilizing GCP managed prometheus

## vpc-native-beta-v1.5.0
* Prepares module for compatibility with future 4.x GCP provider

- Prepares module for compatibility with future 4.x GCP provider

## vpc-native-beta-v1.4.5
* The initial node_pool needs to have a n2d machine type if confidential nodes are enabled

- The initial node_pool needs to have a n2d machine type if confidential nodes are enabled

## vpc-native-beta-v1.4.4
* Fix typo var name var.enabled_confidential_nodes -> var.enable_confidential_nodes

- Fix typo var name var.enabled_confidential_nodes -> var.enable_confidential_nodes

## vpc-native-beta-v1.4.3
* Added var.enabled_confidential_nodes to allow deploying using confidential nodes

- Added var.enabled_confidential_nodes to allow deploying using confidential nodes

## vpc-native-beta-v1.4.2
* Added parameters for enabling GKE usage metering

- Added parameters for enabling GKE usage metering

## vpc-native-beta-v1.4.1
* Added the ability to use shielded nodes in a cluster

- Added the ability to use shielded nodes in a cluster

### Initial Release
* GKE Module that supports private and public cluster settings with beta features using the `google-beta` provider.

- GKE Module that supports private and public cluster settings with beta features using the `google-beta` provider.
5 changes: 5 additions & 0 deletions vpc-native-beta/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,8 @@ variable "confidential_nodes_initial_machine_type" {
description = "Initial node_pool that is removed should get an n2d machine type even though it will get removed after creation."
default = "n2d-standard-2"
}
variable "enable_managed_prometheus" {
type = bool
description = "Boolean to enable Google Managed Prometheus on clusters"
default = false
}
6 changes: 5 additions & 1 deletion vpc-native-beta/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ resource "google_container_cluster" "cluster" {
issue_client_certificate = false
}
}

monitoring_config {
managed_prometheus {
enabled = var.enable_managed_prometheus
}
}
private_cluster_config {
enable_private_endpoint = var.enable_private_endpoint
enable_private_nodes = var.enable_private_nodes
Expand Down

0 comments on commit 483abe4

Please sign in to comment.