Skip to content

AWS generic recommended opensearch cloudwatch metrics in terraform module

License

Notifications You must be signed in to change notification settings

zoitech/terraform-aws-opensearch-cloudwatch-metrics

Repository files navigation

aws-generic-recommended-opensearch-cloudwatch-metrics

A Terraform module that creates the best recommended opensearch cloudwatch metrics according to AWS, the source docummentaion is here Recommended CloudWatch alarms for Amazon OpenSearch Service

Description

This module creates AWS Cloudwatch Metric Alarms and an alarm action in case the alarm is triggered. Right now the alarm action needs to be the same for all metrics.

Known Issues

  • None so far.

Usage

module "cloudwatch-amazing-name-here" {
  # example
  source                     = "git::https://github.com/zoitech/terraform-aws-opensearch-cloudwatch-metrics.git"
  
  
  alarm_actions = ["lambda-arn"]
  number_of_nodes_in_cluster = 3
}

Requirements

Name Version
terraform >= 0.12
aws >=3.0.0

Providers

Name Version
aws >=3.0.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_metric_alarm.automated-snapshot-failure resource
aws_cloudwatch_metric_alarm.cluster-index-writes-blocked resource
aws_cloudwatch_metric_alarm.cluster-status-red resource
aws_cloudwatch_metric_alarm.cluster-status-yellow resource
aws_cloudwatch_metric_alarm.cpu-utilization resource
aws_cloudwatch_metric_alarm.free-storage-space resource
aws_cloudwatch_metric_alarm.jvm-memory-pressure resource
aws_cloudwatch_metric_alarm.kmskeyerror resource
aws_cloudwatch_metric_alarm.kmskeyinaccessible resource
aws_cloudwatch_metric_alarm.master-reachable-from-node resource
aws_cloudwatch_metric_alarm.mastercpuutilization resource
aws_cloudwatch_metric_alarm.masterjvmmemorypressure resource
aws_cloudwatch_metric_alarm.masteroldjvmmemorypressure resource
aws_cloudwatch_metric_alarm.number-of-nodes-in-cluster resource
aws_cloudwatch_metric_alarm.old-jvm-memory-pressure resource
aws_cloudwatch_metric_alarm.shardsactive resource
aws_cloudwatch_metric_alarm.threadpool-search-queue-average resource
aws_cloudwatch_metric_alarm.threadpool-search-queue-maximum resource
aws_cloudwatch_metric_alarm.threadpool-search-rejected resource
aws_cloudwatch_metric_alarm.threadpool-write-queue resource
aws_cloudwatch_metric_alarm.threadpool-write-rejected resource
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
alarm_actions The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). list(string) [] no
domain_name n/a string n/a yes
number_of_nodes_in_cluster n/a number n/a yes

Outputs

No outputs.

About

AWS generic recommended opensearch cloudwatch metrics in terraform module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages