Skip to content

Commit

Permalink
Merge pull request #64 from SumoLogic/missingData-bugFix
Browse files Browse the repository at this point in the history
Updating missing data monitor conditions
  • Loading branch information
himsharma01 authored Dec 19, 2022
2 parents 727ec9a + f0e0604 commit ba0168f
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "sumologic_monitor" "tf_monitor" {

trigger_conditions {
dynamic "logs_static_condition" {
for_each = toset(var.monitor_monitor_type == "Logs" ? ["1"] : [])
for_each = toset(var.monitor_monitor_type == "Logs" && (local.hasLogsCriticalAlert||local.hasLogsWarningAlert) ? ["1"] : [])
content {
dynamic "critical" {
for_each = local.hasLogsCriticalAlert ? ["1"] : []
Expand Down Expand Up @@ -94,7 +94,7 @@ resource "sumologic_monitor" "tf_monitor" {
}
}
dynamic "metrics_static_condition" {
for_each = toset(var.monitor_monitor_type == "Metrics" ? ["1"] : [])
for_each = toset(var.monitor_monitor_type == "Metrics"&&(local.hasMetricsCriticalAlert||local.hasMetricsWarningAlert) ? ["1"] : [])
content {
dynamic "critical" {
for_each = local.hasMetricsCriticalAlert ? ["1"] : []
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/ActiveMQ/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/ApacheTomcat/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Cassandra/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Couchbase/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Elasticsearch/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/IIS/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Kafka/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/MariaDB/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Memcached/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/MongoDB/MongoDB.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module "MongoDB-MissingPrimary" {
]
}
module "MongoDB-InstanceDown" {
source = "SumoLogic/sumo-logic-monitor/sumologic"
source = "../../"
#version = "{revision}"
monitor_name = "MongoDB - Instance Down"
monitor_description = "This alert fires when we detect that the MongoDB instance is down."
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/MongoDB/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Oracle/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/RabbitMQ/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/SQLServer/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/SquidProxy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/Varnish/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/apache/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/haproxy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/host_process_metrics/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/http_response/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/kubernetes/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/mysql/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/nginx-ingress/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/nginx-plus-ingress/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/nginx-plus/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/nginx/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/postgresql/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
2 changes: 1 addition & 1 deletion monitor_packages/redis/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.6.2"
version = "~> 2.18.0"
source = "SumoLogic/sumologic"
}
}
Expand Down

0 comments on commit ba0168f

Please sign in to comment.