datasource_tests_elasticsearch_v6.json 15 KB

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