elasticsearch_v2.json 15 KB

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