Skip to content

Commit bb9e534

Browse files
authored
Merge pull request #1630 from tencentcloudstack/feat/update_tmp_exporter_doc
update exporter doc
2 parents b30d2f2 + 9f717b0 commit bb9e534

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

.changelog/1630.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_monitor_tmp_exporter_integration: update doc to introduce how to upgrade exporter version
3+
```

tencentcloud/resource_tc_monitor_tmp_exporter_integration.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
/*
22
Provides a resource to create a monitor tmpExporterIntegration
33
4+
~> **NOTE:** If you only want to upgrade the exporter version with same config, you can set `version` under `instanceSpec` with any value to trigger the change.
5+
6+
47
Example Usage
58
9+
Use blackbox-exporter
10+
611
```hcl
712
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration" {
813
instance_id = "prom-dko9d0nu"
@@ -12,6 +17,39 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
1217
cluster_id = "cls-bmuaukfu"
1318
}
1419
```
20+
21+
Use es-exporter
22+
23+
```
24+
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationEs" {
25+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
26+
kind = "es-exporter"
27+
content = jsonencode({
28+
"name": "ex-exporter-example",
29+
"kind": "es-exporter",
30+
"spec": {
31+
"instanceSpec": {
32+
"url": "http://127.0.0.1:9123",
33+
"labels": {
34+
"instance": "es-abcd"
35+
},
36+
"version": "1.70.1",
37+
"user": "fugiat Duis minim",
38+
"password": "exercitation cillum velit"
39+
},
40+
"exporterSpec": {
41+
"all": true,
42+
"indicesSettings": false,
43+
"snapshots": false,
44+
"indices": true,
45+
"shards": false
46+
}
47+
}
48+
})
49+
cluster_id = ""
50+
kube_type = 3
51+
}
52+
```
1553
*/
1654
package tencentcloud
1755

website/docs/r/monitor_tmp_exporter_integration.html.markdown

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ description: |-
1111

1212
Provides a resource to create a monitor tmpExporterIntegration
1313

14+
~> **NOTE:** If you only want to upgrade the exporter version with same config, you can set `version` under `instanceSpec` with any value to trigger the change.
15+
1416
## Example Usage
1517

18+
Use blackbox-exporter
19+
1620
```hcl
1721
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration" {
1822
instance_id = "prom-dko9d0nu"
@@ -23,6 +27,39 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
2327
}
2428
```
2529

30+
Use es-exporter
31+
32+
```hcl
33+
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationEs" {
34+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
35+
kind = "es-exporter"
36+
content = jsonencode({
37+
"name" : "ex-exporter-example",
38+
"kind" : "es-exporter",
39+
"spec" : {
40+
"instanceSpec" : {
41+
"url" : "http://127.0.0.1:9123",
42+
"labels" : {
43+
"instance" : "es-abcd"
44+
},
45+
"version" : "1.70.1",
46+
"user" : "fugiat Duis minim",
47+
"password" : "exercitation cillum velit"
48+
},
49+
"exporterSpec" : {
50+
"all" : true,
51+
"indicesSettings" : false,
52+
"snapshots" : false,
53+
"indices" : true,
54+
"shards" : false
55+
}
56+
}
57+
})
58+
cluster_id = ""
59+
kube_type = 3
60+
}
61+
```
62+
2663
## Argument Reference
2764

2865
The following arguments are supported:

0 commit comments

Comments
 (0)