datasource_tests_elasticsearch_v5.json 14 KB

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