Terraform module which creates monitor of Prometheus on Alibaba Cloud.
English | 简体中文
Terraform module which creates monitor of Prometheus on Alibaba Cloud.
resource "alicloud_arms_alert_contact" "default" {
alert_contact_name = "example_value"
email = "[email protected]"
}
data "alicloud_cs_managed_kubernetes_clusters" "default" {
name_regex = "tf_Acc"
}
module "example" {
source = "terraform-alicloud-modules/prometheus/alicloud"
contact_ids = [alicloud_arms_alert_contact.default.id]
cluster_id = data.alicloud_cs_managed_kubernetes_clusters.default.id
match_expressions = [{ key = "aliyun_arms_involvedObject_kind", value = "app", operator = "eq" }]
}
Name | Version |
---|---|
terraform | >= 0.13 |
alicloud | >= 1.237.0 |
Name | Version |
---|---|
alicloud | >= 1.237.0 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
alert_contact_group_name | The name of arms contract group. | string |
null |
no |
alert_duration | The duration of the alert. | string |
"1" |
no |
alert_expression | The alert expression of prometheus. | string |
"" |
no |
alert_message | The alert message of prometheus. | string |
"" |
no |
alert_name | The alert name of prometheus. | string |
"" |
no |
alert_notify_type | The notify type of prometheus. | string |
"DISPATCH_RULE" |
no |
cluster_id | The ID of the cluster. | string |
"" |
no |
contact_ids | The ids of arms contract. | list(string) |
[] |
no |
create | Whether to create resources in module. | bool |
false |
no |
create_dispatch_rule | Whether to create arms dispatch rule in module. | bool |
true |
no |
create_prometheus_alert_rule | Whether to create prometheus alert rule. | bool |
true |
no |
dispatch_rule_name | The rule name of dispatch. | string |
"" |
no |
dispatch_type | The type of dispatch. | string |
"CREATE_ALERT" |
no |
group_interval | The interval time of arms contract group. | number |
0 |
no |
group_wait_time | The waiting time of arms contract group. | number |
0 |
no |
grouping_fields | The files of arms contract group. | list(string) |
[] |
no |
match_expressions | The lable of match expresoins. | list(object({ |
[] |
no |
notification_name | The name of arms notification. | string |
"" |
no |
notify_channels | The name of arms notification. | list(string) |
[ |
no |
notify_end_time | The end time of arms notification. | string |
null |
no |
notify_start_time | The start time of arms notification. | string |
null |
no |
notify_type | The type of the alert contact. Valid values: ARMS_CONTACT: contact. ARMS_CONTACT_GROUP: contact group. | string |
"ARMS_CONTACT_GROUP" |
no |
prometheus_type | The type information of prometheus. | string |
"" |
no |
repeat_interval | The repeat interval time of arms contract group. | number |
0 |
no |
Name | Description |
---|---|
this_prometheus_alert_rule | The alert rule ID of prometheus. |
If you have any problems when using this module, please opening a provider issue and let us know.
Note: There does not recommend to open an issue on this repo.
Created and maintained by Alibaba Cloud Terraform Team([email protected])
Apache 2 Licensed. See LICENSE for full details.