elasticsearch_v7.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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-v7-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. "id": 2342,
  32. "iteration": 1555593977614,
  33. "links": [
  34. {
  35. "asDropdown": true,
  36. "icon": "external link",
  37. "tags": ["gdev", "elasticsearch", "datasource-test"],
  38. "title": "Dashboards",
  39. "type": "dashboards"
  40. }
  41. ],
  42. "panels": [
  43. {
  44. "aliasColors": {},
  45. "bars": false,
  46. "dashLength": 10,
  47. "dashes": false,
  48. "datasource": "gdev-elasticsearch-v7-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-v7-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": [25, 50, 75, 95, 99]
  236. },
  237. "type": "percentiles"
  238. }
  239. ],
  240. "query": "@metric:cpu",
  241. "refId": "A",
  242. "target": "",
  243. "timeField": "@timestamp"
  244. }
  245. ],
  246. "thresholds": [],
  247. "timeFrom": null,
  248. "timeRegions": [],
  249. "timeShift": null,
  250. "title": "Percentiles & Metric filter",
  251. "tooltip": {
  252. "msResolution": false,
  253. "shared": true,
  254. "sort": 0,
  255. "value_type": "cumulative"
  256. },
  257. "type": "graph",
  258. "xaxis": {
  259. "buckets": null,
  260. "mode": "time",
  261. "name": null,
  262. "show": true,
  263. "values": []
  264. },
  265. "yaxes": [
  266. {
  267. "format": "short",
  268. "logBase": 1,
  269. "max": null,
  270. "min": null,
  271. "show": true
  272. },
  273. {
  274. "format": "short",
  275. "logBase": 1,
  276. "max": null,
  277. "min": null,
  278. "show": true
  279. }
  280. ],
  281. "yaxis": {
  282. "align": false,
  283. "alignLevel": null
  284. }
  285. },
  286. {
  287. "aliasColors": {
  288. "Count": "#6ED0E0"
  289. },
  290. "bars": false,
  291. "dashLength": 10,
  292. "dashes": false,
  293. "datasource": "gdev-elasticsearch-v7-metrics",
  294. "editable": true,
  295. "error": false,
  296. "fill": 1,
  297. "grid": {},
  298. "gridPos": {
  299. "h": 6,
  300. "w": 12,
  301. "x": 12,
  302. "y": 7
  303. },
  304. "id": 3,
  305. "legend": {
  306. "alignAsTable": true,
  307. "avg": true,
  308. "current": false,
  309. "max": false,
  310. "min": false,
  311. "rightSide": true,
  312. "show": true,
  313. "total": false,
  314. "values": true
  315. },
  316. "lines": true,
  317. "linewidth": 2,
  318. "links": [],
  319. "nullPointMode": "connected",
  320. "percentage": false,
  321. "pointradius": 5,
  322. "points": false,
  323. "renderer": "flot",
  324. "seriesOverrides": [
  325. {
  326. "alias": "Count",
  327. "lines": false,
  328. "yaxis": 2,
  329. "zindex": -1
  330. }
  331. ],
  332. "spaceLength": 10,
  333. "stack": false,
  334. "steppedLine": false,
  335. "targets": [
  336. {
  337. "alias": "{{metric}}",
  338. "bucketAggs": [
  339. {
  340. "field": "@timestamp",
  341. "id": "2",
  342. "settings": {
  343. "interval": "auto",
  344. "min_doc_count": 0,
  345. "trimEdges": 0
  346. },
  347. "type": "date_histogram"
  348. }
  349. ],
  350. "dsType": "elasticsearch",
  351. "metrics": [
  352. {
  353. "field": "@value",
  354. "id": "1",
  355. "meta": {
  356. "std_deviation_bounds_lower": true,
  357. "std_deviation_bounds_upper": true
  358. },
  359. "settings": {},
  360. "type": "extended_stats"
  361. }
  362. ],
  363. "query": "@metric:cpu",
  364. "refId": "A",
  365. "target": "",
  366. "timeField": "@timestamp"
  367. }
  368. ],
  369. "thresholds": [],
  370. "timeFrom": null,
  371. "timeRegions": [],
  372. "timeShift": null,
  373. "title": "Standard dev",
  374. "tooltip": {
  375. "msResolution": true,
  376. "shared": true,
  377. "sort": 0,
  378. "value_type": "cumulative"
  379. },
  380. "type": "graph",
  381. "xaxis": {
  382. "buckets": null,
  383. "mode": "time",
  384. "name": null,
  385. "show": true,
  386. "values": []
  387. },
  388. "yaxes": [
  389. {
  390. "format": "short",
  391. "logBase": 1,
  392. "max": null,
  393. "min": null,
  394. "show": true
  395. },
  396. {
  397. "format": "short",
  398. "logBase": 1,
  399. "max": null,
  400. "min": null,
  401. "show": true
  402. }
  403. ],
  404. "yaxis": {
  405. "align": false,
  406. "alignLevel": null
  407. }
  408. },
  409. {
  410. "columns": [
  411. {
  412. "text": "@hostname",
  413. "value": "@hostname"
  414. },
  415. {
  416. "text": "Average",
  417. "value": "Average"
  418. },
  419. {
  420. "text": "Max",
  421. "value": "Max"
  422. },
  423. {
  424. "text": "Sum",
  425. "value": "Sum"
  426. }
  427. ],
  428. "datasource": "gdev-elasticsearch-v7-metrics",
  429. "editable": true,
  430. "error": false,
  431. "fontSize": "100%",
  432. "gridPos": {
  433. "h": 7,
  434. "w": 24,
  435. "x": 0,
  436. "y": 13
  437. },
  438. "id": 6,
  439. "links": [],
  440. "pageSize": null,
  441. "scroll": true,
  442. "showHeader": true,
  443. "sort": {
  444. "col": 0,
  445. "desc": true
  446. },
  447. "styles": [
  448. {
  449. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  450. "pattern": "@timestamp",
  451. "type": "date"
  452. },
  453. {
  454. "colorMode": null,
  455. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  456. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  457. "decimals": 2,
  458. "pattern": "/.*/",
  459. "thresholds": [],
  460. "type": "number",
  461. "unit": "short"
  462. }
  463. ],
  464. "targets": [
  465. {
  466. "bucketAggs": [
  467. {
  468. "field": "@hostname",
  469. "id": "2",
  470. "settings": {
  471. "min_doc_count": 1,
  472. "order": "asc",
  473. "orderBy": "_term",
  474. "size": "0"
  475. },
  476. "type": "terms"
  477. }
  478. ],
  479. "dsType": "elasticsearch",
  480. "metrics": [
  481. {
  482. "field": "@value",
  483. "id": "1",
  484. "meta": {},
  485. "settings": {},
  486. "type": "avg"
  487. },
  488. {
  489. "field": "@value",
  490. "id": "3",
  491. "meta": {},
  492. "settings": {},
  493. "type": "max"
  494. },
  495. {
  496. "field": "@value",
  497. "id": "4",
  498. "meta": {},
  499. "settings": {},
  500. "type": "sum"
  501. }
  502. ],
  503. "refId": "B",
  504. "timeField": "@timestamp"
  505. }
  506. ],
  507. "title": "ES Metrics",
  508. "transform": "table",
  509. "type": "table"
  510. },
  511. {
  512. "columns": [
  513. {
  514. "text": "@timestamp",
  515. "value": "@timestamp"
  516. },
  517. {
  518. "text": "@message",
  519. "value": "@message"
  520. },
  521. {
  522. "text": "tags",
  523. "value": "tags"
  524. },
  525. {
  526. "text": "description",
  527. "value": "description"
  528. }
  529. ],
  530. "datasource": "gdev-elasticsearch-v7-logs",
  531. "editable": true,
  532. "error": false,
  533. "fontSize": "100%",
  534. "gridPos": {
  535. "h": 7,
  536. "w": 24,
  537. "x": 0,
  538. "y": 20
  539. },
  540. "id": 5,
  541. "links": [],
  542. "pageSize": null,
  543. "scroll": true,
  544. "showHeader": true,
  545. "sort": {
  546. "col": 0,
  547. "desc": true
  548. },
  549. "styles": [
  550. {
  551. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  552. "pattern": "@timestamp",
  553. "type": "date"
  554. }
  555. ],
  556. "targets": [
  557. {
  558. "bucketAggs": [],
  559. "dsType": "elasticsearch",
  560. "metrics": [
  561. {
  562. "field": "select field",
  563. "id": "1",
  564. "meta": {},
  565. "settings": {
  566. "size": 500
  567. },
  568. "type": "raw_document"
  569. }
  570. ],
  571. "refId": "A",
  572. "target": "",
  573. "timeField": "@timestamp"
  574. }
  575. ],
  576. "title": "ES Log query",
  577. "transform": "json",
  578. "type": "table"
  579. },
  580. {
  581. "circleMaxSize": 30,
  582. "circleMinSize": 2,
  583. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  584. "datasource": "gdev-elasticsearch-v7-metrics",
  585. "decimals": 0,
  586. "esGeoPoint": "@location",
  587. "esMetric": "Average",
  588. "gridPos": {
  589. "h": 12,
  590. "w": 24,
  591. "x": 0,
  592. "y": 27
  593. },
  594. "hideEmpty": false,
  595. "hideZero": false,
  596. "id": 8,
  597. "initialZoom": "1",
  598. "links": [],
  599. "locationData": "geohash",
  600. "mapCenter": "(0°, 0°)",
  601. "mapCenterLatitude": 0,
  602. "mapCenterLongitude": 0,
  603. "maxDataPoints": 1,
  604. "mouseWheelZoom": false,
  605. "showLegend": true,
  606. "stickyLabels": false,
  607. "tableQueryOptions": {
  608. "geohashField": "geohash",
  609. "latitudeField": "latitude",
  610. "longitudeField": "longitude",
  611. "metricField": "metric",
  612. "queryType": "geohash"
  613. },
  614. "targets": [
  615. {
  616. "bucketAggs": [
  617. {
  618. "fake": true,
  619. "field": "@location",
  620. "id": "3",
  621. "settings": {
  622. "precision": 2
  623. },
  624. "type": "geohash_grid"
  625. }
  626. ],
  627. "metrics": [
  628. {
  629. "field": "@value",
  630. "id": "1",
  631. "meta": {},
  632. "settings": {},
  633. "type": "avg"
  634. }
  635. ],
  636. "refId": "A",
  637. "target": "",
  638. "timeField": "@timestamp"
  639. }
  640. ],
  641. "thresholds": "0,10",
  642. "title": "World map panel",
  643. "type": "grafana-worldmap-panel",
  644. "unitPlural": "",
  645. "unitSingle": "",
  646. "valueName": "total"
  647. }
  648. ],
  649. "schemaVersion": 18,
  650. "style": "dark",
  651. "tags": ["elasticsearch", "gdev", "datasource-test"],
  652. "templating": {
  653. "list": [
  654. {
  655. "datasource": "gdev-elasticsearch-v7-metrics",
  656. "filters": [],
  657. "hide": 0,
  658. "label": "",
  659. "name": "Filters",
  660. "skipUrlSync": false,
  661. "type": "adhoc"
  662. }
  663. ]
  664. },
  665. "time": {
  666. "from": "now-30m",
  667. "to": "now"
  668. },
  669. "timepicker": {
  670. "collapse": false,
  671. "enable": true,
  672. "notice": false,
  673. "now": true,
  674. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
  675. "status": "Stable",
  676. "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"],
  677. "type": "timepicker"
  678. },
  679. "timezone": "browser",
  680. "title": "Datasource tests - Elasticsearch v7",
  681. "uid": "Y-RvmuRWk",
  682. "version": 1
  683. }