datasource_tests_elasticsearch_v6.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": false,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "limit": 100,
  11. "name": "Annotations & Alerts",
  12. "showIn": 0,
  13. "type": "dashboard"
  14. },
  15. {
  16. "datasource": "Elastic 5 Logs",
  17. "enable": false,
  18. "iconColor": "rgba(255, 96, 96, 1)",
  19. "limit": 100,
  20. "name": "test",
  21. "query": "",
  22. "showIn": 0,
  23. "textField": "description",
  24. "type": "alert"
  25. }
  26. ]
  27. },
  28. "editable": true,
  29. "gnetId": null,
  30. "graphTooltip": 0,
  31. "iteration": 1542303999511,
  32. "links": [
  33. {
  34. "icon": "external link",
  35. "tags": [
  36. "gdev",
  37. "elasticsearch"
  38. ],
  39. "type": "dashboards"
  40. }
  41. ],
  42. "panels": [
  43. {
  44. "aliasColors": {},
  45. "bars": false,
  46. "dashLength": 10,
  47. "dashes": false,
  48. "datasource": "gdev-elasticsearch-v6-metrics",
  49. "editable": true,
  50. "error": false,
  51. "fill": 1,
  52. "grid": {},
  53. "gridPos": {
  54. "h": 7,
  55. "w": 24,
  56. "x": 0,
  57. "y": 0
  58. },
  59. "id": 1,
  60. "legend": {
  61. "alignAsTable": true,
  62. "avg": false,
  63. "current": false,
  64. "max": true,
  65. "min": false,
  66. "rightSide": true,
  67. "show": true,
  68. "total": false,
  69. "values": true
  70. },
  71. "lines": true,
  72. "linewidth": 2,
  73. "links": [],
  74. "nullPointMode": "connected",
  75. "percentage": false,
  76. "pointradius": 5,
  77. "points": false,
  78. "renderer": "flot",
  79. "seriesOverrides": [],
  80. "spaceLength": 10,
  81. "stack": false,
  82. "steppedLine": false,
  83. "targets": [
  84. {
  85. "bucketAggs": [
  86. {
  87. "field": "@hostname",
  88. "id": "3",
  89. "settings": {
  90. "min_doc_count": 1,
  91. "order": "asc",
  92. "orderBy": "1",
  93. "size": "5"
  94. },
  95. "type": "terms"
  96. },
  97. {
  98. "field": "@timestamp",
  99. "id": "2",
  100. "settings": {
  101. "interval": "auto",
  102. "min_doc_count": 0,
  103. "trimEdges": 0
  104. },
  105. "type": "date_histogram"
  106. }
  107. ],
  108. "dsType": "elasticsearch",
  109. "metrics": [
  110. {
  111. "field": "@value",
  112. "id": "1",
  113. "meta": {},
  114. "settings": {},
  115. "type": "max"
  116. }
  117. ],
  118. "query": "*",
  119. "refId": "A",
  120. "target": "",
  121. "timeField": "@timestamp"
  122. }
  123. ],
  124. "thresholds": [],
  125. "timeFrom": null,
  126. "timeRegions": [],
  127. "timeShift": null,
  128. "title": "Top 5 servers",
  129. "tooltip": {
  130. "msResolution": true,
  131. "shared": true,
  132. "sort": 0,
  133. "value_type": "cumulative"
  134. },
  135. "type": "graph",
  136. "xaxis": {
  137. "buckets": null,
  138. "mode": "time",
  139. "name": null,
  140. "show": true,
  141. "values": []
  142. },
  143. "yaxes": [
  144. {
  145. "format": "short",
  146. "logBase": 1,
  147. "max": null,
  148. "min": null,
  149. "show": true
  150. },
  151. {
  152. "format": "short",
  153. "logBase": 1,
  154. "max": null,
  155. "min": null,
  156. "show": true
  157. }
  158. ],
  159. "yaxis": {
  160. "align": false,
  161. "alignLevel": null
  162. }
  163. },
  164. {
  165. "aliasColors": {
  166. "Count": "#6ED0E0"
  167. },
  168. "bars": false,
  169. "dashLength": 10,
  170. "dashes": false,
  171. "datasource": "gdev-elasticsearch-v6-metrics",
  172. "editable": true,
  173. "error": false,
  174. "fill": 1,
  175. "grid": {},
  176. "gridPos": {
  177. "h": 6,
  178. "w": 12,
  179. "x": 0,
  180. "y": 7
  181. },
  182. "id": 2,
  183. "legend": {
  184. "alignAsTable": true,
  185. "avg": true,
  186. "current": false,
  187. "max": false,
  188. "min": false,
  189. "rightSide": true,
  190. "show": true,
  191. "total": false,
  192. "values": true
  193. },
  194. "lines": true,
  195. "linewidth": 2,
  196. "links": [],
  197. "nullPointMode": "connected",
  198. "percentage": false,
  199. "pointradius": 5,
  200. "points": false,
  201. "renderer": "flot",
  202. "seriesOverrides": [
  203. {
  204. "alias": "Count",
  205. "lines": false,
  206. "yaxis": 2,
  207. "zindex": -1
  208. }
  209. ],
  210. "spaceLength": 10,
  211. "stack": false,
  212. "steppedLine": false,
  213. "targets": [
  214. {
  215. "alias": "{{metric}}",
  216. "bucketAggs": [
  217. {
  218. "field": "@timestamp",
  219. "id": "2",
  220. "settings": {
  221. "interval": "5m",
  222. "min_doc_count": 0,
  223. "trimEdges": 0
  224. },
  225. "type": "date_histogram"
  226. }
  227. ],
  228. "dsType": "elasticsearch",
  229. "metrics": [
  230. {
  231. "field": "@value",
  232. "id": "1",
  233. "meta": {},
  234. "settings": {
  235. "percents": [
  236. 25,
  237. 50,
  238. 75,
  239. 95,
  240. 99
  241. ]
  242. },
  243. "type": "percentiles"
  244. }
  245. ],
  246. "query": "@metric:cpu",
  247. "refId": "A",
  248. "target": "",
  249. "timeField": "@timestamp"
  250. }
  251. ],
  252. "thresholds": [],
  253. "timeFrom": null,
  254. "timeRegions": [],
  255. "timeShift": null,
  256. "title": "Percentiles & Metric filter",
  257. "tooltip": {
  258. "msResolution": false,
  259. "shared": true,
  260. "sort": 0,
  261. "value_type": "cumulative"
  262. },
  263. "type": "graph",
  264. "xaxis": {
  265. "buckets": null,
  266. "mode": "time",
  267. "name": null,
  268. "show": true,
  269. "values": []
  270. },
  271. "yaxes": [
  272. {
  273. "format": "short",
  274. "logBase": 1,
  275. "max": null,
  276. "min": null,
  277. "show": true
  278. },
  279. {
  280. "format": "short",
  281. "logBase": 1,
  282. "max": null,
  283. "min": null,
  284. "show": true
  285. }
  286. ],
  287. "yaxis": {
  288. "align": false,
  289. "alignLevel": null
  290. }
  291. },
  292. {
  293. "aliasColors": {
  294. "Count": "#6ED0E0"
  295. },
  296. "bars": false,
  297. "dashLength": 10,
  298. "dashes": false,
  299. "datasource": "gdev-elasticsearch-v6-metrics",
  300. "editable": true,
  301. "error": false,
  302. "fill": 1,
  303. "grid": {},
  304. "gridPos": {
  305. "h": 6,
  306. "w": 12,
  307. "x": 12,
  308. "y": 7
  309. },
  310. "id": 3,
  311. "legend": {
  312. "alignAsTable": true,
  313. "avg": true,
  314. "current": false,
  315. "max": false,
  316. "min": false,
  317. "rightSide": true,
  318. "show": true,
  319. "total": false,
  320. "values": true
  321. },
  322. "lines": true,
  323. "linewidth": 2,
  324. "links": [],
  325. "nullPointMode": "connected",
  326. "percentage": false,
  327. "pointradius": 5,
  328. "points": false,
  329. "renderer": "flot",
  330. "seriesOverrides": [
  331. {
  332. "alias": "Count",
  333. "lines": false,
  334. "yaxis": 2,
  335. "zindex": -1
  336. }
  337. ],
  338. "spaceLength": 10,
  339. "stack": false,
  340. "steppedLine": false,
  341. "targets": [
  342. {
  343. "alias": "{{metric}}",
  344. "bucketAggs": [
  345. {
  346. "field": "@timestamp",
  347. "id": "2",
  348. "settings": {
  349. "interval": "auto",
  350. "min_doc_count": 0,
  351. "trimEdges": 0
  352. },
  353. "type": "date_histogram"
  354. }
  355. ],
  356. "dsType": "elasticsearch",
  357. "metrics": [
  358. {
  359. "field": "@value",
  360. "id": "1",
  361. "meta": {
  362. "std_deviation_bounds_lower": true,
  363. "std_deviation_bounds_upper": true
  364. },
  365. "settings": {},
  366. "type": "extended_stats"
  367. }
  368. ],
  369. "query": "@metric:cpu",
  370. "refId": "A",
  371. "target": "",
  372. "timeField": "@timestamp"
  373. }
  374. ],
  375. "thresholds": [],
  376. "timeFrom": null,
  377. "timeRegions": [],
  378. "timeShift": null,
  379. "title": "Standard dev",
  380. "tooltip": {
  381. "msResolution": true,
  382. "shared": true,
  383. "sort": 0,
  384. "value_type": "cumulative"
  385. },
  386. "type": "graph",
  387. "xaxis": {
  388. "buckets": null,
  389. "mode": "time",
  390. "name": null,
  391. "show": true,
  392. "values": []
  393. },
  394. "yaxes": [
  395. {
  396. "format": "short",
  397. "logBase": 1,
  398. "max": null,
  399. "min": null,
  400. "show": true
  401. },
  402. {
  403. "format": "short",
  404. "logBase": 1,
  405. "max": null,
  406. "min": null,
  407. "show": true
  408. }
  409. ],
  410. "yaxis": {
  411. "align": false,
  412. "alignLevel": null
  413. }
  414. },
  415. {
  416. "columns": [
  417. {
  418. "text": "@hostname",
  419. "value": "@hostname"
  420. },
  421. {
  422. "text": "Average",
  423. "value": "Average"
  424. },
  425. {
  426. "text": "Max",
  427. "value": "Max"
  428. },
  429. {
  430. "text": "Sum",
  431. "value": "Sum"
  432. }
  433. ],
  434. "datasource": "gdev-elasticsearch-v6-metrics",
  435. "editable": true,
  436. "error": false,
  437. "fontSize": "100%",
  438. "gridPos": {
  439. "h": 7,
  440. "w": 24,
  441. "x": 0,
  442. "y": 13
  443. },
  444. "id": 6,
  445. "links": [],
  446. "pageSize": null,
  447. "scroll": true,
  448. "showHeader": true,
  449. "sort": {
  450. "col": 0,
  451. "desc": true
  452. },
  453. "styles": [
  454. {
  455. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  456. "pattern": "@timestamp",
  457. "type": "date"
  458. },
  459. {
  460. "colorMode": null,
  461. "colors": [
  462. "rgba(245, 54, 54, 0.9)",
  463. "rgba(237, 129, 40, 0.89)",
  464. "rgba(50, 172, 45, 0.97)"
  465. ],
  466. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  467. "decimals": 2,
  468. "pattern": "/.*/",
  469. "thresholds": [],
  470. "type": "number",
  471. "unit": "short"
  472. }
  473. ],
  474. "targets": [
  475. {
  476. "bucketAggs": [
  477. {
  478. "field": "@hostname",
  479. "id": "2",
  480. "settings": {
  481. "min_doc_count": 1,
  482. "order": "asc",
  483. "orderBy": "_term",
  484. "size": "0"
  485. },
  486. "type": "terms"
  487. }
  488. ],
  489. "dsType": "elasticsearch",
  490. "metrics": [
  491. {
  492. "field": "@value",
  493. "id": "1",
  494. "meta": {},
  495. "settings": {},
  496. "type": "avg"
  497. },
  498. {
  499. "field": "@value",
  500. "id": "3",
  501. "meta": {},
  502. "settings": {},
  503. "type": "max"
  504. },
  505. {
  506. "field": "@value",
  507. "id": "4",
  508. "meta": {},
  509. "settings": {},
  510. "type": "sum"
  511. }
  512. ],
  513. "refId": "B",
  514. "timeField": "@timestamp"
  515. }
  516. ],
  517. "title": "ES Metrics",
  518. "transform": "table",
  519. "type": "table"
  520. },
  521. {
  522. "columns": [
  523. {
  524. "text": "@timestamp",
  525. "value": "@timestamp"
  526. },
  527. {
  528. "text": "@message",
  529. "value": "@message"
  530. },
  531. {
  532. "text": "tags",
  533. "value": "tags"
  534. },
  535. {
  536. "text": "description",
  537. "value": "description"
  538. }
  539. ],
  540. "datasource": "gdev-elasticsearch-v6-logs",
  541. "editable": true,
  542. "error": false,
  543. "fontSize": "100%",
  544. "gridPos": {
  545. "h": 7,
  546. "w": 24,
  547. "x": 0,
  548. "y": 20
  549. },
  550. "id": 5,
  551. "links": [],
  552. "pageSize": null,
  553. "scroll": true,
  554. "showHeader": true,
  555. "sort": {
  556. "col": 0,
  557. "desc": true
  558. },
  559. "styles": [
  560. {
  561. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  562. "pattern": "@timestamp",
  563. "type": "date"
  564. }
  565. ],
  566. "targets": [
  567. {
  568. "bucketAggs": [],
  569. "dsType": "elasticsearch",
  570. "metrics": [
  571. {
  572. "field": "select field",
  573. "id": "1",
  574. "meta": {},
  575. "settings": {
  576. "size": 500
  577. },
  578. "type": "raw_document"
  579. }
  580. ],
  581. "refId": "A",
  582. "target": "",
  583. "timeField": "@timestamp"
  584. }
  585. ],
  586. "title": "ES Log query",
  587. "transform": "json",
  588. "type": "table"
  589. }
  590. ],
  591. "schemaVersion": 16,
  592. "style": "dark",
  593. "tags": [
  594. "elasticsearch",
  595. "gdev"
  596. ],
  597. "templating": {
  598. "list": [
  599. {
  600. "datasource": "gdev-elasticsearch-v6-metrics",
  601. "filters": [],
  602. "hide": 0,
  603. "label": "",
  604. "name": "Filters",
  605. "skipUrlSync": false,
  606. "type": "adhoc"
  607. }
  608. ]
  609. },
  610. "time": {
  611. "from": "now-30m",
  612. "to": "now"
  613. },
  614. "timepicker": {
  615. "collapse": false,
  616. "enable": true,
  617. "notice": false,
  618. "now": true,
  619. "refresh_intervals": [
  620. "5s",
  621. "10s",
  622. "30s",
  623. "1m",
  624. "5m",
  625. "15m",
  626. "30m",
  627. "1h",
  628. "2h",
  629. "1d"
  630. ],
  631. "status": "Stable",
  632. "time_options": [
  633. "5m",
  634. "15m",
  635. "1h",
  636. "6h",
  637. "12h",
  638. "24h",
  639. "2d",
  640. "7d",
  641. "30d"
  642. ],
  643. "type": "timepicker"
  644. },
  645. "timezone": "browser",
  646. "title": "Datasource tests - Elasticsearch v6",
  647. "uid": "NF8Pq2Biz",
  648. "version": 2
  649. }