metadata.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. type: mysql
  2. status:
  3. class: receiver
  4. stability:
  5. beta: [metrics]
  6. distributions: [contrib, observiq, sumo]
  7. codeowners:
  8. active: [djaglowski]
  9. resource_attributes:
  10. mysql.instance.endpoint:
  11. description: Endpoint of the MySQL instance.
  12. enabled: true
  13. type: string
  14. attributes:
  15. buffer_pool_pages:
  16. name_override: kind
  17. description: The buffer pool pages types.
  18. type: string
  19. enum: [data, free, misc]
  20. buffer_pool_data:
  21. name_override: status
  22. description: The status of buffer pool data.
  23. type: string
  24. enum: [dirty, clean]
  25. buffer_pool_operations:
  26. name_override: operation
  27. description: The buffer pool operations types.
  28. type: string
  29. enum: [read_ahead_rnd, read_ahead, read_ahead_evicted, read_requests, reads, wait_free, write_requests]
  30. prepared_statements_command:
  31. name_override: command
  32. description: The prepare statement command types.
  33. type: string
  34. enum: [execute, close, fetch, prepare, reset, send_long_data]
  35. command:
  36. description: The command types.
  37. type: string
  38. enum: [delete, insert, select, update]
  39. connection_error:
  40. name_override: error
  41. description: The connection error type.
  42. type: string
  43. enum: [accept, internal, max_connections, peer_address, select, tcpwrap, aborted, aborted_clients, locked]
  44. handler:
  45. name_override: kind
  46. description: The handler types.
  47. type: string
  48. enum: [commit, delete, discover, external_lock, mrr_init, prepare, read_first, read_key, read_last, read_next, read_prev, read_rnd, read_rnd_next, rollback, savepoint, savepoint_rollback, update, write]
  49. double_writes:
  50. name_override: kind
  51. description: The doublewrite types.
  52. type: string
  53. enum: [pages_written, writes]
  54. log_operations:
  55. name_override: operation
  56. description: The log operation types.
  57. type: string
  58. enum: [waits, write_requests, writes]
  59. operations:
  60. name_override: operation
  61. description: The operation types.
  62. type: string
  63. enum: [fsyncs, reads, writes]
  64. page_operations:
  65. name_override: operation
  66. description: The page operation types.
  67. type: string
  68. enum: [created, read, written]
  69. row_locks:
  70. name_override: kind
  71. description: The row lock type.
  72. type: string
  73. enum: [waits, time]
  74. row_operations:
  75. name_override: operation
  76. description: The row operation type.
  77. type: string
  78. enum: [deleted, inserted, read, updated]
  79. locks:
  80. name_override: kind
  81. description: The table locks type.
  82. type: string
  83. enum: [immediate, waited]
  84. sorts:
  85. name_override: kind
  86. description: The sort count type.
  87. type: string
  88. enum: [merge_passes, range, rows, scan]
  89. threads:
  90. name_override: kind
  91. description: The thread count type.
  92. type: string
  93. enum: [cached, connected, created, running]
  94. schema:
  95. description: The schema of the object.
  96. type: string
  97. io_waits_operations:
  98. name_override: operation
  99. description: The io_waits operation type.
  100. type: string
  101. enum: [delete, fetch, insert, update]
  102. table_name:
  103. name_override: table
  104. type: string
  105. description: Table name for event or process.
  106. index_name:
  107. name_override: index
  108. type: string
  109. description: The name of the index.
  110. direction:
  111. name_override: kind
  112. description: The name of the transmission direction.
  113. type: string
  114. enum: [received, sent]
  115. digest:
  116. description: Digest.
  117. type: string
  118. digest_text:
  119. description: Text before digestion.
  120. type: string
  121. event_state:
  122. name_override: kind
  123. description: Possible event states.
  124. type: string
  125. enum: [errors, warnings, rows_affected, rows_sent, rows_examined, created_tmp_disk_tables, created_tmp_tables, sort_merge_passes, sort_rows, no_index_used]
  126. opened_resources:
  127. name_override: kind
  128. description: The kind of the resource.
  129. type: string
  130. enum: [file, table_definition, table]
  131. join_kind:
  132. name_override: kind
  133. description: The kind of join.
  134. type: string
  135. enum: [full, full_range, range, range_check, scan]
  136. read_lock_type:
  137. name_override: kind
  138. description: Read operation types.
  139. type: string
  140. enum: [normal, with_shared_locks, high_priority, no_insert, external]
  141. write_lock_type:
  142. name_override: kind
  143. description: Write operation types.
  144. type: string
  145. enum: [allow_write, concurrent_insert, low_priority, normal, external]
  146. tmp_resource:
  147. name_override: resource
  148. description: The kind of temporary resources.
  149. type: string
  150. enum: [disk_tables, files, tables]
  151. mysqlx_threads:
  152. name_override: kind
  153. description: The worker thread count kind.
  154. type: string
  155. enum: [available, active]
  156. connection_status:
  157. name_override: status
  158. description: The connection status.
  159. type: string
  160. enum: [accepted, closed, rejected]
  161. cache_status:
  162. name_override: status
  163. description: The status of cache access.
  164. type: string
  165. enum: [hit, miss, overflow]
  166. metrics:
  167. mysql.buffer_pool.pages:
  168. enabled: true
  169. description: The number of pages in the InnoDB buffer pool.
  170. unit: 1
  171. sum:
  172. value_type: int
  173. input_type: string
  174. monotonic: false
  175. aggregation_temporality: cumulative
  176. attributes: [buffer_pool_pages]
  177. mysql.buffer_pool.data_pages:
  178. enabled: true
  179. description: The number of data pages in the InnoDB buffer pool.
  180. unit: 1
  181. sum:
  182. value_type: int
  183. monotonic: false
  184. aggregation_temporality: cumulative
  185. attributes: [buffer_pool_data]
  186. mysql.buffer_pool.page_flushes:
  187. enabled: true
  188. description: The number of requests to flush pages from the InnoDB buffer pool.
  189. unit: 1
  190. sum:
  191. value_type: int
  192. input_type: string
  193. monotonic: true
  194. aggregation_temporality: cumulative
  195. mysql.buffer_pool.operations:
  196. enabled: true
  197. description: The number of operations on the InnoDB buffer pool.
  198. unit: 1
  199. sum:
  200. value_type: int
  201. input_type: string
  202. monotonic: true
  203. aggregation_temporality: cumulative
  204. attributes: [buffer_pool_operations]
  205. mysql.buffer_pool.limit:
  206. enabled: true
  207. description: The configured size of the InnoDB buffer pool.
  208. unit: By
  209. sum:
  210. value_type: int
  211. input_type: string
  212. monotonic: false
  213. aggregation_temporality: cumulative
  214. mysql.buffer_pool.usage:
  215. enabled: true
  216. description: The number of bytes in the InnoDB buffer pool.
  217. unit: By
  218. sum:
  219. value_type: int
  220. monotonic: false
  221. aggregation_temporality: cumulative
  222. attributes: [buffer_pool_data]
  223. mysql.prepared_statements:
  224. enabled: true
  225. description: The number of times each type of prepared statement command has been issued.
  226. unit: 1
  227. sum:
  228. value_type: int
  229. input_type: string
  230. monotonic: true
  231. aggregation_temporality: cumulative
  232. attributes: [prepared_statements_command]
  233. mysql.commands:
  234. enabled: false
  235. description: The number of times each type of command has been executed.
  236. unit: 1
  237. sum:
  238. value_type: int
  239. input_type: string
  240. monotonic: true
  241. aggregation_temporality: cumulative
  242. attributes: [command]
  243. mysql.handlers:
  244. enabled: true
  245. description: The number of requests to various MySQL handlers.
  246. unit: 1
  247. sum:
  248. value_type: int
  249. input_type: string
  250. monotonic: true
  251. aggregation_temporality: cumulative
  252. attributes: [handler]
  253. mysql.double_writes:
  254. enabled: true
  255. description: The number of writes to the InnoDB doublewrite buffer.
  256. unit: 1
  257. sum:
  258. value_type: int
  259. input_type: string
  260. monotonic: true
  261. aggregation_temporality: cumulative
  262. attributes: [double_writes]
  263. mysql.log_operations:
  264. enabled: true
  265. description: The number of InnoDB log operations.
  266. unit: 1
  267. sum:
  268. value_type: int
  269. input_type: string
  270. monotonic: true
  271. aggregation_temporality: cumulative
  272. attributes: [log_operations]
  273. mysql.operations:
  274. enabled: true
  275. description: The number of InnoDB operations.
  276. unit: 1
  277. sum:
  278. value_type: int
  279. input_type: string
  280. monotonic: true
  281. aggregation_temporality: cumulative
  282. attributes: [operations]
  283. mysql.page_operations:
  284. enabled: true
  285. description: The number of InnoDB page operations.
  286. unit: 1
  287. sum:
  288. value_type: int
  289. input_type: string
  290. monotonic: true
  291. aggregation_temporality: cumulative
  292. attributes: [page_operations]
  293. mysql.table.io.wait.count:
  294. enabled: true
  295. description: The total count of I/O wait events for a table.
  296. unit: 1
  297. sum:
  298. value_type: int
  299. monotonic: true
  300. aggregation_temporality: cumulative
  301. attributes: [io_waits_operations, table_name, schema]
  302. mysql.table.io.wait.time:
  303. enabled: true
  304. description: The total time of I/O wait events for a table.
  305. unit: ns
  306. sum:
  307. value_type: int
  308. monotonic: true
  309. aggregation_temporality: cumulative
  310. attributes: [io_waits_operations, table_name, schema]
  311. mysql.index.io.wait.count:
  312. enabled: true
  313. description: The total count of I/O wait events for an index.
  314. unit: 1
  315. sum:
  316. value_type: int
  317. monotonic: true
  318. aggregation_temporality: cumulative
  319. attributes: [io_waits_operations, table_name, schema, index_name]
  320. mysql.index.io.wait.time:
  321. enabled: true
  322. description: The total time of I/O wait events for an index.
  323. unit: ns
  324. sum:
  325. value_type: int
  326. monotonic: true
  327. aggregation_temporality: cumulative
  328. attributes: [io_waits_operations, table_name, schema, index_name]
  329. mysql.row_locks:
  330. enabled: true
  331. description: The number of InnoDB row locks.
  332. unit: 1
  333. sum:
  334. value_type: int
  335. input_type: string
  336. monotonic: true
  337. aggregation_temporality: cumulative
  338. attributes: [row_locks]
  339. mysql.row_operations:
  340. enabled: true
  341. description: The number of InnoDB row operations.
  342. unit: 1
  343. sum:
  344. value_type: int
  345. input_type: string
  346. monotonic: true
  347. aggregation_temporality: cumulative
  348. attributes: [row_operations]
  349. mysql.locks:
  350. enabled: true
  351. description: The number of MySQL locks.
  352. unit: 1
  353. sum:
  354. value_type: int
  355. input_type: string
  356. monotonic: true
  357. aggregation_temporality: cumulative
  358. attributes: [locks]
  359. mysql.sorts:
  360. enabled: true
  361. description: The number of MySQL sorts.
  362. unit: 1
  363. sum:
  364. value_type: int
  365. input_type: string
  366. monotonic: true
  367. aggregation_temporality: cumulative
  368. attributes: [sorts]
  369. mysql.threads:
  370. enabled: true
  371. description: The state of MySQL threads.
  372. unit: 1
  373. sum:
  374. value_type: int
  375. input_type: string
  376. monotonic: false
  377. aggregation_temporality: cumulative
  378. attributes: [threads]
  379. mysql.client.network.io:
  380. enabled: false
  381. description: The number of transmitted bytes between server and clients.
  382. unit: By
  383. sum:
  384. value_type: int
  385. input_type: string
  386. monotonic: true
  387. aggregation_temporality: cumulative
  388. attributes: [direction]
  389. mysql.opened_resources:
  390. enabled: true
  391. description: The number of opened resources.
  392. unit: 1
  393. sum:
  394. value_type: int
  395. input_type: string
  396. monotonic: true
  397. aggregation_temporality: cumulative
  398. attributes: [opened_resources]
  399. mysql.uptime:
  400. enabled: true
  401. description: The number of seconds that the server has been up.
  402. unit: s
  403. sum:
  404. value_type: int
  405. input_type: string
  406. monotonic: true
  407. aggregation_temporality: cumulative
  408. mysql.table.lock_wait.read.count:
  409. enabled: false
  410. description: The total table lock wait read events.
  411. unit: "1"
  412. sum:
  413. value_type: int
  414. monotonic: false
  415. aggregation_temporality: cumulative
  416. attributes: [schema, table_name, read_lock_type]
  417. mysql.table.lock_wait.read.time:
  418. enabled: false
  419. description: The total table lock wait read events times.
  420. unit: ns
  421. sum:
  422. value_type: int
  423. monotonic: false
  424. aggregation_temporality: cumulative
  425. attributes: [schema, table_name, read_lock_type]
  426. mysql.table.lock_wait.write.count:
  427. enabled: false
  428. description: The total table lock wait write events.
  429. unit: "1"
  430. sum:
  431. value_type: int
  432. monotonic: false
  433. aggregation_temporality: cumulative
  434. attributes: [schema, table_name, write_lock_type]
  435. mysql.table.lock_wait.write.time:
  436. enabled: false
  437. description: The total table lock wait write events times.
  438. unit: ns
  439. sum:
  440. value_type: int
  441. monotonic: false
  442. aggregation_temporality: cumulative
  443. attributes: [schema, table_name, write_lock_type]
  444. mysql.connection.count:
  445. enabled: false
  446. description: The number of connection attempts (successful or not) to the MySQL server.
  447. unit: 1
  448. sum:
  449. value_type: int
  450. input_type: string
  451. monotonic: true
  452. aggregation_temporality: cumulative
  453. mysql.connection.errors:
  454. enabled: false
  455. description: Errors that occur during the client connection process.
  456. unit: 1
  457. sum:
  458. value_type: int
  459. input_type: string
  460. monotonic: true
  461. aggregation_temporality: cumulative
  462. attributes: [connection_error]
  463. mysql.mysqlx_connections:
  464. enabled: true
  465. description: The number of mysqlx connections.
  466. extended_documentation: This metric is specific for MySQL working as Document Store (X-Plugin). [more docs](https://dev.mysql.com/doc/refman/8.0/en/document-store.html)
  467. unit: 1
  468. sum:
  469. value_type: int
  470. input_type: string
  471. monotonic: true
  472. aggregation_temporality: cumulative
  473. attributes: [connection_status]
  474. mysql.joins:
  475. enabled: false
  476. description: The number of joins that perform table scans.
  477. unit: 1
  478. sum:
  479. value_type: int
  480. input_type: string
  481. monotonic: true
  482. aggregation_temporality: cumulative
  483. attributes: [join_kind]
  484. mysql.tmp_resources:
  485. enabled: true
  486. description: The number of created temporary resources.
  487. unit: 1
  488. sum:
  489. value_type: int
  490. input_type: string
  491. monotonic: true
  492. aggregation_temporality: cumulative
  493. attributes: [tmp_resource]
  494. mysql.replica.time_behind_source:
  495. enabled: false
  496. description: This field is an indication of how “late” the replica is.
  497. unit: s
  498. sum:
  499. value_type: int
  500. monotonic: false
  501. aggregation_temporality: cumulative
  502. attributes: []
  503. mysql.replica.sql_delay:
  504. enabled: false
  505. description: The number of seconds that the replica must lag the source.
  506. unit: s
  507. sum:
  508. value_type: int
  509. monotonic: false
  510. aggregation_temporality: cumulative
  511. attributes: []
  512. mysql.statement_event.count:
  513. enabled: false
  514. description: Summary of current and recent statement events.
  515. unit: 1
  516. sum:
  517. value_type: int
  518. monotonic: false
  519. aggregation_temporality: cumulative
  520. attributes: [schema, digest, digest_text, event_state]
  521. mysql.statement_event.wait.time:
  522. enabled: false
  523. description: The total wait time of the summarized timed events.
  524. unit: ns
  525. sum:
  526. value_type: int
  527. monotonic: false
  528. aggregation_temporality: cumulative
  529. attributes: [schema, digest, digest_text]
  530. mysql.mysqlx_worker_threads:
  531. enabled: false
  532. description: The number of worker threads available.
  533. unit: 1
  534. extended_documentation: This metric is specific for MySQL working as Document Store (X-Plugin). [more docs](https://dev.mysql.com/doc/refman/8.0/en/document-store.html)
  535. sum:
  536. value_type: int
  537. input_type: string
  538. monotonic: false
  539. aggregation_temporality: cumulative
  540. attributes: [mysqlx_threads]
  541. mysql.table_open_cache:
  542. enabled: false
  543. description: The number of hits, misses or overflows for open tables cache lookups.
  544. unit: 1
  545. sum:
  546. value_type: int
  547. input_type: string
  548. monotonic: true
  549. aggregation_temporality: cumulative
  550. attributes: [cache_status]
  551. mysql.query.client.count:
  552. enabled: false
  553. description: The number of statements executed by the server. This includes only statements sent to the server by clients.
  554. unit: 1
  555. sum:
  556. value_type: int
  557. input_type: string
  558. monotonic: true
  559. aggregation_temporality: cumulative
  560. mysql.query.count:
  561. enabled: false
  562. description: The number of statements executed by the server.
  563. unit: 1
  564. sum:
  565. value_type: int
  566. input_type: string
  567. monotonic: true
  568. aggregation_temporality: cumulative
  569. mysql.query.slow.count:
  570. enabled: false
  571. description: The number of slow queries.
  572. unit: 1
  573. sum:
  574. value_type: int
  575. input_type: string
  576. monotonic: true
  577. aggregation_temporality: cumulative