Apply terraform fmt for CI
This commit is contained in:
@ -33,41 +33,41 @@ organizations = [
|
||||
|
||||
|
||||
# Current organization for deploying
|
||||
org_id = "35"
|
||||
org_id = "35"
|
||||
|
||||
# Alert groups configuration
|
||||
groups = [
|
||||
{
|
||||
dashboard_alert_group_name = "System Alerts"
|
||||
folder_uid = "system"
|
||||
alert_definitions_path = "alerts/system"
|
||||
dashboard_path_if_exist = "dashboards/system"
|
||||
keep_manual_changes = false
|
||||
prevent_destroy_on_recreate = false
|
||||
alerts_on_datasources_uid = ["prometheus"]
|
||||
dashboard_alert_group_name = "System Alerts"
|
||||
folder_uid = "system"
|
||||
alert_definitions_path = "alerts/system"
|
||||
dashboard_path_if_exist = "dashboards/system"
|
||||
keep_manual_changes = false
|
||||
prevent_destroy_on_recreate = false
|
||||
alerts_on_datasources_uid = ["prometheus"]
|
||||
},
|
||||
{
|
||||
dashboard_alert_group_name = "Self monitoring"
|
||||
folder_uid = "self-monitoring"
|
||||
alert_definitions_path = "alerts/self-monitoring"
|
||||
dashboard_path_if_exist = "dashboards/self-monitoring"
|
||||
keep_manual_changes = false
|
||||
prevent_destroy_on_recreate = false
|
||||
alerts_on_datasources_uid = ["prometheus-local-1"]
|
||||
dashboard_alert_group_name = "Self monitoring"
|
||||
folder_uid = "self-monitoring"
|
||||
alert_definitions_path = "alerts/self-monitoring"
|
||||
dashboard_path_if_exist = "dashboards/self-monitoring"
|
||||
keep_manual_changes = false
|
||||
prevent_destroy_on_recreate = false
|
||||
alerts_on_datasources_uid = ["prometheus-local-1"]
|
||||
}
|
||||
]
|
||||
# Data sources configuration
|
||||
datasources = [
|
||||
{
|
||||
name = "prometheus"
|
||||
uid = "prometheus"
|
||||
type = "prometheus"
|
||||
url = "http://localhost:8481/select/0/prometheus"
|
||||
access_mode = "proxy"
|
||||
is_default = true
|
||||
basic_auth = false
|
||||
json_data = {
|
||||
timeInterval = "15s"
|
||||
name = "prometheus"
|
||||
uid = "prometheus"
|
||||
type = "prometheus"
|
||||
url = "http://localhost:8481/select/0/prometheus"
|
||||
access_mode = "proxy"
|
||||
is_default = true
|
||||
basic_auth = false
|
||||
json_data = {
|
||||
timeInterval = "15s"
|
||||
}
|
||||
keep_manual_changes = false
|
||||
prevent_destroy_on_recreate = false
|
||||
@ -76,79 +76,79 @@ datasources = [
|
||||
|
||||
# Notification policies configuration
|
||||
notification_policies = [
|
||||
{
|
||||
contact_point = "infra-alerts-critical"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "disaster"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-critical"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "critical"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-informational"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "warning"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-informational"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "perfomance"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-test"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "status"
|
||||
match = "="
|
||||
value = "test"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
contact_point = "infra-alerts-critical"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "disaster"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-critical"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "critical"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-informational"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "warning"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-informational"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "severity"
|
||||
match = "="
|
||||
value = "perfomance"
|
||||
},
|
||||
{
|
||||
label = "team"
|
||||
match = "="
|
||||
value = "infra"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
contact_point = "infra-alerts-test"
|
||||
continue = true
|
||||
matchers = [
|
||||
{
|
||||
label = "status"
|
||||
match = "="
|
||||
value = "test"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user