Skip to content

Commit 063f6de

Browse files
author
andreaxia
committed
update indent
1 parent e683e8b commit 063f6de

File tree

1 file changed

+68
-68
lines changed

1 file changed

+68
-68
lines changed

examples/tencentcloud-tmp/main.tf

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
2626
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
2727
kind = "cvm-http-sd-exporter"
2828
content = jsonencode({
29-
"kind": "cvm-http-sd-exporter",
30-
"spec": {
31-
"job": <<-EOT
29+
"kind": "cvm-http-sd-exporter",
30+
"spec": {
31+
"job": <<-EOT
3232
job_name: example-job-name
3333
metrics_path: /metrics
3434
cvm_sd_configs:
@@ -49,18 +49,18 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
4949
- source_labels: [__meta_cvm_region]
5050
target_label: region
5151
action: replace
52-
EOT
53-
}
54-
})
55-
kube_type = 3
52+
EOT
53+
}
54+
})
55+
kube_type = 3
5656
cluster_id = ""
5757
}
5858

5959
#Integration Center: Cloud Monitor
6060
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationCloudMonitor" {
61-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
62-
kind = "qcloud-exporter"
63-
content = jsonencode({
61+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
62+
kind = "qcloud-exporter"
63+
content = jsonencode({
6464
"name": "qcloud-exporter-example",
6565
"kind": "qcloud-exporter",
6666
"spec": {
@@ -99,15 +99,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
9999
}
100100
}
101101
})
102-
cluster_id = ""
103-
kube_type = 3
102+
cluster_id = ""
103+
kube_type = 3
104104
}
105105

106106
#Integration Center: Health Check
107107
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationBlackbox" {
108-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
109-
kind = "blackbox-exporter"
110-
content = jsonencode({
108+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
109+
kind = "blackbox-exporter"
110+
content = jsonencode({
111111
"name": "blackbox-exporter-example",
112112
"kind": "blackbox-exporter",
113113
"spec": {
@@ -125,15 +125,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
125125
}
126126
}
127127
})
128-
cluster_id = ""
129-
kube_type = 3
128+
cluster_id = ""
129+
kube_type = 3
130130
}
131131

132132
#Integration Center: Consul
133133
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationConsul" {
134-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
135-
kind = "consul-exporter"
136-
content = jsonencode({
134+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
135+
kind = "consul-exporter"
136+
content = jsonencode({
137137
"name": "consul-exporter-example",
138138
"kind": "consul-exporter",
139139
"spec": {
@@ -145,15 +145,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
145145
}
146146
}
147147
})
148-
cluster_id = ""
149-
kube_type = 3
148+
cluster_id = ""
149+
kube_type = 3
150150
}
151151

152152
#Integration Center: ElasticSearch
153153
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationEs" {
154-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
155-
kind = "es-exporter"
156-
content = jsonencode({
154+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
155+
kind = "es-exporter"
156+
content = jsonencode({
157157
"name": "ex-exporter-example",
158158
"kind": "es-exporter",
159159
"spec": {
@@ -174,15 +174,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
174174
}
175175
}
176176
})
177-
cluster_id = ""
178-
kube_type = 3
177+
cluster_id = ""
178+
kube_type = 3
179179
}
180180

181181
#Integration Center: Kafka
182182
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationKafka" {
183-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
184-
kind = "kafka-exporter"
185-
content = jsonencode({
183+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
184+
kind = "kafka-exporter"
185+
content = jsonencode({
186186
"name": "kafka-exporter-example",
187187
"kind": "kafka-exporter",
188188
"spec": {
@@ -197,15 +197,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
197197
"exporterSpec": {}
198198
}
199199
})
200-
cluster_id = ""
201-
kube_type = 3
200+
cluster_id = ""
201+
kube_type = 3
202202
}
203203

204204
#Integration Center: Memcached
205205
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationMemcached" {
206-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
207-
kind = "memcached-exporter"
208-
content = jsonencode({
206+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
207+
kind = "memcached-exporter"
208+
content = jsonencode({
209209
"name": "memcached-exporter-example",
210210
"kind": "memcached-exporter",
211211
"spec": {
@@ -217,15 +217,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
217217
}
218218
}
219219
})
220-
cluster_id = ""
221-
kube_type = 3
220+
cluster_id = ""
221+
kube_type = 3
222222
}
223223

224224
#Integration Center: MongoDB
225225
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationMongodb" {
226-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
227-
kind = "mongodb-exporter"
228-
content = jsonencode({
226+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
227+
kind = "mongodb-exporter"
228+
content = jsonencode({
229229
"name": "mongodb-exporter-example",
230230
"kind": "mongodb-exporter",
231231
"spec": {
@@ -249,15 +249,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
249249
}
250250
}
251251
})
252-
cluster_id = ""
253-
kube_type = 3
252+
cluster_id = ""
253+
kube_type = 3
254254
}
255255

256256
#Integration Center: Mysql
257257
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationMysql" {
258-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
259-
kind = "mysql-exporter"
260-
content = jsonencode({
258+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
259+
kind = "mysql-exporter"
260+
content = jsonencode({
261261
"name": "mysql-exporter",
262262
"kind": "mysql-exporter",
263263
"spec": {
@@ -271,15 +271,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
271271
}
272272
}
273273
})
274-
cluster_id = ""
275-
kube_type = 3
274+
cluster_id = ""
275+
kube_type = 3
276276
}
277277

278278
#Integration Center: Postgres
279279
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationPostgres" {
280-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
281-
kind = "postgres-exporter"
282-
content = jsonencode({
280+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
281+
kind = "postgres-exporter"
282+
content = jsonencode({
283283
"name": "postgres-exporter-example",
284284
"kind": "postgres-exporter",
285285
"spec": {
@@ -293,15 +293,15 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
293293
}
294294
}
295295
})
296-
cluster_id = ""
297-
kube_type = 3
296+
cluster_id = ""
297+
kube_type = 3
298298
}
299299

300300
#Integration Center: Redis
301301
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationRedis" {
302-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
303-
kind = "redis-exporter"
304-
content = jsonencode({
302+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
303+
kind = "redis-exporter"
304+
content = jsonencode({
305305
"name": "redis-exporter-example",
306306
"kind": "redis-exporter",
307307
"spec": {
@@ -314,26 +314,26 @@ resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegration
314314
}
315315
}
316316
})
317-
cluster_id = ""
318-
kube_type = 3
317+
cluster_id = ""
318+
kube_type = 3
319319
}
320320

321321
#Integration Center: Scrape Job
322322
resource "tencentcloud_monitor_tmp_exporter_integration" "tmpExporterIntegrationRaw" {
323-
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
324-
kind = "raw-job"
325-
content = jsonencode({
326-
"kind": "raw-job",
327-
"spec": {
328-
"job": <<-EOT
323+
instance_id = tencentcloud_monitor_tmp_instance.tmpInstance.id
324+
kind = "raw-job"
325+
content = jsonencode({
326+
"kind": "raw-job",
327+
"spec": {
328+
"job": <<-EOT
329329
job_name: example-raw-job-name
330330
metrics_path: /metrics
331331
static_configs:
332332
- targets:
333333
- 127.0.0.1:9090
334-
EOT
335-
}
336-
})
337-
cluster_id = ""
338-
kube_type = 3
334+
EOT
335+
}
336+
})
337+
cluster_id = ""
338+
kube_type = 3
339339
}

0 commit comments

Comments
 (0)