-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmetrics.yaml
533 lines (533 loc) · 17.1 KB
/
metrics.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
swagger: '2.0'
schemes:
- https
x-endpoint-name: metrics
x-products: CDP
x-form-factors: private
x-cdp-releases: BETA
consumes:
- application/json
produces:
- application/json
info:
description: Cloudera Private Cloud Control Plane Monitoring Metrics Administration API
license:
name: Apache 2.0
title: Cloudera Control Plane Monitoring Metrics Administration
version: 0.9.135 (BETA)
x-audit: true
paths:
/api/v1/metrics/createRemoteWriteConfig:
post:
summary: Create remote storage configuration
description: Creates a new remote storage configuration.
operationId: createRemoteWriteConfig
x-mutating: true
parameters:
- description: CreateRemoteWriteConfigRequest request params
in: body
name: input
required: true
schema:
$ref: '#/definitions/CreateRemoteWriteConfigRequest'
responses:
200:
description: OK
schema:
$ref: '#/definitions/CreateRemoteWriteConfigResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
tags:
- remote storage configuration
/api/v1/metrics/deleteRemoteWriteConfig:
post:
summary: Delete remote storage configuration
description: Deletes a remote storage configuration.
operationId: deleteRemoteWriteConfig
x-mutating: true
parameters:
- description: DeleteRemoteWriteConfigRequest request params
in: body
name: input
required: true
schema:
$ref: '#/definitions/DeleteRemoteWriteConfigRequest'
responses:
200:
description: OK
schema:
$ref: '#/definitions/DeleteRemoteWriteConfigResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
tags:
- remote storage configuration
/api/v1/metrics/describeRemoteWriteConfig:
post:
summary: Describe remote storage configuration
description: Returns a remote storage configuration
operationId: describeRemoteWriteConfig
x-mutating: false
parameters:
- description: DescribeRemoteWriteConfigRequest request params
in: body
name: input
required: true
schema:
$ref: '#/definitions/DescribeRemoteWriteConfigRequest'
responses:
200:
description: OK
schema:
$ref: '#/definitions/DescribeRemoteWriteConfigResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
tags:
- remote storage configuration
/api/v1/metrics/listRemoteWriteConfigs:
post:
summary: List remote storage configurations
description: Returns all remote storage configurations in the given account
operationId: listRemoteWriteConfigs
x-mutating: false
parameters:
- description: ListRemoteWriteConfigsRequest request params
in: body
name: input
required: true
schema:
$ref: '#/definitions/ListRemoteWriteConfigsRequest'
responses:
200:
description: OK
schema:
$ref: '#/definitions/ListRemoteWriteConfigsResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
tags:
- remote storage configuration
/api/v1/metrics/updateRemoteWriteConfig:
post:
summary: Update remote storage configuration
description: Updates remote storage configuration.
operationId: updateRemoteWriteConfig
x-mutating: true
parameters:
- description: UpdateRemoteWriteConfigRequest request params
in: body
name: input
required: true
schema:
$ref: '#/definitions/UpdateRemoteWriteConfigRequest'
responses:
200:
description: OK
schema:
$ref: '#/definitions/UpdateRemoteWriteConfigResponse'
default:
description: The default response on an error.
schema:
$ref: '#/definitions/Error'
tags:
- remote storage configuration
definitions:
Error:
type: object
description: An object returned on an error.
properties:
code:
type: string
description: The error code.
message:
type: string
description: The error message.
AuthHeader:
type: object
description: Authorization header configuration
required:
- credentials
properties:
credentials:
description: Authorization header credentials
type: string
x-sensitive: true
shouldUpdateCredentialsField:
description: Returns true if the credentials field was changed and should be updated
type: boolean
type:
default: Bearer
description: Authorization header type
type: string
AuthHeaderForResponse:
type: object
description: Authorization header configuration response
properties:
type:
default: Bearer
description: Authorization header type
type: string
BasicAuth:
type: object
description: Basic auth configuration
required:
- username
properties:
username:
description: Username for the remote storage configuration
type: string
shouldUpdatePasswordField:
description: Returns true if the password field was changed and should be updated
type: boolean
password:
description: Password for the remote storage config
type: string
x-sensitive: true
BasicAuthForResponse:
type: object
description: Basic auth configuration response
required:
- username
properties:
username:
description: Username for the remote storage configuration
type: string
CreateRemoteWriteConfigRequest:
type: object
description: Create remote write storage configuration request
required:
- remoteWriteConfig
properties:
remoteWriteConfig:
description: Remote storage configuration
$ref: '#/definitions/RemoteWriteConfigRequestForCreate'
CreateRemoteWriteConfigResponse:
type: object
description: Create remote write storage configuration response
required:
- remoteWriteConfig
properties:
remoteWriteConfig:
description: Remote storage configuration
$ref: '#/definitions/RemoteWriteConfigResponse'
DeleteRemoteWriteConfigRequest:
type: object
description: Delete remote write storage configuration request
required:
- id
properties:
id:
description: UUID of the remote storage configuration
type: string
DeleteRemoteWriteConfigResponse:
description: Delete remote write storage configuration response
type: object
DescribeRemoteWriteConfigRequest:
type: object
description: Describe remote write storage configuration request
required:
- id
properties:
id:
description: UUID of the remote storage configuration
type: string
DescribeRemoteWriteConfigResponse:
type: object
description: Describe remote write storage configuration response
required:
- remoteWriteConfig
properties:
remoteWriteConfig:
description: Remote storage configuration
$ref: '#/definitions/RemoteWriteConfigResponse'
ListRemoteWriteConfigsRequest:
type: object
description: List remote write storage configurations request
ListRemoteWriteConfigsResponse:
type: object
description: List remote write storage configurations response
required:
- remoteWriteConfigs
properties:
remoteWriteConfigs:
description: List of remote storage configs
items:
$ref: '#/definitions/RemoteWriteConfigResponse'
type: array
RemoteWriteConfigResponse:
type: object
description: Remote write storage configuration
required:
- address
- authMethod
- enabled
- id
- name
- accountId
properties:
address:
description: Address of the remote storage
type: string
authMethod:
description: Authentication method of the remote storage
type: string
enabled:
description: Enabled state of the remote storage config
type: boolean
id:
description: UUID of the remote storage configuration
type: string
name:
description: Name of the remote storage configuration
type: string
accountId:
description: Account ID which the remote storage configuration belongs to
type: string
authHeader:
$ref: '#/definitions/AuthHeaderForResponse'
description: Authorization header parameters
basicAuth:
$ref: '#/definitions/BasicAuthForResponse'
description: Basic auth parameters
customHeaders:
additionalProperties:
type: string
description: Additional custom HTTP header key-value pairs that are sent along with each remote write request.
type: object
scope:
$ref: '#/definitions/RemoteWriteConfigScopeForResponse'
description: The scope of this remote storage config
integrationConfig:
$ref: '#/definitions/IntegrationConfigForResponse'
description: The configuration for public cloud metric integration
writeRelabelConfigs:
description: Relabeling and filtering rules to be applied to the remote write config
type: string
tls:
$ref: '#/definitions/TlsConfigForResponse'
description: Tls configuration parameters
RemoteWriteConfigRequestForCreate:
type: object
description: Remote write storage configuration request for create
required:
- address
- authMethod
- enabled
- name
- scope
properties:
address:
description: Address of the remote storage
type: string
authMethod:
description: Authentication method of the remote storage
type: string
enabled:
description: Enabled state of the remote storage config
type: boolean
name:
description: Name of the remote storage configuration
type: string
scope:
$ref: '#/definitions/RemoteWriteConfigScope'
description: The scope of this remote storage config
authHeader:
$ref: '#/definitions/AuthHeader'
description: Authorization header parameters
basicAuth:
$ref: '#/definitions/BasicAuth'
description: Basic auth parameters
customHeaders:
additionalProperties:
type: string
description: Additional custom HTTP header key-value pairs that are sent along with each remote write request.
type: object
integrationConfig:
$ref: '#/definitions/IntegrationConfig'
description: The configuration for public cloud metric integration
writeRelabelConfigs:
description: Relabeling and filtering rules to be applied to the remote write config
type: string
tls:
$ref: '#/definitions/TlsConfig'
description: Tls configuration parameters
RemoteWriteConfigScope:
type: object
description: Remote write storage configuration scope
required:
- environmentCrn
- type
properties:
environmentCrn:
description: Environment CRN filter for the scope. Empty means no filtering
type: string
type:
description: 'The type of this remote storage config. Allowed values: all | controlplane | environments'
type: string
RemoteWriteConfigScopeForResponse:
type: object
description: Remote write storage configuration scope for response
required:
- environmentCrn
- type
properties:
environmentCrn:
description: Environment CRN filter for the scope. Empty means no filtering
type: string
type:
description: 'The type of this remote storage configuration. Allowed values: all | controlplane | environments'
type: string
RemoteWriteStorageRequestForUpdate:
type: object
description: Remote write storage configuration request for update
required:
- address
- authMethod
- enabled
- id
- name
- scope
properties:
address:
description: Address of the remote storage
type: string
authMethod:
description: Authentication method of the remote storage
type: string
enabled:
description: Enabled state of the remote storage config
type: boolean
id:
description: UUID of the remote storage configuration
type: string
name:
description: Name of the remote storage configuration
type: string
scope:
$ref: '#/definitions/RemoteWriteConfigScope'
description: The scope of this remote storage config
authHeader:
$ref: '#/definitions/AuthHeader'
description: Authorization header parameters
basicAuth:
$ref: '#/definitions/BasicAuth'
description: Basic auth parameters
customHeaders:
additionalProperties:
type: string
description: Additional custom HTTP header key-value pairs that are sent along with each remote write request.
type: object
integrationConfig:
$ref: '#/definitions/IntegrationConfig'
description: The configuration for public cloud metric integration
writeRelabelConfigs:
description: Relabeling and filtering rules to be applied to the remote write config
type: string
tls:
$ref: '#/definitions/TlsConfig'
description: Tls configuration parameters
TlsConfig:
type: object
description: Tls configuration
required:
- insecureSkipVerify
properties:
insecureSkipVerify:
description: Skip tls verification
type: boolean
serverName:
description: Tls ServerName extension to indicate the name of the server.
type: string
clientCertificate:
description: Certificate for client cert authentication to the server
type: string
x-sensitive: true
clientKey:
description: Key for client cert authentication to the server
type: string
x-sensitive: true
shouldUpdateClientKeyField:
description: Returns true if the ClientKey field was changed and should be updated
type: boolean
TlsConfigForResponse:
type: object
description: Tls configuration for response
required:
- insecureSkipVerify
- isClientKeyFieldEmpty
properties:
insecureSkipVerify:
description: Skip tls verification
type: boolean
isClientKeyFieldEmpty:
description: Returns true if the ClientKey field is empty
type: boolean
serverName:
description: Tls ServerName extension to indicate the name of the server.
type: string
clientCertificate:
description: Certificate for client cert authentication to the server
type: string
x-sensitive: true
IntegrationConfig:
type: object
description: The configuration for public cloud metric integration
required:
- requestSignerCertificate
properties:
requestSignerCertificate:
description: The public cloud side certificate to use for request signing
$ref: '#/definitions/RequestSignerCertificate'
IntegrationConfigForResponse:
type: object
description: The configuration for public cloud metric integration
required:
- requestSignerCertificate
properties:
requestSignerCertificate:
description: The public cloud side certificate to use for request signing
$ref: '#/definitions/RequestSignerCertificateForResponse'
RequestSignerCertificate:
type: object
description: The configuration for public cloud metric integration
properties:
cdpAccessKeyId:
description: The key id of the public cloud certificate
type: string
privateKey:
description: The key information of the certificate
type: string
RequestSignerCertificateForResponse:
type: object
description: The configuration for public cloud metric integration
properties:
cdpAccessKeyId:
description: The key id of the public cloud certificate
type: string
privateKey:
description: The key information of the certificate
type: string
UpdateRemoteWriteConfigRequest:
type: object
description: Update remote write storage configuration request
required:
- remoteWriteConfig
properties:
remoteWriteConfig:
description: Remote storage configuration
$ref: '#/definitions/RemoteWriteStorageRequestForUpdate'
UpdateRemoteWriteConfigResponse:
type: object
description: Update remote write storage configuration response
required:
- remoteWriteConfig
properties:
remoteWriteConfig:
description: Remote storage configuration
$ref: '#/definitions/RemoteWriteConfigResponse'