Skip to content

Commit 10997cc

Browse files
authored
Merge pull request #73 from redis-field-engineering/ops-dashboards
Ops dashboards
2 parents ebe981d + bb52ce8 commit 10997cc

File tree

9 files changed

+22272
-2
lines changed

9 files changed

+22272
-2
lines changed

grafana_v2/dashboards/grafana_v9-11/cloud/ops/active-active.json

Lines changed: 1619 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/cluster.json

Lines changed: 3234 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/database.json

Lines changed: 4633 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/latency.json

Lines changed: 2589 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/node.json

Lines changed: 3670 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/qps.json

Lines changed: 3567 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/dashboards/grafana_v9-11/cloud/ops/shard.json

Lines changed: 2943 additions & 0 deletions
Large diffs are not rendered by default.

grafana_v2/kickstart_v2/terraform/gcp/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ provider "google" {
3232

3333
# Data source to fetch Redis Cloud database information
3434
data "rediscloud_database" "redis_db" {
35+
count = var.existing_subnet_id == null ? 1 : 0
3536
subscription_id = var.subscription_id
3637
name = var.db_name
3738
}
@@ -46,7 +47,7 @@ locals {
4647
# Extract FQDN from Redis Cloud database private_endpoint
4748
# Format: redis-18738.internal.c41372.us-central1-mz.gcp.cloud.rlrcp.com:18738
4849
# Extract: internal.c41372.us-central1-mz.gcp.cloud.rlrcp.com
49-
redis_db_primary_fqdn = regex("^[^.]+\\.(.+):\\d+$", data.rediscloud_database.redis_db.private_endpoint)[0]
50+
redis_db_primary_fqdn = var.redis_fqdn != null ? var.redis_fqdn : regex("^[^.]+\\.(.+):\\d+$", data.rediscloud_database.redis_db[0].private_endpoint)[0]
5051
}
5152

5253
# Conditionally create VPC only if not using existing one
@@ -120,8 +121,9 @@ resource "google_compute_firewall" "redispeer_allow_egress" {
120121
}
121122

122123

124+
# VPC Peering for regular (non-Active-Active) subscriptions
123125
resource "rediscloud_subscription_peering" "redispeer-sub-vpc-peering" {
124-
count = var.existing_vpc_id == null ? 1 : 0
126+
count = var.existing_vpc_id == null ? 1 : 0
125127
subscription_id = var.subscription_id
126128
provider_name="GCP"
127129
gcp_project_id = var.gcp_project

grafana_v2/kickstart_v2/terraform/gcp/variables.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,17 @@ variable "grafana_password" {
9898
description = "The Grafana admin password"
9999
default = "admin"
100100
sensitive = true
101+
}
102+
103+
variable "subscription_name" {
104+
type = string
105+
description = "The name of the Redis Cloud subscription"
106+
default = ""
107+
108+
}
109+
110+
variable "redis_fqdn" {
111+
type = string
112+
description = "The FQDN of the Redis Cloud database"
113+
default = null
101114
}

0 commit comments

Comments
 (0)