You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sqlserver.json 14 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. {
  2. "name": "Microsoft SQL Server",
  3. "tags": "",
  4. "ident": "",
  5. "configs": {
  6. "version": "3.0.0",
  7. "links": [],
  8. "var": [
  9. {
  10. "type": "datasource",
  11. "name": "DS_PROMETHEUS",
  12. "definition": "prometheus"
  13. },
  14. {
  15. "type": "query",
  16. "name": "Job",
  17. "definition": "label_values(mssql_instance_local_time, job)",
  18. "allValue": null,
  19. "allOption": false,
  20. "multi": false,
  21. "reg": "",
  22. "hide": false,
  23. "datasource": {
  24. "cate": "prometheus",
  25. "value": "${DS_PROMETHEUS}"
  26. }
  27. },
  28. {
  29. "type": "query",
  30. "name": "database",
  31. "definition": "label_values(mssql_connections,database)",
  32. "allValue": null,
  33. "allOption": true,
  34. "multi": false,
  35. "reg": "",
  36. "hide": false,
  37. "datasource": {
  38. "cate": "prometheus",
  39. "value": "${DS_PROMETHEUS}"
  40. }
  41. }
  42. ],
  43. "panels": [
  44. {
  45. "type": "table",
  46. "id": "28f81145-c0d2-49bc-9b6c-28e969c25537",
  47. "layout": {
  48. "h": 3,
  49. "w": 24,
  50. "x": 0,
  51. "y": 0,
  52. "i": "28f81145-c0d2-49bc-9b6c-28e969c25537",
  53. "isResizable": true
  54. },
  55. "version": "3.0.0",
  56. "datasourceCate": "prometheus",
  57. "datasourceValue": "${DS_PROMETHEUS}",
  58. "targets": [
  59. {
  60. "expr": "mssql_total_physical_memory_kb{job=~\"$Job\"}-0",
  61. "refId": "A",
  62. "legend": "Total RAM"
  63. },
  64. {
  65. "expr": "mssql_available_physical_memory_kb{job=~\"$Job\"}-0",
  66. "refId": "B",
  67. "legend": "RAM availbable"
  68. },
  69. {
  70. "expr": "mssql_available_page_file_kb{job=~\"$Job\"}-0",
  71. "refId": "C",
  72. "legend": "Pagefile available size"
  73. },
  74. {
  75. "expr": "mssql_page_fault_count{job=~\"$Job\"}-0",
  76. "refId": "D",
  77. "legend": "Total page faults"
  78. },
  79. {
  80. "expr": "mssql_batch_requests{job=~\"$Job\"}-0",
  81. "refId": "E",
  82. "legend": "Batch reqs /sec"
  83. },
  84. {
  85. "expr": "mssql_page_life_expectancy{job=~\"$Job\"}-0",
  86. "refId": "F",
  87. "legend": "Page life expectancy(sec)"
  88. },
  89. {
  90. "expr": "mssql_deadlocks{job=~\"$Job\"}-0",
  91. "refId": "G",
  92. "legend": "Deadlocks"
  93. },
  94. {
  95. "expr": "mssql_user_errors{job=~\"$Job\"}-0",
  96. "refId": "H",
  97. "legend": "User errors /sec"
  98. },
  99. {
  100. "expr": "mssql_kill_connection_errors{job=~\"$Job\"}-0",
  101. "refId": "I",
  102. "legend": "Kill conn errors /sec"
  103. }
  104. ],
  105. "transformations": [
  106. {
  107. "id": "organize",
  108. "options": {}
  109. }
  110. ],
  111. "name": "$Job:Server resource overview",
  112. "maxPerRow": 4,
  113. "custom": {
  114. "showHeader": true,
  115. "colorMode": "background",
  116. "calc": "lastNotNull",
  117. "displayMode": "labelValuesToRows",
  118. "aggrDimension": [],
  119. "linkMode": "appendLinkColumn"
  120. },
  121. "options": {
  122. "standardOptions": {}
  123. },
  124. "overrides": [
  125. {
  126. "matcher": {
  127. "id": "byFrameRefID",
  128. "value": "F"
  129. },
  130. "properties": {
  131. "standardOptions": {
  132. "util": "seconds"
  133. },
  134. "valueMappings": [
  135. {
  136. "type": "range",
  137. "result": {
  138. "color": "#ff9919"
  139. },
  140. "match": {
  141. "special": 0,
  142. "from": 0,
  143. "to": 100
  144. }
  145. },
  146. {
  147. "type": "range",
  148. "result": {
  149. "color": "#3fc453"
  150. },
  151. "match": {
  152. "from": 100
  153. }
  154. }
  155. ]
  156. }
  157. },
  158. {
  159. "type": "special",
  160. "matcher": {
  161. "id": "byFrameRefID",
  162. "value": "D"
  163. },
  164. "properties": {
  165. "standardOptions": {
  166. "util": "none"
  167. }
  168. }
  169. },
  170. {
  171. "type": "special",
  172. "matcher": {
  173. "id": "byFrameRefID",
  174. "value": "H"
  175. },
  176. "properties": {
  177. "standardOptions": {
  178. "util": "bytesSecSI"
  179. }
  180. }
  181. },
  182. {
  183. "type": "special",
  184. "matcher": {
  185. "id": "byFrameRefID",
  186. "value": "B"
  187. },
  188. "properties": {
  189. "valueMappings": [
  190. {
  191. "type": "range",
  192. "result": {
  193. "color": "#2c9d3d"
  194. },
  195. "match": {
  196. "textValue": "200",
  197. "from": 102400000,
  198. "to": null
  199. }
  200. },
  201. {
  202. "type": "range",
  203. "result": {
  204. "color": "#ffae39"
  205. },
  206. "match": {
  207. "from": 0,
  208. "to": 100000000
  209. }
  210. }
  211. ],
  212. "standardOptions": {
  213. "util": "bytesIEC"
  214. }
  215. }
  216. },
  217. {
  218. "type": "special",
  219. "matcher": {
  220. "id": "byFrameRefID",
  221. "value": "G"
  222. },
  223. "properties": {
  224. "valueMappings": [
  225. {
  226. "type": "special",
  227. "result": {
  228. "color": "#3fc453"
  229. },
  230. "match": {
  231. "special": 0
  232. }
  233. }
  234. ],
  235. "standardOptions": {}
  236. }
  237. },
  238. {
  239. "type": "special",
  240. "matcher": {
  241. "id": "byFrameRefID",
  242. "value": "I"
  243. },
  244. "properties": {
  245. "valueMappings": [
  246. {
  247. "type": "special",
  248. "result": {
  249. "color": "#3fc453"
  250. },
  251. "match": {
  252. "special": 0
  253. }
  254. },
  255. {
  256. "type": "range",
  257. "result": {
  258. "color": "#ff9919"
  259. },
  260. "match": {
  261. "from": 1
  262. }
  263. }
  264. ],
  265. "standardOptions": {}
  266. }
  267. }
  268. ]
  269. },
  270. {
  271. "version": "3.0.0",
  272. "id": "77467d35-8002-4211-a95d-ed6278567ab4",
  273. "type": "row",
  274. "name": "Summary",
  275. "collapsed": true,
  276. "layout": {
  277. "h": 1,
  278. "w": 24,
  279. "x": 0,
  280. "y": 3,
  281. "i": "77467d35-8002-4211-a95d-ed6278567ab4",
  282. "isResizable": false
  283. },
  284. "panels": []
  285. },
  286. {
  287. "type": "barGauge",
  288. "id": "f8795e89-0e61-43ec-9c05-90424bf7eb60",
  289. "layout": {
  290. "h": 7,
  291. "w": 7,
  292. "x": 0,
  293. "y": 4,
  294. "i": "f8795e89-0e61-43ec-9c05-90424bf7eb60",
  295. "isResizable": true
  296. },
  297. "version": "3.0.0",
  298. "datasourceCate": "prometheus",
  299. "datasourceValue": "${DS_PROMETHEUS}",
  300. "targets": [
  301. {
  302. "refId": "A",
  303. "expr": "mssql_connections{}",
  304. "legend": "{{database}}"
  305. }
  306. ],
  307. "transformations": [
  308. {
  309. "id": "organize",
  310. "options": {}
  311. }
  312. ],
  313. "name": "Current database connections",
  314. "links": [],
  315. "maxPerRow": 4,
  316. "custom": {
  317. "calc": "lastNotNull",
  318. "baseColor": "#2c9d3d",
  319. "serieWidth": 20,
  320. "sortOrder": "desc"
  321. },
  322. "options": {
  323. "valueMappings": [],
  324. "standardOptions": {
  325. "util": "none"
  326. }
  327. }
  328. },
  329. {
  330. "type": "timeseries",
  331. "id": "9247c782-4abf-4423-84ba-6453d5491e23",
  332. "layout": {
  333. "h": 7,
  334. "w": 9,
  335. "x": 7,
  336. "y": 4,
  337. "i": "9247c782-4abf-4423-84ba-6453d5491e23",
  338. "isResizable": true
  339. },
  340. "version": "3.0.0",
  341. "datasourceCate": "prometheus",
  342. "datasourceValue": "${DS_PROMETHEUS}",
  343. "targets": [
  344. {
  345. "refId": "A",
  346. "expr": "mssql_log_growths",
  347. "legend": "{{database}}"
  348. }
  349. ],
  350. "transformations": [
  351. {
  352. "id": "organize",
  353. "options": {}
  354. }
  355. ],
  356. "name": "DB Log growth since last restart",
  357. "links": [],
  358. "maxPerRow": 4,
  359. "options": {
  360. "tooltip": {
  361. "mode": "all",
  362. "sort": "none"
  363. },
  364. "legend": {
  365. "displayMode": "list",
  366. "placement": "right",
  367. "columns": [
  368. "last"
  369. ],
  370. "behaviour": "showItem"
  371. },
  372. "standardOptions": {},
  373. "thresholds": {
  374. "steps": [
  375. {
  376. "color": "#634CD9",
  377. "value": null,
  378. "type": "base"
  379. }
  380. ]
  381. }
  382. },
  383. "custom": {
  384. "drawStyle": "lines",
  385. "lineInterpolation": "linear",
  386. "spanNulls": false,
  387. "lineWidth": 1,
  388. "fillOpacity": 0,
  389. "gradientMode": "none",
  390. "stack": "off",
  391. "scaleDistribution": {
  392. "type": "linear"
  393. }
  394. }
  395. },
  396. {
  397. "type": "timeseries",
  398. "id": "47686441-a9d6-4ede-8901-5d05ce3ef8b8",
  399. "layout": {
  400. "h": 7,
  401. "w": 8,
  402. "x": 16,
  403. "y": 4,
  404. "i": "47686441-a9d6-4ede-8901-5d05ce3ef8b8",
  405. "isResizable": true
  406. },
  407. "version": "3.0.0",
  408. "datasourceCate": "prometheus",
  409. "datasourceValue": "${DS_PROMETHEUS}",
  410. "targets": [
  411. {
  412. "refId": "A",
  413. "expr": "mssql_io_stall_total{job=~\"$Job\"}",
  414. "legend": "{{database}}"
  415. }
  416. ],
  417. "transformations": [
  418. {
  419. "id": "organize",
  420. "options": {}
  421. }
  422. ],
  423. "name": "Total wait time of I/O stall",
  424. "links": [],
  425. "maxPerRow": 4,
  426. "options": {
  427. "tooltip": {
  428. "mode": "all",
  429. "sort": "none"
  430. },
  431. "legend": {
  432. "displayMode": "list",
  433. "placement": "right",
  434. "columns": [
  435. "last"
  436. ],
  437. "behaviour": "showItem"
  438. },
  439. "standardOptions": {
  440. "util": "milliseconds"
  441. },
  442. "thresholds": {
  443. "steps": [
  444. {
  445. "color": "#634CD9",
  446. "value": null,
  447. "type": "base"
  448. }
  449. ]
  450. }
  451. },
  452. "custom": {
  453. "drawStyle": "lines",
  454. "lineInterpolation": "linear",
  455. "spanNulls": false,
  456. "lineWidth": 1,
  457. "fillOpacity": 0,
  458. "gradientMode": "none",
  459. "stack": "off",
  460. "scaleDistribution": {
  461. "type": "linear"
  462. }
  463. }
  464. },
  465. {
  466. "version": "3.0.0",
  467. "id": "bb996a6d-ddec-46c3-8c64-dd2a57a13fd4",
  468. "type": "row",
  469. "name": "Database I/O wait of stall detailed",
  470. "collapsed": true,
  471. "layout": {
  472. "h": 1,
  473. "w": 24,
  474. "x": 0,
  475. "y": 11,
  476. "i": "bb996a6d-ddec-46c3-8c64-dd2a57a13fd4",
  477. "isResizable": false
  478. },
  479. "panels": []
  480. },
  481. {
  482. "type": "timeseries",
  483. "id": "9c5037d4-563c-412f-b4e9-103d90ecc62d",
  484. "layout": {
  485. "h": 8,
  486. "w": 24,
  487. "x": 0,
  488. "y": 12,
  489. "i": "9c5037d4-563c-412f-b4e9-103d90ecc62d",
  490. "isResizable": true
  491. },
  492. "version": "3.0.0",
  493. "datasourceCate": "prometheus",
  494. "datasourceValue": "${DS_PROMETHEUS}",
  495. "targets": [
  496. {
  497. "refId": "A",
  498. "expr": "mssql_io_stall{database=~\"^$database\"}",
  499. "legend": "{{type}}"
  500. }
  501. ],
  502. "transformations": [
  503. {
  504. "id": "organize",
  505. "options": {}
  506. }
  507. ],
  508. "name": "Database ${database} wait by I/O stall ",
  509. "links": [],
  510. "description": "",
  511. "repeat": "database",
  512. "maxPerRow": 3,
  513. "options": {
  514. "tooltip": {
  515. "mode": "all",
  516. "sort": "none"
  517. },
  518. "legend": {
  519. "displayMode": "list",
  520. "placement": "right",
  521. "columns": [
  522. "last"
  523. ],
  524. "behaviour": "showItem"
  525. },
  526. "standardOptions": {
  527. "util": "milliseconds"
  528. },
  529. "thresholds": {
  530. "steps": [
  531. {
  532. "color": "#634CD9",
  533. "value": null,
  534. "type": "base"
  535. }
  536. ]
  537. }
  538. },
  539. "custom": {
  540. "drawStyle": "lines",
  541. "lineInterpolation": "linear",
  542. "spanNulls": false,
  543. "lineWidth": 1,
  544. "fillOpacity": 0,
  545. "gradientMode": "none",
  546. "stack": "off",
  547. "scaleDistribution": {
  548. "type": "linear"
  549. }
  550. }
  551. }
  552. ]
  553. }
  554. }