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 22 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. {
  2. "name": "SQLServer",
  3. "tags": "",
  4. "ident": "",
  5. "configs": {
  6. "links": [],
  7. "panels": [
  8. {
  9. "type": "table",
  10. "id": "28f81145-c0d2-49bc-9b6c-28e969c25537",
  11. "layout": {
  12. "h": 3,
  13. "w": 24,
  14. "x": 0,
  15. "y": 0,
  16. "i": "28f81145-c0d2-49bc-9b6c-28e969c25537",
  17. "isResizable": true
  18. },
  19. "version": "3.0.0",
  20. "datasourceCate": "prometheus",
  21. "datasourceValue": "${datasource}",
  22. "targets": [
  23. {
  24. "expr": "sqlserver_performance_value{counter=\"Total Server Memory (KB)\",serverName=\"$instance\"}",
  25. "legend": "Total RAM",
  26. "refId": "A",
  27. "maxDataPoints": 240
  28. },
  29. {
  30. "expr": "sqlserver_performance_value{counter=\"Total Server Memory (KB)\",serverName=\"$instance\"}-sqlserver_performance_value{counter=\"Used memory (KB)\",serverName=\"$instance\"}",
  31. "legend": "RAM availbable",
  32. "refId": "B",
  33. "maxDataPoints": 240
  34. },
  35. {
  36. "expr": "sqlserver_performance_value{counter=\"Free Space in tempdb (KB)\",serverName=\"$instance\"}",
  37. "legend": "Pagefile available size",
  38. "refId": "C",
  39. "maxDataPoints": 240
  40. },
  41. {
  42. "expr": "sqlserver_performance_value{counter=\"Page life expectancy\",serverName=\"$instance\"}",
  43. "legend": "Total page faults",
  44. "refId": "D",
  45. "maxDataPoints": 240
  46. },
  47. {
  48. "expr": "sqlserver_performance_value{counter=\"Batch Requests/sec\",serverName=\"$instance\"}",
  49. "legend": "Batch reqs /sec",
  50. "refId": "E",
  51. "maxDataPoints": 240
  52. },
  53. {
  54. "expr": "sqlserver_performance_value{counter=\"Page life expectancy\",serverName=\"$instance\"}",
  55. "legend": "Page life expectancy(sec)",
  56. "refId": "F",
  57. "maxDataPoints": 240
  58. },
  59. {
  60. "expr": "sqlserver_performance_value{counter=\"Number of Deadlocks/sec\",serverName=\"$instance\"}",
  61. "legend": "Deadlocks",
  62. "refId": "G",
  63. "maxDataPoints": 240
  64. },
  65. {
  66. "expr": "sqlserver_performance_value{counter=\"Errors/sec\",serverName=\"$instance\"}",
  67. "legend": "User errors /sec",
  68. "refId": "H",
  69. "maxDataPoints": 240
  70. },
  71. {
  72. "expr": "mssql_kill_connection_errors{job=~\"$Job\"}-0",
  73. "legend": "Kill conn errors /sec",
  74. "refId": "I",
  75. "maxDataPoints": 240
  76. },
  77. {
  78. "expr": "sqlserver_cpu_system_idle_cpu{serverName=\"$instance\"}",
  79. "refId": "K",
  80. "maxDataPoints": 240,
  81. "legend": "sqlserver_cpu_system_idle"
  82. },
  83. {
  84. "expr": "sqlserver_up{serverName=\"$instance\"}",
  85. "refId": "L",
  86. "maxDataPoints": 240,
  87. "legend": "sqlserver_up"
  88. }
  89. ],
  90. "transformations": [
  91. {
  92. "id": "organize",
  93. "options": {}
  94. }
  95. ],
  96. "name": "Server resource overview",
  97. "maxPerRow": 4,
  98. "custom": {
  99. "showHeader": true,
  100. "colorMode": "background",
  101. "calc": "lastNotNull",
  102. "displayMode": "labelValuesToRows",
  103. "aggrDimension": [],
  104. "linkMode": "appendLinkColumn"
  105. },
  106. "options": {
  107. "standardOptions": {}
  108. },
  109. "overrides": [
  110. {
  111. "matcher": {
  112. "id": "byFrameRefID",
  113. "value": "F"
  114. },
  115. "properties": {
  116. "standardOptions": {
  117. "util": "seconds"
  118. },
  119. "valueMappings": [
  120. {
  121. "match": {
  122. "from": 0,
  123. "special": 0,
  124. "to": 100
  125. },
  126. "result": {
  127. "color": "#ff9919"
  128. },
  129. "type": "range"
  130. },
  131. {
  132. "match": {
  133. "from": 100
  134. },
  135. "result": {
  136. "color": "#3fc453"
  137. },
  138. "type": "range"
  139. }
  140. ]
  141. }
  142. },
  143. {
  144. "matcher": {
  145. "id": "byFrameRefID",
  146. "value": "D"
  147. },
  148. "properties": {
  149. "standardOptions": {
  150. "util": "none"
  151. }
  152. },
  153. "type": "special"
  154. },
  155. {
  156. "matcher": {
  157. "id": "byFrameRefID",
  158. "value": "H"
  159. },
  160. "properties": {
  161. "standardOptions": {
  162. "util": "bytesSecSI"
  163. }
  164. },
  165. "type": "special"
  166. },
  167. {
  168. "matcher": {
  169. "id": "byFrameRefID",
  170. "value": "B"
  171. },
  172. "properties": {
  173. "standardOptions": {
  174. "util": "bytesIEC"
  175. },
  176. "valueMappings": [
  177. {
  178. "match": {
  179. "from": 102400000,
  180. "textValue": "200",
  181. "to": null
  182. },
  183. "result": {
  184. "color": "#2c9d3d"
  185. },
  186. "type": "range"
  187. },
  188. {
  189. "match": {
  190. "from": 0,
  191. "to": 100000000
  192. },
  193. "result": {
  194. "color": "#ffae39"
  195. },
  196. "type": "range"
  197. }
  198. ]
  199. },
  200. "type": "special"
  201. },
  202. {
  203. "matcher": {
  204. "id": "byFrameRefID",
  205. "value": "G"
  206. },
  207. "properties": {
  208. "standardOptions": {},
  209. "valueMappings": [
  210. {
  211. "match": {
  212. "special": 0
  213. },
  214. "result": {
  215. "color": "#3fc453"
  216. },
  217. "type": "special"
  218. }
  219. ]
  220. },
  221. "type": "special"
  222. },
  223. {
  224. "matcher": {
  225. "id": "byFrameRefID",
  226. "value": "I"
  227. },
  228. "properties": {
  229. "standardOptions": {},
  230. "valueMappings": [
  231. {
  232. "match": {
  233. "special": 0
  234. },
  235. "result": {
  236. "color": "#3fc453"
  237. },
  238. "type": "special"
  239. },
  240. {
  241. "match": {
  242. "from": 1
  243. },
  244. "result": {
  245. "color": "#ff9919"
  246. },
  247. "type": "range"
  248. }
  249. ]
  250. },
  251. "type": "special"
  252. }
  253. ]
  254. },
  255. {
  256. "collapsed": true,
  257. "id": "77467d35-8002-4211-a95d-ed6278567ab4",
  258. "layout": {
  259. "h": 1,
  260. "w": 24,
  261. "x": 0,
  262. "y": 3,
  263. "i": "77467d35-8002-4211-a95d-ed6278567ab4",
  264. "isResizable": false
  265. },
  266. "name": "Summary",
  267. "panels": [],
  268. "type": "row",
  269. "version": "3.0.0"
  270. },
  271. {
  272. "type": "timeseries",
  273. "id": "f8795e89-0e61-43ec-9c05-90424bf7eb60",
  274. "layout": {
  275. "h": 7,
  276. "i": "f8795e89-0e61-43ec-9c05-90424bf7eb60",
  277. "isResizable": true,
  278. "w": 7,
  279. "x": 0,
  280. "y": 4
  281. },
  282. "version": "3.0.0",
  283. "datasourceCate": "prometheus",
  284. "datasourceValue": "${datasource}",
  285. "targets": [
  286. {
  287. "expr": "sqlserver_performance_value{counter=\"Logical Connections\",serverName=\"$instance\"}",
  288. "legend": "{{sql_instance}} ",
  289. "refId": "A",
  290. "maxDataPoints": 240
  291. }
  292. ],
  293. "transformations": [
  294. {
  295. "id": "organize",
  296. "options": {}
  297. }
  298. ],
  299. "name": "当前数据库连接",
  300. "links": [],
  301. "maxPerRow": 4,
  302. "options": {
  303. "tooltip": {
  304. "mode": "all",
  305. "sort": "none"
  306. },
  307. "legend": {
  308. "displayMode": "table",
  309. "behaviour": "showItem"
  310. },
  311. "standardOptions": {},
  312. "thresholds": {
  313. "steps": [
  314. {
  315. "color": "#634CD9",
  316. "value": null,
  317. "type": "base"
  318. }
  319. ]
  320. }
  321. },
  322. "custom": {
  323. "drawStyle": "lines",
  324. "lineInterpolation": "smooth",
  325. "spanNulls": false,
  326. "lineWidth": 1,
  327. "fillOpacity": 0,
  328. "gradientMode": "none",
  329. "stack": "off",
  330. "scaleDistribution": {
  331. "type": "linear"
  332. }
  333. },
  334. "overrides": [
  335. {
  336. "matcher": {
  337. "id": "byFrameRefID"
  338. },
  339. "properties": {
  340. "rightYAxisDisplay": "off"
  341. }
  342. }
  343. ]
  344. },
  345. {
  346. "type": "timeseries",
  347. "id": "9247c782-4abf-4423-84ba-6453d5491e23",
  348. "layout": {
  349. "h": 7,
  350. "w": 9,
  351. "x": 7,
  352. "y": 4,
  353. "i": "9247c782-4abf-4423-84ba-6453d5491e23",
  354. "isResizable": true
  355. },
  356. "version": "3.0.0",
  357. "datasourceCate": "prometheus",
  358. "datasourceValue": "${datasource}",
  359. "targets": [
  360. {
  361. "expr": "sqlserver_performance_value{counter=\"Log Growths\",serverName=\"$instance\"}",
  362. "legend": "{{instance}}",
  363. "refId": "A",
  364. "maxDataPoints": 240
  365. }
  366. ],
  367. "transformations": [
  368. {
  369. "id": "organize",
  370. "options": {}
  371. }
  372. ],
  373. "name": "DB Log growth since last restart",
  374. "links": [],
  375. "maxPerRow": 4,
  376. "options": {
  377. "tooltip": {
  378. "mode": "all",
  379. "sort": "none"
  380. },
  381. "legend": {
  382. "displayMode": "list",
  383. "placement": "right",
  384. "columns": [
  385. "last"
  386. ],
  387. "behaviour": "showItem"
  388. },
  389. "standardOptions": {},
  390. "thresholds": {
  391. "steps": [
  392. {
  393. "color": "#634CD9",
  394. "value": null,
  395. "type": "base"
  396. }
  397. ]
  398. }
  399. },
  400. "custom": {
  401. "drawStyle": "lines",
  402. "lineInterpolation": "linear",
  403. "spanNulls": false,
  404. "lineWidth": 1,
  405. "fillOpacity": 0,
  406. "gradientMode": "none",
  407. "stack": "off",
  408. "scaleDistribution": {
  409. "type": "linear"
  410. }
  411. },
  412. "overrides": [
  413. {
  414. "matcher": {
  415. "id": "byFrameRefID"
  416. },
  417. "properties": {
  418. "rightYAxisDisplay": "off"
  419. }
  420. }
  421. ]
  422. },
  423. {
  424. "type": "timeseries",
  425. "id": "47686441-a9d6-4ede-8901-5d05ce3ef8b8",
  426. "layout": {
  427. "h": 7,
  428. "w": 8,
  429. "x": 16,
  430. "y": 4,
  431. "i": "47686441-a9d6-4ede-8901-5d05ce3ef8b8",
  432. "isResizable": true
  433. },
  434. "version": "3.0.0",
  435. "datasourceCate": "prometheus",
  436. "datasourceValue": "${datasource}",
  437. "targets": [
  438. {
  439. "expr": "sqlserver_performance_value{counter=\"Number of Deadlocks/sec\",serverName=\"$instance\"}",
  440. "refId": "C",
  441. "maxDataPoints": 240,
  442. "legend": "Number of Deadlocks/sec"
  443. }
  444. ],
  445. "transformations": [
  446. {
  447. "id": "organize",
  448. "options": {}
  449. }
  450. ],
  451. "name": "Number of Deadlocks/sec",
  452. "links": [],
  453. "maxPerRow": 4,
  454. "options": {
  455. "tooltip": {
  456. "mode": "all",
  457. "sort": "none"
  458. },
  459. "legend": {
  460. "displayMode": "list",
  461. "placement": "right",
  462. "columns": [
  463. "last"
  464. ],
  465. "behaviour": "showItem"
  466. },
  467. "standardOptions": {
  468. "util": "milliseconds"
  469. },
  470. "thresholds": {
  471. "steps": [
  472. {
  473. "color": "#634CD9",
  474. "value": null,
  475. "type": "base"
  476. }
  477. ]
  478. }
  479. },
  480. "custom": {
  481. "drawStyle": "lines",
  482. "lineInterpolation": "linear",
  483. "spanNulls": false,
  484. "lineWidth": 1,
  485. "fillOpacity": 0,
  486. "gradientMode": "none",
  487. "stack": "off",
  488. "scaleDistribution": {
  489. "type": "linear"
  490. }
  491. },
  492. "overrides": [
  493. {
  494. "matcher": {
  495. "id": "byFrameRefID"
  496. },
  497. "properties": {
  498. "rightYAxisDisplay": "off"
  499. }
  500. }
  501. ]
  502. },
  503. {
  504. "type": "barGauge",
  505. "id": "de76a102-cf5e-40b6-9e2d-833446b48ec2",
  506. "layout": {
  507. "h": 7,
  508. "w": 7,
  509. "x": 0,
  510. "y": 11,
  511. "i": "28d8f090-b9c1-4bf9-a2ff-fa4f1d3da661",
  512. "isResizable": true
  513. },
  514. "version": "3.0.0",
  515. "datasourceCate": "prometheus",
  516. "datasourceValue": "${datasource}",
  517. "targets": [
  518. {
  519. "expr": "sqlserver_volume_space_available_space_bytes{serverName=\"$instance\"}",
  520. "legend": "硬盘空闲空间",
  521. "refId": "A",
  522. "maxDataPoints": 240,
  523. "instant": true
  524. }
  525. ],
  526. "transformations": [
  527. {
  528. "id": "organize",
  529. "options": {}
  530. }
  531. ],
  532. "name": "硬盘空闲空间",
  533. "links": [],
  534. "maxPerRow": 4,
  535. "custom": {
  536. "calc": "lastNotNull",
  537. "baseColor": "#9470FF",
  538. "serieWidth": 20,
  539. "sortOrder": "desc"
  540. },
  541. "options": {
  542. "standardOptions": {}
  543. }
  544. },
  545. {
  546. "type": "timeseries",
  547. "id": "9f7ac94a-cc31-4a9b-a242-3ef3daaccd9e",
  548. "layout": {
  549. "h": 7,
  550. "w": 9,
  551. "x": 7,
  552. "y": 11,
  553. "i": "db5406f3-7877-42b5-a5d8-23d02be39d4f",
  554. "isResizable": true
  555. },
  556. "version": "3.0.0",
  557. "datasourceCate": "prometheus",
  558. "datasourceValue": "${datasource}",
  559. "targets": [
  560. {
  561. "expr": "sqlserver_cpu_sqlserver_process_cpu{serverName=\"$instance\"}",
  562. "legend": "CPU",
  563. "refId": "A",
  564. "maxDataPoints": 240
  565. }
  566. ],
  567. "transformations": [
  568. {
  569. "id": "organize",
  570. "options": {}
  571. }
  572. ],
  573. "name": "CPU",
  574. "links": [],
  575. "maxPerRow": 4,
  576. "options": {
  577. "tooltip": {
  578. "mode": "all",
  579. "sort": "none"
  580. },
  581. "legend": {
  582. "displayMode": "list",
  583. "placement": "right",
  584. "columns": [
  585. "last"
  586. ],
  587. "behaviour": "showItem"
  588. },
  589. "standardOptions": {},
  590. "thresholds": {
  591. "steps": [
  592. {
  593. "color": "#634CD9",
  594. "value": null,
  595. "type": "base"
  596. }
  597. ]
  598. }
  599. },
  600. "custom": {
  601. "drawStyle": "lines",
  602. "lineInterpolation": "linear",
  603. "spanNulls": false,
  604. "lineWidth": 1,
  605. "fillOpacity": 0,
  606. "gradientMode": "none",
  607. "stack": "off",
  608. "scaleDistribution": {
  609. "type": "linear"
  610. }
  611. },
  612. "overrides": [
  613. {
  614. "matcher": {
  615. "id": "byFrameRefID"
  616. },
  617. "properties": {
  618. "rightYAxisDisplay": "off"
  619. }
  620. }
  621. ]
  622. },
  623. {
  624. "type": "timeseries",
  625. "id": "875eba8d-b99d-462d-99e9-00bd9682e713",
  626. "layout": {
  627. "h": 7,
  628. "w": 8,
  629. "x": 16,
  630. "y": 11,
  631. "i": "92d37458-9b5a-4f61-8779-9e5f23e98d27",
  632. "isResizable": true
  633. },
  634. "version": "3.0.0",
  635. "datasourceCate": "prometheus",
  636. "datasourceValue": "${datasource}",
  637. "targets": [
  638. {
  639. "expr": "sqlserver_database_io_read_latency_ms{serverName=\"$instance\",database_name=\"h3cloud\"}",
  640. "legend": "io_read_latency_ms",
  641. "refId": "A",
  642. "maxDataPoints": 240,
  643. "time": {
  644. "start": "now-1h",
  645. "end": "now"
  646. },
  647. "instant": false
  648. }
  649. ],
  650. "transformations": [
  651. {
  652. "id": "organize",
  653. "options": {}
  654. }
  655. ],
  656. "name": "Total wait time of I/O stall",
  657. "links": [],
  658. "maxPerRow": 4,
  659. "options": {
  660. "tooltip": {
  661. "mode": "all",
  662. "sort": "none"
  663. },
  664. "legend": {
  665. "displayMode": "list",
  666. "placement": "right",
  667. "columns": [
  668. "last"
  669. ],
  670. "behaviour": "showItem"
  671. },
  672. "standardOptions": {
  673. "util": "milliseconds"
  674. },
  675. "thresholds": {
  676. "steps": [
  677. {
  678. "color": "#634CD9",
  679. "value": null,
  680. "type": "base"
  681. }
  682. ]
  683. }
  684. },
  685. "custom": {
  686. "drawStyle": "lines",
  687. "lineInterpolation": "linear",
  688. "spanNulls": false,
  689. "lineWidth": 1,
  690. "fillOpacity": 0,
  691. "gradientMode": "none",
  692. "stack": "off",
  693. "scaleDistribution": {
  694. "type": "linear"
  695. }
  696. },
  697. "overrides": [
  698. {
  699. "matcher": {
  700. "id": "byFrameRefID"
  701. },
  702. "properties": {
  703. "rightYAxisDisplay": "off"
  704. }
  705. }
  706. ]
  707. },
  708. {
  709. "collapsed": true,
  710. "id": "bb996a6d-ddec-46c3-8c64-dd2a57a13fd4",
  711. "layout": {
  712. "h": 1,
  713. "w": 24,
  714. "x": 0,
  715. "y": 18,
  716. "i": "bb996a6d-ddec-46c3-8c64-dd2a57a13fd4",
  717. "isResizable": false
  718. },
  719. "name": "Database I/O wait of stall detailed",
  720. "panels": [],
  721. "type": "row",
  722. "version": "3.0.0"
  723. },
  724. {
  725. "type": "timeseries",
  726. "id": "9c5037d4-563c-412f-b4e9-103d90ecc62d",
  727. "layout": {
  728. "h": 8,
  729. "w": 24,
  730. "x": 0,
  731. "y": 19,
  732. "i": "9c5037d4-563c-412f-b4e9-103d90ecc62d",
  733. "isResizable": true
  734. },
  735. "version": "3.0.0",
  736. "datasourceCate": "prometheus",
  737. "datasourceValue": "${datasource}",
  738. "targets": [
  739. {
  740. "expr": "sqlserver_database_io_rg_write_stall_ms{serverName=\"$instance\"}+sqlserver_database_io_rg_read_stall_ms{serverName=\"$instance\"}",
  741. "legend": "{{database_name}}",
  742. "refId": "A",
  743. "maxDataPoints": 240
  744. }
  745. ],
  746. "transformations": [
  747. {
  748. "id": "organize",
  749. "options": {}
  750. }
  751. ],
  752. "name": "Database wait by I/O stall ",
  753. "links": [],
  754. "description": "",
  755. "repeat": "database",
  756. "maxPerRow": 3,
  757. "options": {
  758. "tooltip": {
  759. "mode": "all",
  760. "sort": "none"
  761. },
  762. "legend": {
  763. "displayMode": "list",
  764. "placement": "right",
  765. "columns": [
  766. "last"
  767. ],
  768. "behaviour": "showItem"
  769. },
  770. "standardOptions": {
  771. "util": "milliseconds"
  772. },
  773. "thresholds": {
  774. "steps": [
  775. {
  776. "color": "#634CD9",
  777. "value": null,
  778. "type": "base"
  779. }
  780. ]
  781. }
  782. },
  783. "custom": {
  784. "drawStyle": "lines",
  785. "lineInterpolation": "linear",
  786. "spanNulls": false,
  787. "lineWidth": 1,
  788. "fillOpacity": 0,
  789. "gradientMode": "none",
  790. "stack": "off",
  791. "scaleDistribution": {
  792. "type": "linear"
  793. }
  794. },
  795. "overrides": [
  796. {
  797. "matcher": {
  798. "id": "byFrameRefID"
  799. },
  800. "properties": {
  801. "rightYAxisDisplay": "off"
  802. }
  803. }
  804. ]
  805. }
  806. ],
  807. "var": [
  808. {
  809. "name": "datasource",
  810. "label": "DS_PROMETHEUS",
  811. "type": "datasource",
  812. "definition": "prometheus"
  813. },
  814. {
  815. "name": "instance",
  816. "type": "query",
  817. "datasource": {
  818. "cate": "prometheus",
  819. "value": "${datasource}"
  820. },
  821. "definition": "label_values(sqlserver_up,sql_instance)"
  822. }
  823. ],
  824. "version": "3.0.0"
  825. }
  826. }