forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetadata.yaml
More file actions
571 lines (564 loc) · 16.9 KB
/
metadata.yaml
File metadata and controls
571 lines (564 loc) · 16.9 KB
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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
display_name: PostgreSQL Receiver
type: postgresql
description: |
This receiver queries the PostgreSQL [statistics collector](https://www.postgresql.org/docs/13/monitoring-stats.html).
status:
class: receiver
stability:
beta: [metrics]
development: [logs]
distributions: [contrib]
codeowners:
active: [antonblock, ishleenk17, Caleb-Hurshman]
seeking_new: true
emeritus: [djaglowski]
resource_attributes:
postgresql.database.name:
description: The name of the database.
enabled: true
type: string
postgresql.index.name:
description: The name of the index on a table.
enabled: true
type: string
postgresql.schema.name:
description: The schema name.
enabled: true
type: string
postgresql.table.name:
description: The table name.
enabled: true
type: string
service.instance.id:
description: A unique identifier of the PostgreSQL instance in the format host:port (defaults to 'unknown:5432' in case of error in generating this value).
enabled: true
type: string
attributes:
bg_buffer_source:
description: The source of a buffer write.
type: string
enum:
- backend
- backend_fsync
- checkpoints
- bgwriter
name_override: source
bg_checkpoint_type:
description: The type of checkpoint state.
type: string
enum:
- requested
- scheduled
name_override: type
bg_duration_type:
description: The type of time spent during the checkpoint.
type: string
enum:
- sync
- write
name_override: type
db.namespace:
description: The namespace or schema of the database where the query is executed.
type: string
db.query.text:
description: The text of the database query being executed.
type: string
db.system.name:
description: The database management system (DBMS) product as identified by the client instrumentation.
type: string
enum: [postgresql]
function:
description: The name of the function.
type: string
lock_type:
description: Type of the lockable object.
type: string
mode:
description: Name of the lock mode held or desired by the process.
type: string
network.peer.address:
description: IP address of the client connected to this backend.
type: string
network.peer.port:
description: TCP port number that the client is using for communication with this backend.
type: int
operation:
description: The database operation.
type: string
enum: [ins, upd, del, hot_upd]
postgresql.application_name:
description: Name of the application that is connected to this backend.
type: string
postgresql.calls:
description: Number of times the statement was executed, reported in delta value.
type: int
postgresql.client_hostname:
description: Host name of the connected client, as reported by a reverse DNS lookup of client_addr.
type: string
postgresql.pid:
description: Process ID of this backend.
type: int
postgresql.query_id:
description: Identifier of this backend's most recent query. If state is active this field shows the identifier of the currently executing query. In all other states, it shows the identifier of last query that was executed.
type: string
postgresql.query_plan:
description: The execution plan used by PostgreSQL for the query.
type: string
postgresql.query_start:
description: Time when the currently active query was started, or if state is not active, when the last query was started.
type: string
postgresql.queryid:
description: Hash code to identify identical normalized queries.
type: string
postgresql.rolname:
description: The name of the PostgreSQL role that executed the query.
type: string
postgresql.rows:
description: Total number of rows retrieved or affected by the statement, reported in delta value.
type: int
postgresql.shared_blks_dirtied:
description: Total number of shared blocks dirtied by the statement, reported in delta value.
type: int
postgresql.shared_blks_hit:
description: Total number of shared block cache hits by the statement, reported in delta value.
type: int
postgresql.shared_blks_read:
description: Total number of shared blocks read by the statement, reported in delta value.
type: int
postgresql.shared_blks_written:
description: Total number of shared blocks written by the statement, reported in delta value.
type: int
postgresql.state:
description: Current overall state of this backend
type: string
postgresql.temp_blks_read:
description: Total number of temp blocks read by the statement, reported in delta value.
type: int
postgresql.temp_blks_written:
description: Total number of temp blocks written by the statement, reported in delta value.
type: int
postgresql.total_exec_time:
description: Total time spent executing the statement, in delta milliseconds.
type: double
postgresql.total_plan_time:
description: Total time spent planning the statement, in delta milliseconds.
type: double
postgresql.wait_event:
description: Wait event name if backend is currently waiting, otherwise NULL.
type: string
postgresql.wait_event_type:
description: The type of event for which the backend is waiting, if any; otherwise NULL.
type: string
relation:
description: OID of the relation targeted by the lock, or null if the target is not a relation or part of a relation.
type: string
replication_client:
description: The IP address of the client connected to this backend. If this field is "unix", it indicates either that the client is connected via a Unix socket.
type: string
source:
description: The block read source type.
type: string
enum:
- heap_read
- heap_hit
- idx_read
- idx_hit
- toast_read
- toast_hit
- tidx_read
- tidx_hit
state:
description: The tuple (row) state.
type: string
enum: [dead, live]
user.name:
description: Name of the user logged into this backend.
type: string
wal_operation_lag:
name_override: operation
description: The operation which is responsible for the lag.
type: string
enum: [flush, replay, write]
events:
db.server.query_sample:
enabled: false
description: query sample
attributes:
- db.system.name
- db.namespace
- db.query.text
- user.name
- postgresql.state
- postgresql.pid
- postgresql.application_name
- network.peer.address
- network.peer.port
- postgresql.client_hostname
- postgresql.query_start
- postgresql.wait_event
- postgresql.wait_event_type
- postgresql.query_id
- postgresql.total_exec_time
db.server.top_query:
enabled: false
description: top query
attributes:
- db.system.name
- db.namespace
- db.query.text
- postgresql.calls
- postgresql.rows
- postgresql.shared_blks_dirtied
- postgresql.shared_blks_hit
- postgresql.shared_blks_read
- postgresql.shared_blks_written
- postgresql.temp_blks_read
- postgresql.temp_blks_written
- postgresql.queryid
- postgresql.rolname
- postgresql.total_exec_time
- postgresql.total_plan_time
- postgresql.query_plan
metrics:
postgresql.backends:
enabled: true
description: The number of backends.
stability: development
unit: "1"
sum:
value_type: int
monotonic: false
aggregation_temporality: cumulative
postgresql.bgwriter.buffers.allocated:
description: Number of buffers allocated.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
unit: "{buffers}"
postgresql.bgwriter.buffers.writes:
attributes:
- bg_buffer_source
description: Number of buffers written.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
unit: "{buffers}"
postgresql.bgwriter.checkpoint.count:
attributes:
- bg_checkpoint_type
description: The number of checkpoints performed.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
unit: "{checkpoints}"
postgresql.bgwriter.duration:
attributes:
- bg_duration_type
description: Total time spent writing and syncing files to disk by checkpoints.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: double
unit: ms
postgresql.bgwriter.maxwritten:
description: Number of times the background writer stopped a cleaning scan because it had written too many buffers.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
unit: "1"
postgresql.blks_hit:
enabled: false
description: Number of times disk blocks were found already in the buffer cache.
stability: development
unit: "{blks_hit}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.blks_read:
enabled: false
description: Number of disk blocks read in this database.
stability: development
unit: "{blks_read}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.blocks_read:
enabled: true
description: The number of blocks read.
stability: development
unit: "1"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
attributes: [source]
postgresql.commits:
enabled: true
description: The number of commits.
stability: development
unit: "1"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.connection.max:
enabled: true
description: Configured maximum number of client connections allowed
stability: development
unit: "{connections}"
gauge:
value_type: int
postgresql.database.count:
description: Number of user databases.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: false
value_type: int
unit: "{databases}"
postgresql.database.locks:
enabled: false
description: The number of database locks.
stability: development
unit: "{lock}"
gauge:
value_type: int
attributes: [relation, mode, lock_type]
postgresql.db_size:
enabled: true
description: The database disk usage.
stability: development
unit: By
sum:
value_type: int
monotonic: false
aggregation_temporality: cumulative
postgresql.deadlocks:
enabled: false
description: The number of deadlocks.
stability: development
unit: "{deadlock}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.function.calls:
enabled: false
description: The number of calls made to a function. Requires `track_functions=pl|all` in Postgres config.
stability: development
unit: "{call}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
attributes: [function]
postgresql.index.scans:
description: The number of index scans on a table.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
unit: "{scans}"
postgresql.index.size:
description: The size of the index on disk.
stability: development
enabled: true
gauge:
value_type: int
unit: "By"
postgresql.operations:
enabled: true
description: The number of db row operations.
stability: development
unit: "1"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
attributes: [operation]
postgresql.replication.data_delay:
attributes: [replication_client]
description: The amount of data delayed in replication.
stability: development
enabled: true
gauge:
value_type: int
unit: By
postgresql.rollbacks:
enabled: true
description: The number of rollbacks.
stability: development
unit: "1"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.rows:
enabled: true
description: The number of rows in the database.
stability: development
unit: "1"
sum:
value_type: int
monotonic: false
aggregation_temporality: cumulative
attributes: [state]
postgresql.sequential_scans:
enabled: false
description: The number of sequential scans.
stability: development
unit: "{sequential_scan}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.table.count:
description: Number of user tables in a database.
stability: development
enabled: true
sum:
aggregation_temporality: cumulative
monotonic: false
value_type: int
unit: "{table}"
postgresql.table.size:
description: Disk space used by a table.
stability: development
enabled: true
unit: By
sum:
aggregation_temporality: cumulative
monotonic: false
value_type: int
postgresql.table.vacuum.count:
description: Number of times a table has manually been vacuumed.
stability: development
enabled: true
unit: "{vacuum}"
sum:
aggregation_temporality: cumulative
monotonic: true
value_type: int
postgresql.temp.io:
enabled: false
description: Total amount of data written to temporary files by queries.
stability: development
unit: By
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.temp_files:
enabled: false
description: The number of temp files.
stability: development
unit: "{temp_file}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.tup_deleted:
enabled: false
description: Number of rows deleted by queries in the database.
stability: development
unit: "{tup_deleted}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.tup_fetched:
enabled: false
description: Number of rows fetched by queries in the database.
stability: development
unit: "{tup_fetched}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.tup_inserted:
enabled: false
description: Number of rows inserted by queries in the database.
stability: development
unit: "{tup_inserted}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.tup_returned:
enabled: false
description: Number of rows returned by queries in the database.
stability: development
unit: "{tup_returned}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.tup_updated:
enabled: false
description: Number of rows updated by queries in the database.
stability: development
unit: "{tup_updated}"
sum:
value_type: int
monotonic: true
aggregation_temporality: cumulative
postgresql.wal.age:
description: Age of the oldest WAL file.
extended_documentation: |
This metric requires WAL to be enabled with at least one replica.
stability: development
enabled: true
unit: s
gauge:
value_type: int
postgresql.wal.delay:
attributes: [wal_operation_lag, replication_client]
description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it.
stability: development
enabled: false
unit: s
gauge:
value_type: double
extended_documentation: |
This metric requires WAL to be enabled with at least one replica.
postgresql.wal.lag:
attributes: [wal_operation_lag, replication_client]
description: Time between flushing recent WAL locally and receiving notification that the standby server has completed an operation with it.
stability: development
enabled: true
unit: s
gauge:
value_type: int
extended_documentation: |
This metric requires WAL to be enabled with at least one replica.
tests:
config:
goleak:
ignore:
any:
- "github.com/cihub/seelog.(*asyncLoopLogger).processQueue" # see https://github.com/cihub/seelog/issues/182
- "github.com/godbus/dbus.(*Conn).inWorker"
- github.com/hashicorp/golang-lru/v2/expirable.NewLRU[...].func1
top:
# Can be removed once the following issue is resolved:
# https://github.com/snowflakedb/gosnowflake/issues/1369
- "github.com/snowflakedb/gosnowflake.initOCSPCacheClearer.func1"