13500_rev1.json 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "grafana",
  15. "id": "grafana",
  16. "name": "Grafana",
  17. "version": "5.1.4"
  18. },
  19. {
  20. "type": "panel",
  21. "id": "graph",
  22. "name": "Graph",
  23. "version": "5.0.0"
  24. },
  25. {
  26. "type": "datasource",
  27. "id": "prometheus",
  28. "name": "Prometheus",
  29. "version": "5.0.0"
  30. },
  31. {
  32. "type": "panel",
  33. "id": "singlestat",
  34. "name": "Singlestat",
  35. "version": "5.0.0"
  36. }
  37. ],
  38. "annotations": {
  39. "list": [
  40. {
  41. "builtIn": 1,
  42. "datasource": "-- Grafana --",
  43. "enable": true,
  44. "hide": true,
  45. "iconColor": "rgba(0, 211, 255, 1)",
  46. "name": "Annotations & Alerts",
  47. "type": "dashboard"
  48. }
  49. ]
  50. },
  51. "description": "Clickhouse metrics for internal (embedded, <prometheus>) exporter",
  52. "editable": true,
  53. "gnetId": 13500,
  54. "graphTooltip": 1,
  55. "id": null,
  56. "iteration": 1606944821282,
  57. "links": [],
  58. "panels": [
  59. {
  60. "collapsed": false,
  61. "gridPos": {
  62. "h": 1,
  63. "w": 24,
  64. "x": 0,
  65. "y": 0
  66. },
  67. "id": 18,
  68. "panels": [],
  69. "repeat": null,
  70. "title": "Main",
  71. "type": "row"
  72. },
  73. {
  74. "aliasColors": {},
  75. "bars": false,
  76. "dashLength": 10,
  77. "dashes": false,
  78. "datasource": "${DS_PROMETHEUS}",
  79. "description": "Number of queries to be interpreted and potentially executed. Does not include queries that failed to parse or were rejected due to AST size limits, quota limits or limits on the number of simultaneously running queries. May include internal queries initiated by ClickHouse itself. Does not count subqueries.",
  80. "editable": true,
  81. "error": false,
  82. "fill": 1,
  83. "grid": {},
  84. "gridPos": {
  85. "h": 8,
  86. "w": 8,
  87. "x": 0,
  88. "y": 1
  89. },
  90. "id": 1,
  91. "isNew": true,
  92. "legend": {
  93. "alignAsTable": true,
  94. "avg": true,
  95. "current": true,
  96. "hideEmpty": true,
  97. "hideZero": true,
  98. "max": false,
  99. "min": false,
  100. "rightSide": false,
  101. "show": true,
  102. "total": false,
  103. "values": true
  104. },
  105. "lines": true,
  106. "linewidth": 2,
  107. "links": [],
  108. "nullPointMode": "connected",
  109. "percentage": false,
  110. "pointradius": 5,
  111. "points": false,
  112. "renderer": "flot",
  113. "seriesOverrides": [],
  114. "spaceLength": 10,
  115. "stack": true,
  116. "steppedLine": false,
  117. "targets": [
  118. {
  119. "expr": "rate(ClickHouseProfileEvents_Query{environment=\"$environment\",job=\"$job\"}[1m])",
  120. "format": "time_series",
  121. "instant": false,
  122. "intervalFactor": 2,
  123. "legendFormat": "{{instance}}",
  124. "refId": "A",
  125. "step": 10
  126. }
  127. ],
  128. "thresholds": [],
  129. "timeFrom": null,
  130. "timeShift": null,
  131. "title": "Total Query",
  132. "tooltip": {
  133. "msResolution": false,
  134. "shared": true,
  135. "sort": 0,
  136. "value_type": "cumulative"
  137. },
  138. "transparent": false,
  139. "type": "graph",
  140. "xaxis": {
  141. "buckets": null,
  142. "mode": "time",
  143. "name": null,
  144. "show": true,
  145. "values": []
  146. },
  147. "yaxes": [
  148. {
  149. "format": "short",
  150. "label": null,
  151. "logBase": 1,
  152. "max": null,
  153. "min": null,
  154. "show": true
  155. },
  156. {
  157. "format": "short",
  158. "label": null,
  159. "logBase": 1,
  160. "max": null,
  161. "min": null,
  162. "show": true
  163. }
  164. ],
  165. "yaxis": {
  166. "align": false,
  167. "alignLevel": null
  168. }
  169. },
  170. {
  171. "aliasColors": {},
  172. "bars": false,
  173. "dashLength": 10,
  174. "dashes": false,
  175. "datasource": "${DS_PROMETHEUS}",
  176. "description": "Only for SELECT queries",
  177. "editable": true,
  178. "error": false,
  179. "fill": 1,
  180. "grid": {},
  181. "gridPos": {
  182. "h": 8,
  183. "w": 8,
  184. "x": 8,
  185. "y": 1
  186. },
  187. "id": 12,
  188. "isNew": true,
  189. "legend": {
  190. "alignAsTable": true,
  191. "avg": true,
  192. "current": true,
  193. "hideEmpty": true,
  194. "hideZero": true,
  195. "max": false,
  196. "min": false,
  197. "rightSide": false,
  198. "show": true,
  199. "total": false,
  200. "values": true
  201. },
  202. "lines": true,
  203. "linewidth": 2,
  204. "links": [],
  205. "nullPointMode": "connected",
  206. "percentage": false,
  207. "pointradius": 5,
  208. "points": false,
  209. "renderer": "flot",
  210. "seriesOverrides": [],
  211. "spaceLength": 10,
  212. "stack": true,
  213. "steppedLine": false,
  214. "targets": [
  215. {
  216. "expr": "rate(ClickHouseProfileEvents_SelectQuery{environment=\"$environment\",job=\"$job\"}[1m])",
  217. "format": "time_series",
  218. "instant": false,
  219. "intervalFactor": 2,
  220. "legendFormat": "{{instance}}",
  221. "refId": "A",
  222. "step": 10
  223. }
  224. ],
  225. "thresholds": [],
  226. "timeFrom": null,
  227. "timeShift": null,
  228. "title": "Select Query",
  229. "tooltip": {
  230. "msResolution": false,
  231. "shared": true,
  232. "sort": 0,
  233. "value_type": "cumulative"
  234. },
  235. "type": "graph",
  236. "xaxis": {
  237. "buckets": null,
  238. "mode": "time",
  239. "name": null,
  240. "show": true,
  241. "values": []
  242. },
  243. "yaxes": [
  244. {
  245. "format": "short",
  246. "label": null,
  247. "logBase": 1,
  248. "max": null,
  249. "min": null,
  250. "show": true
  251. },
  252. {
  253. "format": "short",
  254. "label": null,
  255. "logBase": 1,
  256. "max": null,
  257. "min": null,
  258. "show": true
  259. }
  260. ],
  261. "yaxis": {
  262. "align": false,
  263. "alignLevel": null
  264. }
  265. },
  266. {
  267. "aliasColors": {},
  268. "bars": false,
  269. "dashLength": 10,
  270. "dashes": false,
  271. "datasource": "${DS_PROMETHEUS}",
  272. "description": "Only for INSERT queries",
  273. "editable": true,
  274. "error": false,
  275. "fill": 1,
  276. "grid": {},
  277. "gridPos": {
  278. "h": 8,
  279. "w": 8,
  280. "x": 16,
  281. "y": 1
  282. },
  283. "id": 13,
  284. "isNew": true,
  285. "legend": {
  286. "alignAsTable": true,
  287. "avg": true,
  288. "current": true,
  289. "hideEmpty": true,
  290. "hideZero": true,
  291. "max": false,
  292. "min": false,
  293. "rightSide": false,
  294. "show": true,
  295. "total": false,
  296. "values": true
  297. },
  298. "lines": true,
  299. "linewidth": 2,
  300. "links": [],
  301. "nullPointMode": "connected",
  302. "percentage": false,
  303. "pointradius": 5,
  304. "points": false,
  305. "renderer": "flot",
  306. "seriesOverrides": [],
  307. "spaceLength": 10,
  308. "stack": true,
  309. "steppedLine": false,
  310. "targets": [
  311. {
  312. "expr": "rate(ClickHouseProfileEvents_InsertQuery{environment=\"$environment\",job=\"$job\"}[1m])",
  313. "format": "time_series",
  314. "instant": false,
  315. "intervalFactor": 2,
  316. "legendFormat": "{{instance}}",
  317. "refId": "A",
  318. "step": 10
  319. }
  320. ],
  321. "thresholds": [],
  322. "timeFrom": null,
  323. "timeShift": null,
  324. "title": "Insert Query",
  325. "tooltip": {
  326. "msResolution": false,
  327. "shared": true,
  328. "sort": 0,
  329. "value_type": "cumulative"
  330. },
  331. "type": "graph",
  332. "xaxis": {
  333. "buckets": null,
  334. "mode": "time",
  335. "name": null,
  336. "show": true,
  337. "values": []
  338. },
  339. "yaxes": [
  340. {
  341. "format": "short",
  342. "label": null,
  343. "logBase": 1,
  344. "max": null,
  345. "min": null,
  346. "show": true
  347. },
  348. {
  349. "format": "short",
  350. "label": null,
  351. "logBase": 1,
  352. "max": null,
  353. "min": null,
  354. "show": true
  355. }
  356. ],
  357. "yaxis": {
  358. "align": false,
  359. "alignLevel": null
  360. }
  361. },
  362. {
  363. "aliasColors": {},
  364. "bars": false,
  365. "dashLength": 10,
  366. "dashes": false,
  367. "datasource": "${DS_PROMETHEUS}",
  368. "description": "Number of Replicated tables that are leaders. Leader replica is responsible for assigning merges, cleaning old blocks for deduplications and a few more bookkeeping tasks. There may be no more than one leader across all replicas at one moment of time. If there is no leader it will be elected soon or it indicate an issue.",
  369. "editable": true,
  370. "error": false,
  371. "fill": 1,
  372. "grid": {},
  373. "gridPos": {
  374. "h": 8,
  375. "w": 11,
  376. "x": 0,
  377. "y": 9
  378. },
  379. "id": 7,
  380. "isNew": true,
  381. "legend": {
  382. "alignAsTable": true,
  383. "avg": true,
  384. "current": true,
  385. "hideEmpty": true,
  386. "hideZero": true,
  387. "max": false,
  388. "min": false,
  389. "show": true,
  390. "total": false,
  391. "values": true
  392. },
  393. "lines": true,
  394. "linewidth": 2,
  395. "links": [],
  396. "nullPointMode": "connected",
  397. "percentage": false,
  398. "pointradius": 5,
  399. "points": false,
  400. "renderer": "flot",
  401. "seriesOverrides": [],
  402. "spaceLength": 10,
  403. "stack": false,
  404. "steppedLine": false,
  405. "targets": [
  406. {
  407. "expr": "ClickHouseMetrics_LeaderReplica{environment=\"$environment\",job=\"$job\"}",
  408. "format": "time_series",
  409. "intervalFactor": 2,
  410. "legendFormat": "{{instance}}",
  411. "refId": "A",
  412. "step": 10
  413. }
  414. ],
  415. "thresholds": [],
  416. "timeFrom": null,
  417. "timeShift": null,
  418. "title": "Replicas",
  419. "tooltip": {
  420. "msResolution": false,
  421. "shared": true,
  422. "sort": 0,
  423. "value_type": "cumulative"
  424. },
  425. "type": "graph",
  426. "xaxis": {
  427. "buckets": null,
  428. "mode": "time",
  429. "name": null,
  430. "show": true,
  431. "values": []
  432. },
  433. "yaxes": [
  434. {
  435. "format": "short",
  436. "label": null,
  437. "logBase": 1,
  438. "max": null,
  439. "min": null,
  440. "show": true
  441. },
  442. {
  443. "format": "short",
  444. "label": null,
  445. "logBase": 1,
  446. "max": null,
  447. "min": null,
  448. "show": true
  449. }
  450. ],
  451. "yaxis": {
  452. "align": false,
  453. "alignLevel": null
  454. }
  455. },
  456. {
  457. "cacheTimeout": null,
  458. "colorBackground": false,
  459. "colorValue": true,
  460. "colors": [
  461. "rgba(50, 172, 45, 0.97)",
  462. "rgba(237, 129, 40, 0.89)",
  463. "rgba(245, 54, 54, 0.9)"
  464. ],
  465. "datasource": "${DS_PROMETHEUS}",
  466. "description": "Number of Replicated tables that are currently in readonly state due to re-initialization after ZooKeeper session loss or due to startup without ZooKeeper configured.",
  467. "editable": true,
  468. "error": false,
  469. "format": "none",
  470. "gauge": {
  471. "maxValue": 100,
  472. "minValue": 0,
  473. "show": false,
  474. "thresholdLabels": false,
  475. "thresholdMarkers": true
  476. },
  477. "gridPos": {
  478. "h": 8,
  479. "w": 2,
  480. "x": 11,
  481. "y": 9
  482. },
  483. "id": 6,
  484. "interval": null,
  485. "isNew": true,
  486. "links": [],
  487. "mappingType": 1,
  488. "mappingTypes": [
  489. {
  490. "name": "value to text",
  491. "value": 1
  492. },
  493. {
  494. "name": "range to text",
  495. "value": 2
  496. }
  497. ],
  498. "maxDataPoints": 100,
  499. "nullPointMode": "connected",
  500. "nullText": null,
  501. "postfix": "",
  502. "postfixFontSize": "50%",
  503. "prefix": "",
  504. "prefixFontSize": "50%",
  505. "rangeMaps": [
  506. {
  507. "from": "null",
  508. "text": "N/A",
  509. "to": "null"
  510. }
  511. ],
  512. "sparkline": {
  513. "fillColor": "rgba(31, 118, 189, 0.18)",
  514. "full": false,
  515. "lineColor": "rgb(31, 120, 193)",
  516. "show": false
  517. },
  518. "tableColumn": "",
  519. "targets": [
  520. {
  521. "expr": "sum(ClickHouseMetrics_ReadonlyReplica{environment=\"$environment\",job=\"$job\"})",
  522. "format": "time_series",
  523. "intervalFactor": 2,
  524. "legendFormat": "",
  525. "refId": "A",
  526. "step": 60
  527. }
  528. ],
  529. "thresholds": "1,1",
  530. "title": "ReadOnly replica",
  531. "transparent": false,
  532. "type": "singlestat",
  533. "valueFontSize": "80%",
  534. "valueMaps": [
  535. {
  536. "op": "=",
  537. "text": "N/A",
  538. "value": "null"
  539. }
  540. ],
  541. "valueName": "current"
  542. },
  543. {
  544. "aliasColors": {},
  545. "bars": false,
  546. "dashLength": 10,
  547. "dashes": false,
  548. "datasource": "${DS_PROMETHEUS}",
  549. "description": "Number of data parts checking for consistency\n\nNumber of data parts being fetched from replica\n\nNumber of data parts being sent to replicas",
  550. "editable": true,
  551. "error": false,
  552. "fill": 1,
  553. "grid": {},
  554. "gridPos": {
  555. "h": 8,
  556. "w": 11,
  557. "x": 13,
  558. "y": 9
  559. },
  560. "id": 3,
  561. "isNew": true,
  562. "legend": {
  563. "alignAsTable": true,
  564. "avg": true,
  565. "current": true,
  566. "hideEmpty": true,
  567. "hideZero": true,
  568. "max": false,
  569. "min": false,
  570. "show": true,
  571. "total": false,
  572. "values": true
  573. },
  574. "lines": true,
  575. "linewidth": 2,
  576. "links": [],
  577. "nullPointMode": "connected",
  578. "percentage": false,
  579. "pointradius": 5,
  580. "points": false,
  581. "renderer": "flot",
  582. "seriesOverrides": [],
  583. "spaceLength": 10,
  584. "stack": false,
  585. "steppedLine": false,
  586. "targets": [
  587. {
  588. "expr": "ClickHouseMetrics_ReplicatedChecks{environment=\"$environment\",job=\"$job\"}",
  589. "format": "time_series",
  590. "intervalFactor": 2,
  591. "legendFormat": "Checking for consistency on {{instance}}",
  592. "refId": "A",
  593. "step": 20
  594. },
  595. {
  596. "expr": "ClickHouseMetrics_ReplicatedFetch{environment=\"$environment\",job=\"$job\"}",
  597. "format": "time_series",
  598. "interval": "",
  599. "intervalFactor": 2,
  600. "legendFormat": "Fetched from replica on {{instance}}",
  601. "refId": "B",
  602. "step": 20
  603. },
  604. {
  605. "expr": "ClickHouseMetrics_ReplicatedSend{environment=\"$environment\",job=\"$job\"}",
  606. "format": "time_series",
  607. "intervalFactor": 2,
  608. "legendFormat": "Sent to replicas from {{instance}}",
  609. "refId": "C",
  610. "step": 20
  611. }
  612. ],
  613. "thresholds": [],
  614. "timeFrom": null,
  615. "timeShift": null,
  616. "title": "Replication",
  617. "tooltip": {
  618. "msResolution": false,
  619. "shared": true,
  620. "sort": 0,
  621. "value_type": "cumulative"
  622. },
  623. "type": "graph",
  624. "xaxis": {
  625. "buckets": null,
  626. "mode": "time",
  627. "name": null,
  628. "show": true,
  629. "values": []
  630. },
  631. "yaxes": [
  632. {
  633. "format": "short",
  634. "label": null,
  635. "logBase": 1,
  636. "max": null,
  637. "min": null,
  638. "show": true
  639. },
  640. {
  641. "format": "short",
  642. "label": null,
  643. "logBase": 1,
  644. "max": null,
  645. "min": null,
  646. "show": true
  647. }
  648. ],
  649. "yaxis": {
  650. "align": false,
  651. "alignLevel": null
  652. }
  653. },
  654. {
  655. "aliasColors": {},
  656. "bars": false,
  657. "dashLength": 10,
  658. "dashes": false,
  659. "datasource": "${DS_PROMETHEUS}",
  660. "description": "tcp - Number of connections to TCP server (clients with native interface), also included server-server distributed query connections\n\nhttp - Number of connections to HTTP server\n\ninterserver - Number of connections from other replicas to fetch parts\n\nmysql - Number of client connections using MySQL protocol",
  661. "editable": true,
  662. "error": false,
  663. "fill": 1,
  664. "grid": {},
  665. "gridPos": {
  666. "h": 6,
  667. "w": 24,
  668. "x": 0,
  669. "y": 17
  670. },
  671. "id": 5,
  672. "isNew": true,
  673. "legend": {
  674. "alignAsTable": true,
  675. "avg": true,
  676. "current": true,
  677. "hideEmpty": true,
  678. "hideZero": true,
  679. "max": false,
  680. "min": false,
  681. "rightSide": true,
  682. "show": true,
  683. "total": false,
  684. "values": true
  685. },
  686. "lines": true,
  687. "linewidth": 2,
  688. "links": [],
  689. "nullPointMode": "connected",
  690. "percentage": false,
  691. "pointradius": 5,
  692. "points": false,
  693. "renderer": "flot",
  694. "seriesOverrides": [],
  695. "spaceLength": 10,
  696. "stack": false,
  697. "steppedLine": false,
  698. "targets": [
  699. {
  700. "expr": "ClickHouseMetrics_TCPConnection{environment=\"$environment\",job=\"$job\"}",
  701. "format": "time_series",
  702. "intervalFactor": 2,
  703. "legendFormat": "tcp {{instance}}",
  704. "refId": "A",
  705. "step": 10
  706. },
  707. {
  708. "expr": "ClickHouseMetrics_HTTPConnection{environment=\"$environment\",job=\"$job\"}",
  709. "format": "time_series",
  710. "intervalFactor": 2,
  711. "legendFormat": "http {{instance}}",
  712. "refId": "B",
  713. "step": 10
  714. },
  715. {
  716. "expr": "ClickHouseMetrics_InterserverConnection{environment=\"$environment\",job=\"$job\"}",
  717. "format": "time_series",
  718. "intervalFactor": 2,
  719. "legendFormat": "interserver {{instance}}",
  720. "refId": "C",
  721. "step": 10
  722. },
  723. {
  724. "expr": "ClickHouseMetrics_MySQLConnection{environment=\"$environment\",job=\"$job\"}",
  725. "format": "time_series",
  726. "intervalFactor": 2,
  727. "legendFormat": "mysql {{instance}}",
  728. "refId": "D",
  729. "step": 10
  730. }
  731. ],
  732. "thresholds": [],
  733. "timeFrom": null,
  734. "timeShift": null,
  735. "title": "Connections",
  736. "tooltip": {
  737. "msResolution": false,
  738. "shared": true,
  739. "sort": 0,
  740. "value_type": "cumulative"
  741. },
  742. "type": "graph",
  743. "xaxis": {
  744. "buckets": null,
  745. "mode": "time",
  746. "name": null,
  747. "show": true,
  748. "values": []
  749. },
  750. "yaxes": [
  751. {
  752. "format": "short",
  753. "label": null,
  754. "logBase": 1,
  755. "max": null,
  756. "min": null,
  757. "show": true
  758. },
  759. {
  760. "format": "short",
  761. "label": null,
  762. "logBase": 1,
  763. "max": null,
  764. "min": null,
  765. "show": true
  766. }
  767. ],
  768. "yaxis": {
  769. "align": false,
  770. "alignLevel": null
  771. }
  772. },
  773. {
  774. "aliasColors": {},
  775. "bars": false,
  776. "dashLength": 10,
  777. "dashes": false,
  778. "datasource": "${DS_PROMETHEUS}",
  779. "description": "Number of active tasks in BackgroundProcessingPool (merges, mutations, fetches, or replication queue bookkeeping)",
  780. "editable": true,
  781. "error": false,
  782. "fill": 1,
  783. "grid": {},
  784. "gridPos": {
  785. "h": 8,
  786. "w": 12,
  787. "x": 0,
  788. "y": 23
  789. },
  790. "id": 9,
  791. "isNew": true,
  792. "legend": {
  793. "alignAsTable": true,
  794. "avg": true,
  795. "current": true,
  796. "hideEmpty": true,
  797. "hideZero": true,
  798. "max": false,
  799. "min": false,
  800. "show": true,
  801. "total": false,
  802. "values": true
  803. },
  804. "lines": true,
  805. "linewidth": 2,
  806. "links": [],
  807. "nullPointMode": "connected",
  808. "percentage": false,
  809. "pointradius": 5,
  810. "points": false,
  811. "renderer": "flot",
  812. "seriesOverrides": [],
  813. "spaceLength": 10,
  814. "stack": false,
  815. "steppedLine": false,
  816. "targets": [
  817. {
  818. "expr": "ClickHouseMetrics_BackgroundPoolTask{environment=\"$environment\",job=\"$job\"}",
  819. "format": "time_series",
  820. "intervalFactor": 2,
  821. "legendFormat": "{{job}}",
  822. "refId": "A",
  823. "step": 10
  824. }
  825. ],
  826. "thresholds": [],
  827. "timeFrom": null,
  828. "timeShift": null,
  829. "title": "Pool Tasks",
  830. "tooltip": {
  831. "msResolution": false,
  832. "shared": true,
  833. "sort": 0,
  834. "value_type": "cumulative"
  835. },
  836. "type": "graph",
  837. "xaxis": {
  838. "buckets": null,
  839. "mode": "time",
  840. "name": null,
  841. "show": true,
  842. "values": []
  843. },
  844. "yaxes": [
  845. {
  846. "format": "short",
  847. "label": null,
  848. "logBase": 1,
  849. "max": null,
  850. "min": null,
  851. "show": true
  852. },
  853. {
  854. "format": "short",
  855. "label": null,
  856. "logBase": 1,
  857. "max": null,
  858. "min": null,
  859. "show": true
  860. }
  861. ],
  862. "yaxis": {
  863. "align": false,
  864. "alignLevel": null
  865. }
  866. },
  867. {
  868. "aliasColors": {},
  869. "bars": false,
  870. "dashLength": 10,
  871. "dashes": false,
  872. "datasource": "${DS_PROMETHEUS}",
  873. "description": "Number of files opened.",
  874. "editable": true,
  875. "error": false,
  876. "fill": 1,
  877. "grid": {},
  878. "gridPos": {
  879. "h": 8,
  880. "w": 12,
  881. "x": 12,
  882. "y": 23
  883. },
  884. "id": 14,
  885. "isNew": true,
  886. "legend": {
  887. "alignAsTable": true,
  888. "avg": true,
  889. "current": true,
  890. "hideEmpty": true,
  891. "hideZero": true,
  892. "max": false,
  893. "min": false,
  894. "rightSide": false,
  895. "show": true,
  896. "total": false,
  897. "values": true
  898. },
  899. "lines": true,
  900. "linewidth": 2,
  901. "links": [],
  902. "nullPointMode": "connected",
  903. "percentage": false,
  904. "pointradius": 5,
  905. "points": false,
  906. "renderer": "flot",
  907. "seriesOverrides": [],
  908. "spaceLength": 10,
  909. "stack": true,
  910. "steppedLine": false,
  911. "targets": [
  912. {
  913. "expr": "rate(ClickHouseProfileEvents_FileOpen{environment=\"$environment\",job=\"$job\"}[1m])",
  914. "format": "time_series",
  915. "instant": false,
  916. "intervalFactor": 2,
  917. "legendFormat": "{{instance}}",
  918. "refId": "A",
  919. "step": 10
  920. }
  921. ],
  922. "thresholds": [],
  923. "timeFrom": null,
  924. "timeShift": null,
  925. "title": "Open Files",
  926. "tooltip": {
  927. "msResolution": false,
  928. "shared": true,
  929. "sort": 0,
  930. "value_type": "cumulative"
  931. },
  932. "type": "graph",
  933. "xaxis": {
  934. "buckets": null,
  935. "mode": "time",
  936. "name": null,
  937. "show": true,
  938. "values": []
  939. },
  940. "yaxes": [
  941. {
  942. "format": "short",
  943. "label": null,
  944. "logBase": 1,
  945. "max": null,
  946. "min": null,
  947. "show": true
  948. },
  949. {
  950. "format": "short",
  951. "label": null,
  952. "logBase": 1,
  953. "max": null,
  954. "min": null,
  955. "show": true
  956. }
  957. ],
  958. "yaxis": {
  959. "align": false,
  960. "alignLevel": null
  961. }
  962. },
  963. {
  964. "aliasColors": {},
  965. "bars": false,
  966. "dashLength": 10,
  967. "dashes": false,
  968. "datasource": "${DS_PROMETHEUS}",
  969. "description": "Number of uncompressed bytes (the number of bytes after decompression) read from compressed sources (files, network).",
  970. "editable": true,
  971. "error": false,
  972. "fill": 1,
  973. "grid": {},
  974. "gridPos": {
  975. "h": 8,
  976. "w": 12,
  977. "x": 0,
  978. "y": 31
  979. },
  980. "id": 8,
  981. "isNew": true,
  982. "legend": {
  983. "alignAsTable": true,
  984. "avg": true,
  985. "current": true,
  986. "hideEmpty": true,
  987. "hideZero": true,
  988. "max": false,
  989. "min": false,
  990. "show": true,
  991. "total": false,
  992. "values": true
  993. },
  994. "lines": true,
  995. "linewidth": 2,
  996. "links": [],
  997. "nullPointMode": "connected",
  998. "percentage": false,
  999. "pointradius": 5,
  1000. "points": false,
  1001. "renderer": "flot",
  1002. "seriesOverrides": [],
  1003. "spaceLength": 10,
  1004. "stack": true,
  1005. "steppedLine": false,
  1006. "targets": [
  1007. {
  1008. "expr": "rate(ClickHouseProfileEvents_CompressedReadBufferBytes{environment=\"$environment\",job=\"$job\"}[1m])",
  1009. "format": "time_series",
  1010. "intervalFactor": 2,
  1011. "legendFormat": "{{job}}",
  1012. "refId": "A",
  1013. "step": 10
  1014. }
  1015. ],
  1016. "thresholds": [],
  1017. "timeFrom": null,
  1018. "timeShift": null,
  1019. "title": "Compressed Read Buffer",
  1020. "tooltip": {
  1021. "msResolution": false,
  1022. "shared": true,
  1023. "sort": 0,
  1024. "value_type": "cumulative"
  1025. },
  1026. "type": "graph",
  1027. "xaxis": {
  1028. "buckets": null,
  1029. "mode": "time",
  1030. "name": null,
  1031. "show": true,
  1032. "values": []
  1033. },
  1034. "yaxes": [
  1035. {
  1036. "format": "bytes",
  1037. "label": null,
  1038. "logBase": 1,
  1039. "max": null,
  1040. "min": null,
  1041. "show": true
  1042. },
  1043. {
  1044. "format": "short",
  1045. "label": null,
  1046. "logBase": 1,
  1047. "max": null,
  1048. "min": null,
  1049. "show": true
  1050. }
  1051. ],
  1052. "yaxis": {
  1053. "align": false,
  1054. "alignLevel": null
  1055. }
  1056. },
  1057. {
  1058. "aliasColors": {},
  1059. "bars": false,
  1060. "dashLength": 10,
  1061. "dashes": false,
  1062. "datasource": "${DS_PROMETHEUS}",
  1063. "description": "Total amount of memory (bytes) allocated by the server.",
  1064. "editable": true,
  1065. "error": false,
  1066. "fill": 1,
  1067. "grid": {},
  1068. "gridPos": {
  1069. "h": 8,
  1070. "w": 12,
  1071. "x": 12,
  1072. "y": 31
  1073. },
  1074. "id": 10,
  1075. "isNew": true,
  1076. "legend": {
  1077. "alignAsTable": true,
  1078. "avg": true,
  1079. "current": true,
  1080. "hideEmpty": true,
  1081. "hideZero": true,
  1082. "max": false,
  1083. "min": false,
  1084. "show": true,
  1085. "total": false,
  1086. "values": true
  1087. },
  1088. "lines": true,
  1089. "linewidth": 2,
  1090. "links": [],
  1091. "nullPointMode": "null",
  1092. "percentage": false,
  1093. "pointradius": 5,
  1094. "points": false,
  1095. "renderer": "flot",
  1096. "seriesOverrides": [],
  1097. "spaceLength": 10,
  1098. "stack": false,
  1099. "steppedLine": false,
  1100. "targets": [
  1101. {
  1102. "expr": "ClickHouseMetrics_MemoryTracking{environment=\"$environment\",job=\"$job\"}",
  1103. "format": "time_series",
  1104. "intervalFactor": 2,
  1105. "legendFormat": "{{instance}}",
  1106. "refId": "A",
  1107. "step": 10
  1108. }
  1109. ],
  1110. "thresholds": [],
  1111. "timeFrom": null,
  1112. "timeShift": null,
  1113. "title": "Memory",
  1114. "tooltip": {
  1115. "msResolution": false,
  1116. "shared": true,
  1117. "sort": 0,
  1118. "value_type": "cumulative"
  1119. },
  1120. "type": "graph",
  1121. "xaxis": {
  1122. "buckets": null,
  1123. "mode": "time",
  1124. "name": null,
  1125. "show": true,
  1126. "values": []
  1127. },
  1128. "yaxes": [
  1129. {
  1130. "format": "bytes",
  1131. "label": null,
  1132. "logBase": 1,
  1133. "max": null,
  1134. "min": null,
  1135. "show": true
  1136. },
  1137. {
  1138. "format": "short",
  1139. "label": null,
  1140. "logBase": 1,
  1141. "max": null,
  1142. "min": null,
  1143. "show": true
  1144. }
  1145. ],
  1146. "yaxis": {
  1147. "align": false,
  1148. "alignLevel": null
  1149. }
  1150. },
  1151. {
  1152. "aliasColors": {},
  1153. "bars": false,
  1154. "dashLength": 10,
  1155. "dashes": false,
  1156. "datasource": "${DS_PROMETHEUS}",
  1157. "description": "Number of read (read, pread, io_getevents, etc.) syscalls in fly\n\nNumber of write (write, pwrite, io_getevents, etc.) syscalls in fly",
  1158. "editable": true,
  1159. "error": false,
  1160. "fill": 1,
  1161. "grid": {},
  1162. "gridPos": {
  1163. "h": 6,
  1164. "w": 24,
  1165. "x": 0,
  1166. "y": 39
  1167. },
  1168. "id": 4,
  1169. "isNew": true,
  1170. "legend": {
  1171. "alignAsTable": true,
  1172. "avg": true,
  1173. "current": true,
  1174. "hideEmpty": true,
  1175. "hideZero": true,
  1176. "max": false,
  1177. "min": false,
  1178. "rightSide": true,
  1179. "show": true,
  1180. "sideWidth": null,
  1181. "total": false,
  1182. "values": true
  1183. },
  1184. "lines": true,
  1185. "linewidth": 2,
  1186. "links": [],
  1187. "nullPointMode": "connected",
  1188. "percentage": false,
  1189. "pointradius": 5,
  1190. "points": false,
  1191. "renderer": "flot",
  1192. "seriesOverrides": [],
  1193. "spaceLength": 10,
  1194. "stack": false,
  1195. "steppedLine": false,
  1196. "targets": [
  1197. {
  1198. "expr": "ClickHouseMetrics_Read{environment=\"$environment\",job=\"$job\"}",
  1199. "format": "time_series",
  1200. "intervalFactor": 2,
  1201. "legendFormat": "Read {{instance}}",
  1202. "refId": "A",
  1203. "step": 10
  1204. },
  1205. {
  1206. "expr": "ClickHouseMetrics_Write{environment=\"$environment\",job=\"$job\"}",
  1207. "format": "time_series",
  1208. "intervalFactor": 2,
  1209. "legendFormat": "Write {{instance}}",
  1210. "refId": "B",
  1211. "step": 10
  1212. }
  1213. ],
  1214. "thresholds": [],
  1215. "timeFrom": null,
  1216. "timeShift": null,
  1217. "title": "Read/Write Syscalls",
  1218. "tooltip": {
  1219. "msResolution": false,
  1220. "shared": true,
  1221. "sort": 0,
  1222. "value_type": "cumulative"
  1223. },
  1224. "type": "graph",
  1225. "xaxis": {
  1226. "buckets": null,
  1227. "mode": "time",
  1228. "name": null,
  1229. "show": true,
  1230. "values": []
  1231. },
  1232. "yaxes": [
  1233. {
  1234. "format": "short",
  1235. "label": null,
  1236. "logBase": 1,
  1237. "max": null,
  1238. "min": null,
  1239. "show": true
  1240. },
  1241. {
  1242. "format": "short",
  1243. "label": null,
  1244. "logBase": 1,
  1245. "max": null,
  1246. "min": null,
  1247. "show": true
  1248. }
  1249. ],
  1250. "yaxis": {
  1251. "align": false,
  1252. "alignLevel": null
  1253. }
  1254. },
  1255. {
  1256. "aliasColors": {},
  1257. "bars": false,
  1258. "dashLength": 10,
  1259. "dashes": false,
  1260. "datasource": "${DS_PROMETHEUS}",
  1261. "description": "",
  1262. "editable": true,
  1263. "error": false,
  1264. "fill": 1,
  1265. "grid": {},
  1266. "gridPos": {
  1267. "h": 6,
  1268. "w": 24,
  1269. "x": 0,
  1270. "y": 45
  1271. },
  1272. "id": 15,
  1273. "isNew": true,
  1274. "legend": {
  1275. "alignAsTable": true,
  1276. "avg": true,
  1277. "current": true,
  1278. "hideEmpty": true,
  1279. "hideZero": true,
  1280. "max": false,
  1281. "min": false,
  1282. "rightSide": true,
  1283. "show": true,
  1284. "sideWidth": null,
  1285. "total": false,
  1286. "values": true
  1287. },
  1288. "lines": true,
  1289. "linewidth": 2,
  1290. "links": [],
  1291. "nullPointMode": "connected",
  1292. "percentage": false,
  1293. "pointradius": 5,
  1294. "points": false,
  1295. "renderer": "flot",
  1296. "seriesOverrides": [],
  1297. "spaceLength": 10,
  1298. "stack": false,
  1299. "steppedLine": false,
  1300. "targets": [
  1301. {
  1302. "expr": "rate(ClickHouseProfileEvents_ReadBufferFromFileDescriptorRead{environment=\"$environment\",job=\"$job\"}[1m])",
  1303. "format": "time_series",
  1304. "instant": false,
  1305. "intervalFactor": 2,
  1306. "legendFormat": "Number of Reads {{instance}}",
  1307. "refId": "A",
  1308. "step": 10
  1309. },
  1310. {
  1311. "expr": "rate(ClickHouseProfileEvents_ReadBufferFromFileDescriptorReadFailed{environment=\"$environment\",job=\"$job\"}[1m])",
  1312. "format": "time_series",
  1313. "instant": false,
  1314. "intervalFactor": 2,
  1315. "legendFormat": "Failed Reads {{instance}}",
  1316. "refId": "C",
  1317. "step": 10
  1318. },
  1319. {
  1320. "expr": "rate(ClickHouseProfileEvents_WriteBufferFromFileDescriptorWrite{environment=\"$environment\",job=\"$job\"}[1m])",
  1321. "format": "time_series",
  1322. "instant": false,
  1323. "intervalFactor": 2,
  1324. "legendFormat": "Number of Writes {{instance}}",
  1325. "refId": "B",
  1326. "step": 10
  1327. },
  1328. {
  1329. "expr": "rate(ClickHouseProfileEvents_WriteBufferFromFileDescriptorWriteFailed{environment=\"$environment\",job=\"$job\"}[1m])",
  1330. "format": "time_series",
  1331. "instant": false,
  1332. "intervalFactor": 2,
  1333. "legendFormat": "Failed Writes {{instance}}",
  1334. "refId": "D",
  1335. "step": 10
  1336. }
  1337. ],
  1338. "thresholds": [],
  1339. "timeFrom": null,
  1340. "timeShift": null,
  1341. "title": "Number of Read/Write with a File Descriptor",
  1342. "tooltip": {
  1343. "msResolution": false,
  1344. "shared": true,
  1345. "sort": 0,
  1346. "value_type": "cumulative"
  1347. },
  1348. "type": "graph",
  1349. "xaxis": {
  1350. "buckets": null,
  1351. "mode": "time",
  1352. "name": null,
  1353. "show": true,
  1354. "values": []
  1355. },
  1356. "yaxes": [
  1357. {
  1358. "format": "short",
  1359. "label": null,
  1360. "logBase": 1,
  1361. "max": null,
  1362. "min": null,
  1363. "show": true
  1364. },
  1365. {
  1366. "format": "short",
  1367. "label": null,
  1368. "logBase": 1,
  1369. "max": null,
  1370. "min": null,
  1371. "show": true
  1372. }
  1373. ],
  1374. "yaxis": {
  1375. "align": false,
  1376. "alignLevel": null
  1377. }
  1378. },
  1379. {
  1380. "aliasColors": {},
  1381. "bars": false,
  1382. "dashLength": 10,
  1383. "dashes": false,
  1384. "datasource": "${DS_PROMETHEUS}",
  1385. "description": "",
  1386. "editable": true,
  1387. "error": false,
  1388. "fill": 1,
  1389. "grid": {},
  1390. "gridPos": {
  1391. "h": 6,
  1392. "w": 24,
  1393. "x": 0,
  1394. "y": 51
  1395. },
  1396. "id": 16,
  1397. "isNew": true,
  1398. "legend": {
  1399. "alignAsTable": true,
  1400. "avg": true,
  1401. "current": true,
  1402. "hideEmpty": true,
  1403. "hideZero": true,
  1404. "max": false,
  1405. "min": false,
  1406. "rightSide": true,
  1407. "show": true,
  1408. "sideWidth": null,
  1409. "total": false,
  1410. "values": true
  1411. },
  1412. "lines": true,
  1413. "linewidth": 2,
  1414. "links": [],
  1415. "nullPointMode": "connected",
  1416. "percentage": false,
  1417. "pointradius": 5,
  1418. "points": false,
  1419. "renderer": "flot",
  1420. "seriesOverrides": [],
  1421. "spaceLength": 10,
  1422. "stack": false,
  1423. "steppedLine": false,
  1424. "targets": [
  1425. {
  1426. "expr": "rate(ClickHouseProfileEvents_ReadBufferFromFileDescriptorReadBytes{environment=\"$environment\",job=\"$job\"}[1m])",
  1427. "format": "time_series",
  1428. "instant": false,
  1429. "intervalFactor": 2,
  1430. "legendFormat": "Bytes of Reads {{instance}}",
  1431. "refId": "A",
  1432. "step": 10
  1433. },
  1434. {
  1435. "expr": "rate(ClickHouseProfileEvents_WriteBufferFromFileDescriptorWriteBytes{environment=\"$environment\",job=\"$job\"}[1m])",
  1436. "format": "time_series",
  1437. "instant": false,
  1438. "intervalFactor": 2,
  1439. "legendFormat": "Bytes of Writes {{instance}}",
  1440. "refId": "C",
  1441. "step": 10
  1442. }
  1443. ],
  1444. "thresholds": [],
  1445. "timeFrom": null,
  1446. "timeShift": null,
  1447. "title": "Bytes of Read/Write with a File Descriptor",
  1448. "tooltip": {
  1449. "msResolution": false,
  1450. "shared": true,
  1451. "sort": 0,
  1452. "value_type": "cumulative"
  1453. },
  1454. "type": "graph",
  1455. "xaxis": {
  1456. "buckets": null,
  1457. "mode": "time",
  1458. "name": null,
  1459. "show": true,
  1460. "values": []
  1461. },
  1462. "yaxes": [
  1463. {
  1464. "format": "decbytes",
  1465. "label": null,
  1466. "logBase": 1,
  1467. "max": null,
  1468. "min": null,
  1469. "show": true
  1470. },
  1471. {
  1472. "format": "short",
  1473. "label": null,
  1474. "logBase": 1,
  1475. "max": null,
  1476. "min": null,
  1477. "show": true
  1478. }
  1479. ],
  1480. "yaxis": {
  1481. "align": false,
  1482. "alignLevel": null
  1483. }
  1484. },
  1485. {
  1486. "aliasColors": {},
  1487. "bars": false,
  1488. "dashLength": 10,
  1489. "dashes": false,
  1490. "datasource": "${DS_PROMETHEUS}",
  1491. "editable": true,
  1492. "error": false,
  1493. "fill": 1,
  1494. "grid": {},
  1495. "gridPos": {
  1496. "h": 6,
  1497. "w": 24,
  1498. "x": 0,
  1499. "y": 57
  1500. },
  1501. "id": 11,
  1502. "isNew": true,
  1503. "legend": {
  1504. "alignAsTable": true,
  1505. "avg": true,
  1506. "current": true,
  1507. "hideEmpty": true,
  1508. "hideZero": true,
  1509. "max": false,
  1510. "min": false,
  1511. "rightSide": true,
  1512. "show": true,
  1513. "total": false,
  1514. "values": true
  1515. },
  1516. "lines": true,
  1517. "linewidth": 2,
  1518. "links": [],
  1519. "nullPointMode": "null",
  1520. "percentage": false,
  1521. "pointradius": 5,
  1522. "points": false,
  1523. "renderer": "flot",
  1524. "seriesOverrides": [],
  1525. "spaceLength": 10,
  1526. "stack": true,
  1527. "steppedLine": false,
  1528. "targets": [
  1529. {
  1530. "expr": "rate(ClickHouseProfileEvents_MarkCacheMisses{environment=\"$environment\",job=\"$job\"}[5m])",
  1531. "format": "time_series",
  1532. "intervalFactor": 2,
  1533. "legendFormat": "misses {{instance}}",
  1534. "refId": "A",
  1535. "step": 4
  1536. },
  1537. {
  1538. "expr": "rate(ClickHouseProfileEvents_MarkCacheHits{environment=\"$environment\",job=\"$job\"}[5m])",
  1539. "format": "time_series",
  1540. "intervalFactor": 2,
  1541. "legendFormat": "hits {{instance}}",
  1542. "refId": "B",
  1543. "step": 4
  1544. }
  1545. ],
  1546. "thresholds": [],
  1547. "timeFrom": null,
  1548. "timeShift": null,
  1549. "title": "Cache Rate",
  1550. "tooltip": {
  1551. "msResolution": false,
  1552. "shared": true,
  1553. "sort": 0,
  1554. "value_type": "cumulative"
  1555. },
  1556. "type": "graph",
  1557. "xaxis": {
  1558. "buckets": null,
  1559. "mode": "time",
  1560. "name": null,
  1561. "show": true,
  1562. "values": []
  1563. },
  1564. "yaxes": [
  1565. {
  1566. "format": "short",
  1567. "label": null,
  1568. "logBase": 1,
  1569. "max": null,
  1570. "min": null,
  1571. "show": true
  1572. },
  1573. {
  1574. "format": "short",
  1575. "label": null,
  1576. "logBase": 1,
  1577. "max": null,
  1578. "min": null,
  1579. "show": false
  1580. }
  1581. ],
  1582. "yaxis": {
  1583. "align": false,
  1584. "alignLevel": null
  1585. }
  1586. },
  1587. {
  1588. "collapsed": false,
  1589. "gridPos": {
  1590. "h": 1,
  1591. "w": 24,
  1592. "x": 0,
  1593. "y": 63
  1594. },
  1595. "id": 20,
  1596. "panels": [],
  1597. "title": "ReplicatedMergeTree",
  1598. "type": "row"
  1599. },
  1600. {
  1601. "aliasColors": {},
  1602. "bars": false,
  1603. "dashLength": 10,
  1604. "dashes": false,
  1605. "datasource": "${DS_PROMETHEUS}",
  1606. "description": "Number of times data parts of ReplicatedMergeTree tables were successfully merged.",
  1607. "fill": 1,
  1608. "gridPos": {
  1609. "h": 8,
  1610. "w": 12,
  1611. "x": 0,
  1612. "y": 64
  1613. },
  1614. "id": 22,
  1615. "legend": {
  1616. "alignAsTable": true,
  1617. "avg": true,
  1618. "current": true,
  1619. "max": false,
  1620. "min": false,
  1621. "show": true,
  1622. "total": false,
  1623. "values": true
  1624. },
  1625. "lines": true,
  1626. "linewidth": 1,
  1627. "links": [],
  1628. "nullPointMode": "null",
  1629. "percentage": false,
  1630. "pointradius": 5,
  1631. "points": false,
  1632. "renderer": "flot",
  1633. "seriesOverrides": [],
  1634. "spaceLength": 10,
  1635. "stack": false,
  1636. "steppedLine": false,
  1637. "targets": [
  1638. {
  1639. "expr": "rate(ClickHouseProfileEvents_ReplicatedPartMerges{environment=\"$environment\",job=\"$job\"}[1m])",
  1640. "format": "time_series",
  1641. "intervalFactor": 1,
  1642. "legendFormat": "{{instance}}",
  1643. "refId": "A"
  1644. }
  1645. ],
  1646. "thresholds": [],
  1647. "timeFrom": null,
  1648. "timeShift": null,
  1649. "title": "Parts of ReplicatedMergeTree Merged",
  1650. "tooltip": {
  1651. "shared": true,
  1652. "sort": 0,
  1653. "value_type": "individual"
  1654. },
  1655. "type": "graph",
  1656. "xaxis": {
  1657. "buckets": null,
  1658. "mode": "time",
  1659. "name": null,
  1660. "show": true,
  1661. "values": []
  1662. },
  1663. "yaxes": [
  1664. {
  1665. "format": "short",
  1666. "label": null,
  1667. "logBase": 1,
  1668. "max": null,
  1669. "min": null,
  1670. "show": true
  1671. },
  1672. {
  1673. "format": "short",
  1674. "label": null,
  1675. "logBase": 1,
  1676. "max": null,
  1677. "min": null,
  1678. "show": true
  1679. }
  1680. ],
  1681. "yaxis": {
  1682. "align": false,
  1683. "alignLevel": null
  1684. }
  1685. },
  1686. {
  1687. "aliasColors": {},
  1688. "bars": false,
  1689. "dashLength": 10,
  1690. "dashes": false,
  1691. "datasource": "${DS_PROMETHEUS}",
  1692. "description": "",
  1693. "fill": 1,
  1694. "gridPos": {
  1695. "h": 8,
  1696. "w": 12,
  1697. "x": 12,
  1698. "y": 64
  1699. },
  1700. "id": 26,
  1701. "legend": {
  1702. "alignAsTable": true,
  1703. "avg": true,
  1704. "current": true,
  1705. "max": false,
  1706. "min": false,
  1707. "show": true,
  1708. "total": false,
  1709. "values": true
  1710. },
  1711. "lines": true,
  1712. "linewidth": 1,
  1713. "links": [],
  1714. "nullPointMode": "null",
  1715. "percentage": false,
  1716. "pointradius": 5,
  1717. "points": false,
  1718. "renderer": "flot",
  1719. "seriesOverrides": [],
  1720. "spaceLength": 10,
  1721. "stack": false,
  1722. "steppedLine": false,
  1723. "targets": [
  1724. {
  1725. "expr": "rate(ClickHouseProfileEvents_ReplicatedPartMutations{environment=\"$environment\",job=\"$job\"}[1m])",
  1726. "format": "time_series",
  1727. "intervalFactor": 1,
  1728. "legendFormat": "{{instance}}",
  1729. "refId": "A"
  1730. }
  1731. ],
  1732. "thresholds": [],
  1733. "timeFrom": null,
  1734. "timeShift": null,
  1735. "title": "Mutations",
  1736. "tooltip": {
  1737. "shared": true,
  1738. "sort": 0,
  1739. "value_type": "individual"
  1740. },
  1741. "type": "graph",
  1742. "xaxis": {
  1743. "buckets": null,
  1744. "mode": "time",
  1745. "name": null,
  1746. "show": true,
  1747. "values": []
  1748. },
  1749. "yaxes": [
  1750. {
  1751. "format": "short",
  1752. "label": null,
  1753. "logBase": 1,
  1754. "max": null,
  1755. "min": null,
  1756. "show": true
  1757. },
  1758. {
  1759. "format": "short",
  1760. "label": null,
  1761. "logBase": 1,
  1762. "max": null,
  1763. "min": null,
  1764. "show": true
  1765. }
  1766. ],
  1767. "yaxis": {
  1768. "align": false,
  1769. "alignLevel": null
  1770. }
  1771. },
  1772. {
  1773. "collapsed": false,
  1774. "gridPos": {
  1775. "h": 1,
  1776. "w": 24,
  1777. "x": 0,
  1778. "y": 72
  1779. },
  1780. "id": 25,
  1781. "panels": [],
  1782. "title": "MergeTree",
  1783. "type": "row"
  1784. },
  1785. {
  1786. "aliasColors": {},
  1787. "bars": false,
  1788. "dashLength": 10,
  1789. "dashes": false,
  1790. "datasource": "${DS_PROMETHEUS}",
  1791. "description": "ClickHouseProfileEvents_SelectedRanges",
  1792. "fill": 1,
  1793. "gridPos": {
  1794. "h": 8,
  1795. "w": 8,
  1796. "x": 0,
  1797. "y": 73
  1798. },
  1799. "id": 23,
  1800. "legend": {
  1801. "alignAsTable": true,
  1802. "avg": true,
  1803. "current": true,
  1804. "max": false,
  1805. "min": false,
  1806. "show": true,
  1807. "total": false,
  1808. "values": true
  1809. },
  1810. "lines": true,
  1811. "linewidth": 1,
  1812. "links": [],
  1813. "nullPointMode": "null",
  1814. "percentage": false,
  1815. "pointradius": 5,
  1816. "points": false,
  1817. "renderer": "flot",
  1818. "seriesOverrides": [],
  1819. "spaceLength": 10,
  1820. "stack": false,
  1821. "steppedLine": false,
  1822. "targets": [
  1823. {
  1824. "expr": "rate(ClickHouseProfileEvents_SelectedRanges{environment=\"$environment\",job=\"$job\"}[1m])",
  1825. "format": "time_series",
  1826. "intervalFactor": 1,
  1827. "legendFormat": "{{instance}}",
  1828. "refId": "A"
  1829. }
  1830. ],
  1831. "thresholds": [],
  1832. "timeFrom": null,
  1833. "timeShift": null,
  1834. "title": "Selected Ranges",
  1835. "tooltip": {
  1836. "shared": true,
  1837. "sort": 0,
  1838. "value_type": "individual"
  1839. },
  1840. "type": "graph",
  1841. "xaxis": {
  1842. "buckets": null,
  1843. "mode": "time",
  1844. "name": null,
  1845. "show": true,
  1846. "values": []
  1847. },
  1848. "yaxes": [
  1849. {
  1850. "format": "short",
  1851. "label": null,
  1852. "logBase": 1,
  1853. "max": null,
  1854. "min": null,
  1855. "show": true
  1856. },
  1857. {
  1858. "format": "short",
  1859. "label": null,
  1860. "logBase": 1,
  1861. "max": null,
  1862. "min": null,
  1863. "show": true
  1864. }
  1865. ],
  1866. "yaxis": {
  1867. "align": false,
  1868. "alignLevel": null
  1869. }
  1870. },
  1871. {
  1872. "aliasColors": {},
  1873. "bars": false,
  1874. "dashLength": 10,
  1875. "dashes": false,
  1876. "datasource": "${DS_PROMETHEUS}",
  1877. "description": "Number of marks (index granules) selected to read from a MergeTree table.",
  1878. "fill": 1,
  1879. "gridPos": {
  1880. "h": 8,
  1881. "w": 8,
  1882. "x": 8,
  1883. "y": 73
  1884. },
  1885. "id": 27,
  1886. "legend": {
  1887. "alignAsTable": true,
  1888. "avg": true,
  1889. "current": true,
  1890. "max": false,
  1891. "min": false,
  1892. "show": true,
  1893. "total": false,
  1894. "values": true
  1895. },
  1896. "lines": true,
  1897. "linewidth": 1,
  1898. "links": [],
  1899. "nullPointMode": "null",
  1900. "percentage": false,
  1901. "pointradius": 5,
  1902. "points": false,
  1903. "renderer": "flot",
  1904. "seriesOverrides": [],
  1905. "spaceLength": 10,
  1906. "stack": false,
  1907. "steppedLine": false,
  1908. "targets": [
  1909. {
  1910. "expr": "rate(ClickHouseProfileEvents_SelectedMarks{environment=\"$environment\",job=\"$job\"}[1m])",
  1911. "format": "time_series",
  1912. "intervalFactor": 1,
  1913. "legendFormat": "{{instance}}",
  1914. "refId": "A"
  1915. }
  1916. ],
  1917. "thresholds": [],
  1918. "timeFrom": null,
  1919. "timeShift": null,
  1920. "title": "Selected Marks",
  1921. "tooltip": {
  1922. "shared": true,
  1923. "sort": 0,
  1924. "value_type": "individual"
  1925. },
  1926. "type": "graph",
  1927. "xaxis": {
  1928. "buckets": null,
  1929. "mode": "time",
  1930. "name": null,
  1931. "show": true,
  1932. "values": []
  1933. },
  1934. "yaxes": [
  1935. {
  1936. "format": "short",
  1937. "label": null,
  1938. "logBase": 1,
  1939. "max": null,
  1940. "min": null,
  1941. "show": true
  1942. },
  1943. {
  1944. "format": "short",
  1945. "label": null,
  1946. "logBase": 1,
  1947. "max": null,
  1948. "min": null,
  1949. "show": true
  1950. }
  1951. ],
  1952. "yaxis": {
  1953. "align": false,
  1954. "alignLevel": null
  1955. }
  1956. },
  1957. {
  1958. "aliasColors": {},
  1959. "bars": false,
  1960. "dashLength": 10,
  1961. "dashes": false,
  1962. "datasource": "${DS_PROMETHEUS}",
  1963. "description": "Number of launched background merges.",
  1964. "fill": 1,
  1965. "gridPos": {
  1966. "h": 8,
  1967. "w": 8,
  1968. "x": 16,
  1969. "y": 73
  1970. },
  1971. "id": 28,
  1972. "legend": {
  1973. "alignAsTable": true,
  1974. "avg": true,
  1975. "current": true,
  1976. "max": false,
  1977. "min": false,
  1978. "show": true,
  1979. "total": false,
  1980. "values": true
  1981. },
  1982. "lines": true,
  1983. "linewidth": 1,
  1984. "links": [],
  1985. "nullPointMode": "null",
  1986. "percentage": false,
  1987. "pointradius": 5,
  1988. "points": false,
  1989. "renderer": "flot",
  1990. "seriesOverrides": [],
  1991. "spaceLength": 10,
  1992. "stack": false,
  1993. "steppedLine": false,
  1994. "targets": [
  1995. {
  1996. "expr": "rate(ClickHouseProfileEvents_Merge{environment=\"$environment\",job=\"$job\"}[1m])",
  1997. "format": "time_series",
  1998. "intervalFactor": 1,
  1999. "legendFormat": "{{instance}}",
  2000. "refId": "A"
  2001. }
  2002. ],
  2003. "thresholds": [],
  2004. "timeFrom": null,
  2005. "timeShift": null,
  2006. "title": "Merge",
  2007. "tooltip": {
  2008. "shared": true,
  2009. "sort": 0,
  2010. "value_type": "individual"
  2011. },
  2012. "type": "graph",
  2013. "xaxis": {
  2014. "buckets": null,
  2015. "mode": "time",
  2016. "name": null,
  2017. "show": true,
  2018. "values": []
  2019. },
  2020. "yaxes": [
  2021. {
  2022. "format": "short",
  2023. "label": null,
  2024. "logBase": 1,
  2025. "max": null,
  2026. "min": null,
  2027. "show": true
  2028. },
  2029. {
  2030. "format": "short",
  2031. "label": null,
  2032. "logBase": 1,
  2033. "max": null,
  2034. "min": null,
  2035. "show": true
  2036. }
  2037. ],
  2038. "yaxis": {
  2039. "align": false,
  2040. "alignLevel": null
  2041. }
  2042. },
  2043. {
  2044. "aliasColors": {},
  2045. "bars": false,
  2046. "dashLength": 10,
  2047. "dashes": false,
  2048. "datasource": "${DS_PROMETHEUS}",
  2049. "editable": true,
  2050. "error": false,
  2051. "fill": 1,
  2052. "grid": {},
  2053. "gridPos": {
  2054. "h": 8,
  2055. "w": 16,
  2056. "x": 0,
  2057. "y": 81
  2058. },
  2059. "id": 2,
  2060. "isNew": true,
  2061. "legend": {
  2062. "alignAsTable": true,
  2063. "avg": true,
  2064. "current": true,
  2065. "hideEmpty": true,
  2066. "hideZero": true,
  2067. "max": false,
  2068. "min": false,
  2069. "rightSide": true,
  2070. "show": true,
  2071. "total": false,
  2072. "values": true
  2073. },
  2074. "lines": true,
  2075. "linewidth": 2,
  2076. "links": [],
  2077. "nullPointMode": "null",
  2078. "percentage": false,
  2079. "pointradius": 5,
  2080. "points": false,
  2081. "renderer": "flot",
  2082. "seriesOverrides": [
  2083. {
  2084. "alias": "/merge.*/",
  2085. "bars": false,
  2086. "lines": true
  2087. },
  2088. {
  2089. "alias": "/rate.*/",
  2090. "bars": true,
  2091. "lines": false,
  2092. "yaxis": 2,
  2093. "zindex": -1
  2094. }
  2095. ],
  2096. "spaceLength": 10,
  2097. "stack": false,
  2098. "steppedLine": true,
  2099. "targets": [
  2100. {
  2101. "expr": "ClickHouseMetrics_Merge{environment=\"$environment\",job=\"$job\"}",
  2102. "format": "time_series",
  2103. "intervalFactor": 2,
  2104. "legendFormat": "merge {{job}}",
  2105. "refId": "A",
  2106. "step": 4
  2107. },
  2108. {
  2109. "expr": "rate(ClickHouseProfileEvents_MergedRows{environment=\"$environment\",job=\"$job\"}[1m])",
  2110. "format": "time_series",
  2111. "hide": false,
  2112. "intervalFactor": 2,
  2113. "legendFormat": "rate {{job}}",
  2114. "refId": "B",
  2115. "step": 4
  2116. }
  2117. ],
  2118. "thresholds": [],
  2119. "timeFrom": null,
  2120. "timeShift": null,
  2121. "title": "Merge",
  2122. "tooltip": {
  2123. "msResolution": false,
  2124. "shared": true,
  2125. "sort": 2,
  2126. "value_type": "cumulative"
  2127. },
  2128. "type": "graph",
  2129. "xaxis": {
  2130. "buckets": null,
  2131. "mode": "time",
  2132. "name": null,
  2133. "show": true,
  2134. "values": []
  2135. },
  2136. "yaxes": [
  2137. {
  2138. "format": "short",
  2139. "label": null,
  2140. "logBase": 1,
  2141. "max": null,
  2142. "min": null,
  2143. "show": true
  2144. },
  2145. {
  2146. "format": "short",
  2147. "label": null,
  2148. "logBase": 1,
  2149. "max": null,
  2150. "min": null,
  2151. "show": true
  2152. }
  2153. ],
  2154. "yaxis": {
  2155. "align": false,
  2156. "alignLevel": null
  2157. }
  2158. },
  2159. {
  2160. "aliasColors": {},
  2161. "bars": false,
  2162. "dashLength": 10,
  2163. "dashes": false,
  2164. "datasource": "${DS_PROMETHEUS}",
  2165. "description": "Total time spent for background merges.",
  2166. "fill": 1,
  2167. "gridPos": {
  2168. "h": 8,
  2169. "w": 8,
  2170. "x": 16,
  2171. "y": 81
  2172. },
  2173. "id": 30,
  2174. "legend": {
  2175. "alignAsTable": true,
  2176. "avg": true,
  2177. "current": true,
  2178. "max": false,
  2179. "min": false,
  2180. "show": true,
  2181. "total": false,
  2182. "values": true
  2183. },
  2184. "lines": true,
  2185. "linewidth": 1,
  2186. "links": [],
  2187. "nullPointMode": "null",
  2188. "percentage": false,
  2189. "pointradius": 5,
  2190. "points": false,
  2191. "renderer": "flot",
  2192. "seriesOverrides": [],
  2193. "spaceLength": 10,
  2194. "stack": false,
  2195. "steppedLine": false,
  2196. "targets": [
  2197. {
  2198. "expr": "rate(ClickHouseProfileEvents_MergesTimeMilliseconds{environment=\"$environment\",job=\"$job\"}[1m])",
  2199. "format": "time_series",
  2200. "intervalFactor": 1,
  2201. "legendFormat": "{{instance}}",
  2202. "refId": "A"
  2203. }
  2204. ],
  2205. "thresholds": [],
  2206. "timeFrom": null,
  2207. "timeShift": null,
  2208. "title": "Merges Time",
  2209. "tooltip": {
  2210. "shared": true,
  2211. "sort": 0,
  2212. "value_type": "individual"
  2213. },
  2214. "type": "graph",
  2215. "xaxis": {
  2216. "buckets": null,
  2217. "mode": "time",
  2218. "name": null,
  2219. "show": true,
  2220. "values": []
  2221. },
  2222. "yaxes": [
  2223. {
  2224. "format": "ms",
  2225. "label": null,
  2226. "logBase": 1,
  2227. "max": null,
  2228. "min": null,
  2229. "show": true
  2230. },
  2231. {
  2232. "format": "short",
  2233. "label": null,
  2234. "logBase": 1,
  2235. "max": null,
  2236. "min": null,
  2237. "show": true
  2238. }
  2239. ],
  2240. "yaxis": {
  2241. "align": false,
  2242. "alignLevel": null
  2243. }
  2244. }
  2245. ],
  2246. "schemaVersion": 16,
  2247. "style": "dark",
  2248. "tags": [
  2249. "clickhouse",
  2250. "db"
  2251. ],
  2252. "templating": {
  2253. "list": [
  2254. {
  2255. "allValue": null,
  2256. "current": {},
  2257. "datasource": "${DS_PROMETHEUS}",
  2258. "hide": 0,
  2259. "includeAll": false,
  2260. "label": "Environment",
  2261. "multi": false,
  2262. "name": "environment",
  2263. "options": [],
  2264. "query": "label_values(ClickHouseProfileEvents_Query, environment)",
  2265. "refresh": 1,
  2266. "regex": "",
  2267. "sort": 0,
  2268. "tagValuesQuery": "",
  2269. "tags": [],
  2270. "tagsQuery": "",
  2271. "type": "query",
  2272. "useTags": false
  2273. },
  2274. {
  2275. "allValue": null,
  2276. "current": {},
  2277. "datasource": "${DS_PROMETHEUS}",
  2278. "hide": 0,
  2279. "includeAll": false,
  2280. "label": "Job",
  2281. "multi": false,
  2282. "name": "job",
  2283. "options": [],
  2284. "query": "label_values(ClickHouseProfileEvents_Query{environment=\"$environment\"}, job)",
  2285. "refresh": 1,
  2286. "regex": "",
  2287. "sort": 0,
  2288. "tagValuesQuery": "",
  2289. "tags": [],
  2290. "tagsQuery": "",
  2291. "type": "query",
  2292. "useTags": false
  2293. }
  2294. ]
  2295. },
  2296. "time": {
  2297. "from": "now-3h",
  2298. "to": "now"
  2299. },
  2300. "timepicker": {
  2301. "refresh_intervals": [
  2302. "5s",
  2303. "10s",
  2304. "30s",
  2305. "1m",
  2306. "5m",
  2307. "15m",
  2308. "30m",
  2309. "1h",
  2310. "2h",
  2311. "1d"
  2312. ],
  2313. "time_options": [
  2314. "5m",
  2315. "15m",
  2316. "1h",
  2317. "6h",
  2318. "12h",
  2319. "24h",
  2320. "2d",
  2321. "7d",
  2322. "30d"
  2323. ]
  2324. },
  2325. "timezone": "browser",
  2326. "title": "Clickhouse internal exporter",
  2327. "uid": "MddcNtTWk",
  2328. "version": 13
  2329. }