Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrape custom metrics #1452

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions terraform/aks/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module "api_application" {
web_external_hostnames = var.gov_uk_host_names
web_port = 8080
enable_logit = var.enable_logit

enable_prometheus_monitoring = var.enable_prometheus_monitoring
}

module "application_configuration" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/aks/config/development_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"cluster": "test",
"namespace": "git-development",
"enable_monitoring": false,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
3 changes: 2 additions & 1 deletion terraform/aks/config/production_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"redis_sku_name": "Premium",
"postgres_flexible_server_sku": "GP_Standard_D2ds_v4",
"postgres_enable_high_availability": true,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
3 changes: 2 additions & 1 deletion terraform/aks/config/test_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"cluster": "test",
"namespace": "git-test",
"enable_monitoring": false,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
5 changes: 5 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ variable "enable_logit" {
default = false
}

variable "enable_prometheus_monitoring" {
type = bool
default = false
}

locals {
azure_credentials = try(jsondecode(var.azure_credentials), null)
app_resource_group_name = "${var.azure_resource_prefix}-${var.service_short}-${var.config_short}-rg"
Expand Down
Loading