Skip to content

Created Kubernetes Pod to parse output of Redis --bigkeys command and submits the metrics to Google Cloud Monitoring.

Notifications You must be signed in to change notification settings

AckeeCZ/terraform-kubernetes-redis-bigkeys-monitoring

Repository files navigation

Terraform Google Cloud Redis Big Keys monitoring

Terraform module to create pod which runs redis-cli --bigkeys, parse the output and push it into Google Cloud Monitoring. It also contains dashboard kept as kubernetes secret, which could be parsed by Grafana.

Requirements

No requirements.

Providers

Name Version
google n/a
grafana n/a
kubernetes n/a

Modules

No modules.

Resources

Name Type
google_project_iam_member.sa resource
google_service_account.sa resource
google_service_account_iam_member.sa_allow_iam_workload_identity resource
grafana_dashboard.grafana_redis_bigkeys resource
kubernetes_deployment.redis_bigkeys_monitoring resource
kubernetes_service_account.sa resource

Inputs

Name Description Type Default Required
cluster_ca_certificate Public CA certificate that is the root of trust for the GKE K8s cluster string n/a yes
cluster_endpoint Cluster control plane endpoint string n/a yes
cluster_token Cluster master token, keep always secret! string n/a yes
docker_tag Tag of image ackee/redis_bigkeys used for monitoring string "latest" no
gke_workload_identity Add resources need for GKE workload identity setup bool true no
grafana_folder_id ID of Grafana folder where we store dashboard number 1 no
include_dashboard Include dashboard as k8s secret bool true no
namespace Namespace for monitoring deployment containing pod runtime string n/a yes
project Project ID any n/a yes
redis_instances Map of redis instances with items in containing fields instance_hostname and instance_database, key is instance_name map(map(string)) {} no

Outputs

No outputs.

About

Created Kubernetes Pod to parse output of Redis --bigkeys command and submits the metrics to Google Cloud Monitoring.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published