Commit c2d3cfd5 authored by John Jarvis's avatar John Jarvis

kibana redirect node for gprd.

parent 20da2970
......@@ -498,7 +498,7 @@ resource "google_compute_firewall" "monitoring" {
}
source_ranges = ["0.0.0.0/0"]
target_tags = ["performance", "prometheus"]
target_tags = ["kibana", "prometheus-app", "performance", "prometheus"]
}
module "performance" {
......@@ -551,6 +551,56 @@ module "prometheus" {
oauth2_client_secret = "${var.oauth2_client_secret_prometheus}"
}
module "prometheus-app" {
bootstrap_version = 3
subnetwork_name = "${google_compute_subnetwork.monitoring.name}"
attach_data_disk = true
data_disk_size = 1000
data_disk_type = "pd-standard"
chef_provision = "${var.chef_provision}"
chef_run_list = "\"role[${var.environment}-infra-prometheus-app]\""
dns_zone_name = "${var.dns_zone_name}"
environment = "${var.environment}"
machine_type = "${var.machine_types["monitoring"]}"
name = "prometheus-app"
project = "${var.project}"
region = "${var.region}"
source = "../../modules/google/monitoring"
tier = "inf"
persistent_disk_path = "/opt/prometheus"
gitlab_com_zone_id = "${var.gitlab_com_zone_id}"
cert_link = "projects/gitlab-production/global/sslCertificates/gprd-wildcard"
service_port = "9090"
service_path = "/graph"
oauth2_client_id = "${var.oauth2_client_id_prometheus}"
oauth2_client_secret = "${var.oauth2_client_secret_prometheus}"
}
module "kibana" {
bootstrap_version = 3
subnetwork_name = "${google_compute_subnetwork.monitoring.name}"
attach_data_disk = true
data_disk_size = 100
data_disk_type = "pd-standard"
chef_provision = "${var.chef_provision}"
chef_run_list = "\"role[${var.environment}-infra-kibana]\""
dns_zone_name = "${var.dns_zone_name}"
environment = "${var.environment}"
machine_type = "${var.machine_types["monitoring"]}"
name = "kibana"
project = "${var.project}"
region = "${var.region}"
source = "../../modules/google/monitoring"
tier = "inf"
persistent_disk_path = "/opt"
gitlab_com_zone_id = "${var.gitlab_com_zone_id}"
cert_link = "projects/gitlab-production/global/sslCertificates/gprd-wildcard"
service_port = "80"
service_path = "/login"
oauth2_client_id = "${var.oauth2_client_id_prometheus}"
oauth2_client_secret = "${var.oauth2_client_secret_prometheus}"
}
##################################
#
# Deploy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment