Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
kube_type = 1
cluster_id = "cls-bmuaukfu"
}

```
*/
package tencentcloud

Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_monitor_tmp_tke_alert_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "tencentcloud_monitor_tmp_tke_alert_policy" "tmpAlertPolicy" {
}
}
}

```
*/
package tencentcloud

Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_monitor_tmp_tke_cluster_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "tencentcloud_monitor_tmp_tke_cluster_agent" "tmpClusterAgent" {
enable_external = false
}
}

```
*/
package tencentcloud

Expand Down
2 changes: 2 additions & 0 deletions tencentcloud/resource_tc_monitor_tmp_tke_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ resource "tencentcloud_monitor_tmp_tke_config" "foo" {
config = "apiVersion: monitoring.coreos.com/v1\nkind: PodMonitor\nmetadata:\n name: pod-monitor-001\n namespace: mynamespace\n"
}
}

```
*/
package tencentcloud

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "tencentcloud_monitor_tmp_tke_global_notification" "tmpGlobalNotificati
phone_arrive_notice = false
}
}

```
*/
package tencentcloud

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "resourceTencentCloudMonitorTmpTkeRecordRuleYaml" "foo" {
record: 'apiserver_request:burnrate1d'
EOT
}

```
*/
package tencentcloud

Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_monitor_tmp_tke_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "tencentcloud_monitor_tmp_tke_template" "template" {
}
}
}

```
*/
package tencentcloud

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "tencentcloud_monitor_tmp_tke_template_attachment" "temp_attachment" {
instance_id = "prom-xxx"
}
}

```
*/
package tencentcloud

Expand Down
10 changes: 9 additions & 1 deletion website/docs/r/monitor_tmp_exporter_integration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ Provides a resource to create a monitor tmpExporterIntegration

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration" {
instance_id = "prom-dko9d0nu"
kind = "blackbox-exporter"
content = "{\"name\":\"test\",\"kind\":\"blackbox-exporter\",\"spec\":{\"instanceSpec\":{\"module\":\"http_get\",\"urls\":[\"xx\"]}}}"
kube_type = 1
cluster_id = "cls-bmuaukfu"
}
```

## Argument Reference

Expand Down
32 changes: 31 additions & 1 deletion website/docs/r/monitor_tmp_tke_alert_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,37 @@ Provides a resource to create a tke tmpAlertPolicy

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_alert_policy" "tmpAlertPolicy" {
instance_id = "xxxxx"
alert_rule {
name = "xxx"
rules {
name = "xx"
rule = "xx"
template = "xx"
for = "xx"
labels {
name = "xx"
value = "xx"
}
annotations {
name = "xx"
value = "xx"
}
}
notification {
type = "xx"
enabled = true
alert_manager {
url = "xx"
cluster_id = "xx"
cluster_type = "xx"
}
}
}
}
```

## Argument Reference

Expand Down
13 changes: 12 additions & 1 deletion website/docs/r/monitor_tmp_tke_cluster_agent.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ Provides a resource to create a tmp tke cluster agent

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_cluster_agent" "tmpClusterAgent" {
instance_id = "prom-xxx"

agents {
region = "ap-xxx"
cluster_type = "eks"
cluster_id = "cls-xxx"
enable_external = false
}
}
```

## Argument Reference

Expand Down
23 changes: 22 additions & 1 deletion website/docs/r/monitor_tmp_tke_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,28 @@ Provides a resource to create a tke tmpPrometheusConfig

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_config" "foo" {
instance_id = "xxx"
cluster_type = "xxx"
cluster_id = "xxx"

raw_jobs {
name = "raw_jobs_001"
config = "your config for raw_jobs_001\n"
}

service_monitors {
name = "kube-system/service-monitor-001" # name with default namespace kube-system
config = "apiVersion: monitoring.coreos.com/v1\nkind: ServiceMonitor\nmetadata:\n name: service-monitor-001\n namespace: kube-system\n"
}

pod_monitors {
name = "mynamespace/pod-monitor-001" # name with the specified namespace
config = "apiVersion: monitoring.coreos.com/v1\nkind: PodMonitor\nmetadata:\n name: pod-monitor-001\n namespace: mynamespace\n"
}
}
```

## Argument Reference

Expand Down
26 changes: 25 additions & 1 deletion website/docs/r/monitor_tmp_tke_global_notification.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,31 @@ Provides a resource to create a tmp tke global notification

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_global_notification" "tmpGlobalNotification" {
instance_id = xxx
notification {
enabled = true
type = "webhook"
web_hook = ""
alert_manager = {
url = ""
cluster_type = ""
cluster_id = ""
}
repeat_interval = ""
time_range_start = ""
time_range_end = ""
notify_way = ["SMS", "EMAIL"]
receiver_groups = [""]
phone_notify_order = []
phone_circle_times = xxx
phone_inner_interval = xxx
phone_circle_interval = xxx
phone_arrive_notice = false
}
}
```

## Argument Reference

Expand Down
20 changes: 19 additions & 1 deletion website/docs/r/monitor_tmp_tke_record_rule_yaml.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@ Provides a resource to create a tke tmpRecordRule

## Example Usage


```hcl
resource "resourceTencentCloudMonitorTmpTkeRecordRuleYaml" "foo" {
instance_id = ""
content = <<-EOT
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: example-record
spec:
groups:
- name: kube-apiserver.rules
rules:
- expr: sum(metrics_test)
labels:
verb: read
record: 'apiserver_request:burnrate1d'
EOT
}
```

## Argument Reference

Expand Down
14 changes: 13 additions & 1 deletion website/docs/r/monitor_tmp_tke_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@ Provides a resource to create a tmp tke template

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_template" "template" {
template {
name = "test"
level = "cluster"
describe = "template"
service_monitors {
name = "test"
config = "xxxxx"
}
}
}
```

## Argument Reference

Expand Down
11 changes: 10 additions & 1 deletion website/docs/r/monitor_tmp_tke_template_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ Provides a resource to create a tmp tke template attachment

## Example Usage


```hcl
resource "tencentcloud_monitor_tmp_tke_template_attachment" "temp_attachment" {
template_id = "temp-xxx"

targets {
region = "ap-xxx"
instance_id = "prom-xxx"
}
}
```

## Argument Reference

Expand Down