Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1488 lines
34KB

  1. {% raw %}
  2. {
  3. "annotations": {
  4. "list": [
  5. {
  6. "builtIn": 1,
  7. "datasource": "prometheus",
  8. "enable": true,
  9. "hide": true,
  10. "iconColor": "rgba(0, 211, 255, 1)",
  11. "limit": 100,
  12. "name": "Annotations & Alerts",
  13. "showIn": 0,
  14. "type": "dashboard"
  15. }
  16. ]
  17. },
  18. "editable": true,
  19. "gnetId": null,
  20. "graphTooltip": 1,
  21. "id": null,
  22. "iteration": 1532690906484,
  23. "links": [],
  24. "panels": [
  25. {
  26. "collapsed": false,
  27. "gridPos": {
  28. "h": 1,
  29. "w": 24,
  30. "x": 0,
  31. "y": 0
  32. },
  33. "id": 28,
  34. "panels": [],
  35. "title": "Network, by host",
  36. "type": "row"
  37. },
  38. {
  39. "aliasColors": {},
  40. "bars": false,
  41. "dashLength": 10,
  42. "dashes": false,
  43. "datasource": null,
  44. "fill": 1,
  45. "gridPos": {
  46. "h": 7,
  47. "w": 12,
  48. "x": 0,
  49. "y": 1
  50. },
  51. "id": 26,
  52. "legend": {
  53. "alignAsTable": true,
  54. "avg": true,
  55. "current": false,
  56. "max": false,
  57. "min": false,
  58. "rightSide": true,
  59. "show": true,
  60. "sort": null,
  61. "sortDesc": null,
  62. "total": false,
  63. "values": true
  64. },
  65. "lines": true,
  66. "linewidth": 1,
  67. "links": [],
  68. "nullPointMode": "null",
  69. "percentage": false,
  70. "pointradius": 5,
  71. "points": false,
  72. "renderer": "flot",
  73. "seriesOverrides": [
  74. {
  75. "alias": "/tx.*/",
  76. "transform": "negative-Y"
  77. }
  78. ],
  79. "spaceLength": 10,
  80. "stack": false,
  81. "steppedLine": false,
  82. "targets": [
  83. {
  84. "expr": "sum(rate(net_bytes_recv{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  85. "format": "time_series",
  86. "intervalFactor": 2,
  87. "legendFormat": "rx @{{host}}",
  88. "refId": "A"
  89. },
  90. {
  91. "expr": "sum(rate(net_bytes_sent{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  92. "format": "time_series",
  93. "intervalFactor": 2,
  94. "legendFormat": "tx @{{host}}",
  95. "refId": "B"
  96. }
  97. ],
  98. "thresholds": [],
  99. "timeFrom": null,
  100. "timeShift": null,
  101. "title": "Throughput@$host",
  102. "tooltip": {
  103. "shared": true,
  104. "sort": 0,
  105. "value_type": "individual"
  106. },
  107. "type": "graph",
  108. "xaxis": {
  109. "buckets": null,
  110. "mode": "time",
  111. "name": null,
  112. "show": true,
  113. "values": []
  114. },
  115. "yaxes": [
  116. {
  117. "format": "Bps",
  118. "label": null,
  119. "logBase": 1,
  120. "max": null,
  121. "min": null,
  122. "show": true
  123. },
  124. {
  125. "format": "short",
  126. "label": null,
  127. "logBase": 1,
  128. "max": null,
  129. "min": null,
  130. "show": true
  131. }
  132. ],
  133. "yaxis": {
  134. "align": false,
  135. "alignLevel": null
  136. }
  137. },
  138. {
  139. "aliasColors": {},
  140. "bars": false,
  141. "dashLength": 10,
  142. "dashes": false,
  143. "datasource": null,
  144. "fill": 1,
  145. "gridPos": {
  146. "h": 7,
  147. "w": 12,
  148. "x": 12,
  149. "y": 1
  150. },
  151. "id": 33,
  152. "legend": {
  153. "alignAsTable": true,
  154. "avg": true,
  155. "current": false,
  156. "max": false,
  157. "min": false,
  158. "rightSide": true,
  159. "show": true,
  160. "total": false,
  161. "values": true
  162. },
  163. "lines": true,
  164. "linewidth": 1,
  165. "links": [],
  166. "nullPointMode": "null",
  167. "percentage": false,
  168. "pointradius": 5,
  169. "points": false,
  170. "renderer": "flot",
  171. "seriesOverrides": [
  172. {
  173. "alias": "/tx.*/",
  174. "transform": "negative-Y"
  175. }
  176. ],
  177. "spaceLength": 10,
  178. "stack": false,
  179. "steppedLine": false,
  180. "targets": [
  181. {
  182. "expr": "sum(rate(net_packets_recv{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  183. "format": "time_series",
  184. "intervalFactor": 2,
  185. "legendFormat": "rx @{{host}}",
  186. "refId": "A"
  187. },
  188. {
  189. "expr": "sum(rate(net_packets_sent{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  190. "format": "time_series",
  191. "intervalFactor": 2,
  192. "legendFormat": "tx @{{host}}",
  193. "refId": "B"
  194. }
  195. ],
  196. "thresholds": [],
  197. "timeFrom": null,
  198. "timeShift": null,
  199. "title": "Packets@$host",
  200. "tooltip": {
  201. "shared": true,
  202. "sort": 0,
  203. "value_type": "individual"
  204. },
  205. "type": "graph",
  206. "xaxis": {
  207. "buckets": null,
  208. "mode": "time",
  209. "name": null,
  210. "show": true,
  211. "values": []
  212. },
  213. "yaxes": [
  214. {
  215. "format": "pps",
  216. "label": null,
  217. "logBase": 1,
  218. "max": null,
  219. "min": null,
  220. "show": true
  221. },
  222. {
  223. "format": "short",
  224. "label": null,
  225. "logBase": 1,
  226. "max": null,
  227. "min": null,
  228. "show": true
  229. }
  230. ],
  231. "yaxis": {
  232. "align": false,
  233. "alignLevel": null
  234. }
  235. },
  236. {
  237. "aliasColors": {},
  238. "bars": false,
  239. "dashLength": 10,
  240. "dashes": false,
  241. "datasource": null,
  242. "fill": 1,
  243. "gridPos": {
  244. "h": 7,
  245. "w": 12,
  246. "x": 0,
  247. "y": 8
  248. },
  249. "id": 42,
  250. "legend": {
  251. "alignAsTable": true,
  252. "avg": true,
  253. "current": false,
  254. "max": false,
  255. "min": false,
  256. "rightSide": true,
  257. "show": true,
  258. "total": false,
  259. "values": true
  260. },
  261. "lines": true,
  262. "linewidth": 1,
  263. "links": [],
  264. "nullPointMode": "null",
  265. "percentage": false,
  266. "pointradius": 5,
  267. "points": false,
  268. "renderer": "flot",
  269. "seriesOverrides": [
  270. {
  271. "alias": "/tx.*/",
  272. "transform": "negative-Y"
  273. }
  274. ],
  275. "spaceLength": 10,
  276. "stack": false,
  277. "steppedLine": false,
  278. "targets": [
  279. {
  280. "expr": "sum(rate(net_err_in{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  281. "format": "time_series",
  282. "intervalFactor": 2,
  283. "legendFormat": "rx @{{host}}",
  284. "refId": "A"
  285. },
  286. {
  287. "expr": "sum(rate(net_err_out{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  288. "format": "time_series",
  289. "intervalFactor": 2,
  290. "legendFormat": "tx @{{host}}",
  291. "refId": "B"
  292. }
  293. ],
  294. "thresholds": [],
  295. "timeFrom": null,
  296. "timeShift": null,
  297. "title": "Errors@$host",
  298. "tooltip": {
  299. "shared": true,
  300. "sort": 0,
  301. "value_type": "individual"
  302. },
  303. "type": "graph",
  304. "xaxis": {
  305. "buckets": null,
  306. "mode": "time",
  307. "name": null,
  308. "show": true,
  309. "values": []
  310. },
  311. "yaxes": [
  312. {
  313. "format": "pps",
  314. "label": null,
  315. "logBase": 1,
  316. "max": null,
  317. "min": null,
  318. "show": true
  319. },
  320. {
  321. "format": "short",
  322. "label": null,
  323. "logBase": 1,
  324. "max": null,
  325. "min": null,
  326. "show": true
  327. }
  328. ],
  329. "yaxis": {
  330. "align": false,
  331. "alignLevel": null
  332. }
  333. },
  334. {
  335. "aliasColors": {},
  336. "bars": false,
  337. "dashLength": 10,
  338. "dashes": false,
  339. "datasource": null,
  340. "fill": 1,
  341. "gridPos": {
  342. "h": 7,
  343. "w": 12,
  344. "x": 12,
  345. "y": 8
  346. },
  347. "id": 43,
  348. "legend": {
  349. "alignAsTable": true,
  350. "avg": true,
  351. "current": false,
  352. "max": false,
  353. "min": false,
  354. "rightSide": true,
  355. "show": true,
  356. "total": false,
  357. "values": true
  358. },
  359. "lines": true,
  360. "linewidth": 1,
  361. "links": [],
  362. "nullPointMode": "null",
  363. "percentage": false,
  364. "pointradius": 5,
  365. "points": false,
  366. "renderer": "flot",
  367. "seriesOverrides": [
  368. {
  369. "alias": "/tx.*/",
  370. "transform": "negative-Y"
  371. }
  372. ],
  373. "spaceLength": 10,
  374. "stack": false,
  375. "steppedLine": false,
  376. "targets": [
  377. {
  378. "expr": "sum(rate(net_drop_in{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  379. "format": "time_series",
  380. "intervalFactor": 2,
  381. "legendFormat": "rx @{{host}}",
  382. "refId": "A"
  383. },
  384. {
  385. "expr": "sum(rate(net_drop_out{host=~\"$host\",interface=~\"$interface\"}[$rate_interval])) by (host)",
  386. "format": "time_series",
  387. "intervalFactor": 2,
  388. "legendFormat": "tx @{{host}}",
  389. "refId": "B"
  390. }
  391. ],
  392. "thresholds": [],
  393. "timeFrom": null,
  394. "timeShift": null,
  395. "title": "Dropped packets@$host",
  396. "tooltip": {
  397. "shared": true,
  398. "sort": 0,
  399. "value_type": "individual"
  400. },
  401. "type": "graph",
  402. "xaxis": {
  403. "buckets": null,
  404. "mode": "time",
  405. "name": null,
  406. "show": true,
  407. "values": []
  408. },
  409. "yaxes": [
  410. {
  411. "format": "pps",
  412. "label": null,
  413. "logBase": 1,
  414. "max": null,
  415. "min": null,
  416. "show": true
  417. },
  418. {
  419. "format": "short",
  420. "label": null,
  421. "logBase": 1,
  422. "max": null,
  423. "min": null,
  424. "show": true
  425. }
  426. ],
  427. "yaxis": {
  428. "align": false,
  429. "alignLevel": null
  430. }
  431. },
  432. {
  433. "aliasColors": {},
  434. "bars": false,
  435. "dashLength": 10,
  436. "dashes": false,
  437. "datasource": null,
  438. "decimals": null,
  439. "fill": 1,
  440. "gridPos": {
  441. "h": 7,
  442. "w": 12,
  443. "x": 0,
  444. "y": 15
  445. },
  446. "id": 49,
  447. "legend": {
  448. "alignAsTable": true,
  449. "avg": false,
  450. "current": true,
  451. "hideZero": false,
  452. "max": false,
  453. "min": false,
  454. "rightSide": true,
  455. "show": true,
  456. "total": false,
  457. "values": true
  458. },
  459. "lines": true,
  460. "linewidth": 1,
  461. "links": [],
  462. "nullPointMode": "null",
  463. "percentage": false,
  464. "pointradius": 5,
  465. "points": false,
  466. "renderer": "flot",
  467. "seriesOverrides": [],
  468. "spaceLength": 10,
  469. "stack": false,
  470. "steppedLine": false,
  471. "targets": [
  472. {
  473. "expr": "nstat_time_squeeze{host=~\"$host\"}",
  474. "format": "time_series",
  475. "intervalFactor": 2,
  476. "legendFormat": "{{host}} @{{cpu}}",
  477. "refId": "A"
  478. }
  479. ],
  480. "thresholds": [],
  481. "timeFrom": null,
  482. "timeShift": null,
  483. "title": "Net RX action@$host per CPU",
  484. "tooltip": {
  485. "shared": true,
  486. "sort": 0,
  487. "value_type": "individual"
  488. },
  489. "type": "graph",
  490. "xaxis": {
  491. "buckets": null,
  492. "mode": "time",
  493. "name": null,
  494. "show": true,
  495. "values": []
  496. },
  497. "yaxes": [
  498. {
  499. "decimals": 0,
  500. "format": "none",
  501. "label": null,
  502. "logBase": 1,
  503. "max": null,
  504. "min": "0",
  505. "show": true
  506. },
  507. {
  508. "decimals": 0,
  509. "format": "none",
  510. "label": null,
  511. "logBase": 1,
  512. "max": null,
  513. "min": null,
  514. "show": true
  515. }
  516. ],
  517. "yaxis": {
  518. "align": false,
  519. "alignLevel": null
  520. }
  521. },
  522. {
  523. "aliasColors": {},
  524. "bars": false,
  525. "dashLength": 10,
  526. "dashes": false,
  527. "datasource": null,
  528. "fill": 1,
  529. "gridPos": {
  530. "h": 7,
  531. "w": 12,
  532. "x": 12,
  533. "y": 15
  534. },
  535. "id": 45,
  536. "legend": {
  537. "alignAsTable": true,
  538. "avg": false,
  539. "current": true,
  540. "max": false,
  541. "min": false,
  542. "rightSide": true,
  543. "show": true,
  544. "total": false,
  545. "values": true
  546. },
  547. "lines": true,
  548. "linewidth": 1,
  549. "links": [],
  550. "nullPointMode": "null",
  551. "percentage": false,
  552. "pointradius": 5,
  553. "points": false,
  554. "renderer": "flot",
  555. "seriesOverrides": [],
  556. "spaceLength": 10,
  557. "stack": false,
  558. "steppedLine": false,
  559. "targets": [
  560. {
  561. "expr": "nstat_packet_drop{host=~\"$host\"}",
  562. "format": "time_series",
  563. "intervalFactor": 2,
  564. "legendFormat": "{{host}} @{{cpu}}",
  565. "refId": "A"
  566. }
  567. ],
  568. "thresholds": [],
  569. "timeFrom": null,
  570. "timeShift": null,
  571. "title": "Dropped packets@$host per CPU",
  572. "tooltip": {
  573. "shared": true,
  574. "sort": 0,
  575. "value_type": "individual"
  576. },
  577. "type": "graph",
  578. "xaxis": {
  579. "buckets": null,
  580. "mode": "time",
  581. "name": null,
  582. "show": true,
  583. "values": []
  584. },
  585. "yaxes": [
  586. {
  587. "decimals": 0,
  588. "format": "short",
  589. "label": null,
  590. "logBase": 1,
  591. "max": null,
  592. "min": "0",
  593. "show": true
  594. },
  595. {
  596. "decimals": 0,
  597. "format": "short",
  598. "label": null,
  599. "logBase": 1,
  600. "max": null,
  601. "min": null,
  602. "show": true
  603. }
  604. ],
  605. "yaxis": {
  606. "align": false,
  607. "alignLevel": null
  608. }
  609. },
  610. {
  611. "columns": [],
  612. "datasource": null,
  613. "fontSize": "100%",
  614. "gridPos": {
  615. "h": 6,
  616. "w": 12,
  617. "x": 0,
  618. "y": 22
  619. },
  620. "hideTimeOverride": false,
  621. "id": 51,
  622. "links": [],
  623. "pageSize": null,
  624. "scroll": true,
  625. "showHeader": true,
  626. "sort": {
  627. "col": 2,
  628. "desc": true
  629. },
  630. "styles": [
  631. {
  632. "alias": "Time",
  633. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  634. "pattern": "Time",
  635. "type": "hidden"
  636. },
  637. {
  638. "alias": "Increase since 1h",
  639. "colorMode": "cell",
  640. "colors": [
  641. "transparent",
  642. "rgba(237, 129, 40, 0.89)",
  643. "rgba(245, 54, 54, 0.9)"
  644. ],
  645. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  646. "decimals": 0,
  647. "mappingType": 1,
  648. "pattern": "Value #A",
  649. "preserveFormat": false,
  650. "thresholds": [
  651. "2",
  652. "4"
  653. ],
  654. "type": "string",
  655. "unit": "none",
  656. "valueMaps": [
  657. {
  658. "text": "-",
  659. "value": "-1"
  660. }
  661. ]
  662. },
  663. {
  664. "alias": "",
  665. "colorMode": null,
  666. "colors": [
  667. "rgba(245, 54, 54, 0.9)",
  668. "rgba(237, 129, 40, 0.89)",
  669. "rgba(50, 172, 45, 0.97)"
  670. ],
  671. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  672. "decimals": 2,
  673. "mappingType": 1,
  674. "pattern": "job",
  675. "thresholds": [],
  676. "type": "hidden",
  677. "unit": "short"
  678. },
  679. {
  680. "alias": "",
  681. "colorMode": null,
  682. "colors": [
  683. "rgba(245, 54, 54, 0.9)",
  684. "rgba(237, 129, 40, 0.89)",
  685. "rgba(50, 172, 45, 0.97)"
  686. ],
  687. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  688. "decimals": 2,
  689. "mappingType": 1,
  690. "pattern": "instance",
  691. "thresholds": [],
  692. "type": "hidden",
  693. "unit": "short"
  694. },
  695. {
  696. "alias": "Increase since 4h",
  697. "colorMode": "cell",
  698. "colors": [
  699. "transparent",
  700. "rgba(237, 129, 40, 0.89)",
  701. "rgba(245, 54, 54, 0.9)"
  702. ],
  703. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  704. "decimals": 2,
  705. "mappingType": 1,
  706. "pattern": "Value #B",
  707. "thresholds": [
  708. "8",
  709. "16"
  710. ],
  711. "type": "string",
  712. "unit": "short",
  713. "valueMaps": [
  714. {
  715. "text": "-",
  716. "value": "-1"
  717. }
  718. ]
  719. },
  720. {
  721. "alias": "Increase since 24h",
  722. "colorMode": "cell",
  723. "colors": [
  724. "transparent",
  725. "rgba(237, 129, 40, 0.89)",
  726. "rgba(245, 54, 54, 0.9)"
  727. ],
  728. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  729. "decimals": 2,
  730. "mappingType": 1,
  731. "pattern": "Value #C",
  732. "thresholds": [
  733. "50",
  734. "100"
  735. ],
  736. "type": "string",
  737. "unit": "short",
  738. "valueMaps": [
  739. {
  740. "text": "-",
  741. "value": "-1"
  742. }
  743. ]
  744. },
  745. {
  746. "alias": "",
  747. "colorMode": null,
  748. "colors": [
  749. "rgba(245, 54, 54, 0.9)",
  750. "rgba(237, 129, 40, 0.89)",
  751. "rgba(50, 172, 45, 0.97)"
  752. ],
  753. "decimals": 2,
  754. "pattern": "/.*/",
  755. "thresholds": [],
  756. "type": "number",
  757. "unit": "short"
  758. }
  759. ],
  760. "targets": [
  761. {
  762. "expr": "floor(increase(nstat_time_squeeze{host=~\"$host\"}[1h])) > 0 or increase(nstat_time_squeeze{host=~\"$host\"}[1h]) - 1",
  763. "format": "table",
  764. "instant": false,
  765. "intervalFactor": 2,
  766. "refId": "A"
  767. },
  768. {
  769. "expr": "floor(increase(nstat_time_squeeze{host=~\"$host\"}[4h])) > 0 or increase(nstat_time_squeeze{host=~\"$host\"}[4h]) - 1",
  770. "format": "table",
  771. "intervalFactor": 1,
  772. "refId": "B"
  773. },
  774. {
  775. "expr": "floor(increase(nstat_time_squeeze{host=~\"$host\"}[24h])) > 0 or increase(nstat_time_squeeze{host=~\"$host\"}[24h]) - 1",
  776. "format": "table",
  777. "intervalFactor": 1,
  778. "refId": "C"
  779. }
  780. ],
  781. "timeFrom": "1s",
  782. "title": "Net RX action@$host per CPU - increased",
  783. "transform": "table",
  784. "transparent": false,
  785. "type": "table"
  786. },
  787. {
  788. "columns": [],
  789. "datasource": null,
  790. "fontSize": "100%",
  791. "gridPos": {
  792. "h": 6,
  793. "w": 12,
  794. "x": 12,
  795. "y": 22
  796. },
  797. "hideTimeOverride": false,
  798. "id": 47,
  799. "links": [],
  800. "pageSize": null,
  801. "scroll": true,
  802. "showHeader": true,
  803. "sort": {
  804. "col": 2,
  805. "desc": true
  806. },
  807. "styles": [
  808. {
  809. "alias": "Time",
  810. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  811. "pattern": "Time",
  812. "type": "hidden"
  813. },
  814. {
  815. "alias": "Increase since 1h",
  816. "colorMode": "cell",
  817. "colors": [
  818. "transparent",
  819. "rgba(237, 129, 40, 0.89)",
  820. "rgba(245, 54, 54, 0.9)"
  821. ],
  822. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  823. "decimals": 0,
  824. "link": false,
  825. "mappingType": 1,
  826. "pattern": "Value #A",
  827. "preserveFormat": false,
  828. "rangeMaps": [
  829. {
  830. "from": "0",
  831. "text": "asas",
  832. "to": "0"
  833. }
  834. ],
  835. "thresholds": [
  836. "2",
  837. "4"
  838. ],
  839. "type": "string",
  840. "unit": "none",
  841. "valueMaps": [
  842. {
  843. "text": "-",
  844. "value": "-1"
  845. }
  846. ]
  847. },
  848. {
  849. "alias": "",
  850. "colorMode": null,
  851. "colors": [
  852. "rgba(245, 54, 54, 0.9)",
  853. "rgba(237, 129, 40, 0.89)",
  854. "rgba(50, 172, 45, 0.97)"
  855. ],
  856. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  857. "decimals": 2,
  858. "mappingType": 1,
  859. "pattern": "job",
  860. "thresholds": [],
  861. "type": "hidden",
  862. "unit": "short"
  863. },
  864. {
  865. "alias": "",
  866. "colorMode": null,
  867. "colors": [
  868. "rgba(245, 54, 54, 0.9)",
  869. "rgba(237, 129, 40, 0.89)",
  870. "rgba(50, 172, 45, 0.97)"
  871. ],
  872. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  873. "decimals": 2,
  874. "mappingType": 1,
  875. "pattern": "instance",
  876. "thresholds": [],
  877. "type": "hidden",
  878. "unit": "short"
  879. },
  880. {
  881. "alias": "Increase since 4h",
  882. "colorMode": "cell",
  883. "colors": [
  884. "transparent",
  885. "rgba(237, 129, 40, 0.89)",
  886. "rgba(245, 54, 54, 0.9)"
  887. ],
  888. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  889. "decimals": 0,
  890. "mappingType": 1,
  891. "pattern": "Value #B",
  892. "thresholds": [
  893. "8",
  894. "16"
  895. ],
  896. "type": "string",
  897. "unit": "none",
  898. "valueMaps": [
  899. {
  900. "text": "-",
  901. "value": "-1"
  902. }
  903. ]
  904. },
  905. {
  906. "alias": "Increase since 24h",
  907. "colorMode": "cell",
  908. "colors": [
  909. "transparent",
  910. "rgba(237, 129, 40, 0.89)",
  911. "rgba(245, 54, 54, 0.9)"
  912. ],
  913. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  914. "decimals": 0,
  915. "mappingType": 1,
  916. "pattern": "Value #C",
  917. "thresholds": [
  918. "50",
  919. "100"
  920. ],
  921. "type": "string",
  922. "unit": "short",
  923. "valueMaps": [
  924. {
  925. "text": "-",
  926. "value": "-1"
  927. }
  928. ]
  929. },
  930. {
  931. "alias": "",
  932. "colorMode": null,
  933. "colors": [
  934. "rgba(245, 54, 54, 0.9)",
  935. "rgba(237, 129, 40, 0.89)",
  936. "rgba(50, 172, 45, 0.97)"
  937. ],
  938. "decimals": 2,
  939. "pattern": "/.*/",
  940. "thresholds": [],
  941. "type": "number",
  942. "unit": "short"
  943. }
  944. ],
  945. "targets": [
  946. {
  947. "expr": "floor(increase(nstat_packet_drop{host=~\"$host\"}[1h])) > 0 or increase(nstat_packet_drop{host=~\"$host\"}[1h]) - 1",
  948. "format": "table",
  949. "hide": false,
  950. "instant": false,
  951. "intervalFactor": 2,
  952. "legendFormat": "",
  953. "refId": "A"
  954. },
  955. {
  956. "expr": "floor(increase(nstat_packet_drop{host=~\"$host\"}[4h])) > 0 or increase(nstat_packet_drop{host=~\"$host\"}[4h]) -1",
  957. "format": "table",
  958. "hide": false,
  959. "instant": false,
  960. "interval": "",
  961. "intervalFactor": 2,
  962. "legendFormat": "",
  963. "refId": "B"
  964. },
  965. {
  966. "expr": "floor(increase(nstat_packet_drop{host=~\"$host\"}[24h])) > 0 or increase(nstat_packet_drop{host=~\"$host\"}[24h]) -1",
  967. "format": "table",
  968. "hide": false,
  969. "instant": false,
  970. "intervalFactor": 2,
  971. "legendFormat": "",
  972. "refId": "C"
  973. }
  974. ],
  975. "timeFrom": "1s",
  976. "title": "Dropped packets@$host per CPU - increased",
  977. "transform": "table",
  978. "transparent": false,
  979. "type": "table"
  980. },
  981. {
  982. "collapsed": false,
  983. "gridPos": {
  984. "h": 1,
  985. "w": 24,
  986. "x": 0,
  987. "y": 28
  988. },
  989. "id": 24,
  990. "panels": [],
  991. "repeat": null,
  992. "title": "Network, by interface",
  993. "type": "row"
  994. },
  995. {
  996. "aliasColors": {},
  997. "bars": false,
  998. "dashLength": 10,
  999. "dashes": false,
  1000. "datasource": null,
  1001. "fill": 1,
  1002. "gridPos": {
  1003. "h": 7,
  1004. "w": 8,
  1005. "x": 0,
  1006. "y": 29
  1007. },
  1008. "id": 8,
  1009. "legend": {
  1010. "alignAsTable": true,
  1011. "avg": true,
  1012. "current": false,
  1013. "hideEmpty": true,
  1014. "hideZero": true,
  1015. "max": false,
  1016. "min": false,
  1017. "rightSide": false,
  1018. "show": true,
  1019. "total": false,
  1020. "values": true
  1021. },
  1022. "lines": true,
  1023. "linewidth": 1,
  1024. "links": [],
  1025. "nullPointMode": "null",
  1026. "percentage": false,
  1027. "pointradius": 5,
  1028. "points": false,
  1029. "renderer": "flot",
  1030. "repeat": "host",
  1031. "repeatDirection": "v",
  1032. "scopedVars": {
  1033. "host": {
  1034. "selected": true,
  1035. "text": "ntw01",
  1036. "value": "ntw01"
  1037. }
  1038. },
  1039. "seriesOverrides": [
  1040. {
  1041. "alias": "/tx.*/",
  1042. "transform": "negative-Y"
  1043. }
  1044. ],
  1045. "spaceLength": 10,
  1046. "stack": false,
  1047. "steppedLine": false,
  1048. "targets": [
  1049. {
  1050. "expr": "rate(net_bytes_recv{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1051. "format": "time_series",
  1052. "instant": false,
  1053. "intervalFactor": 2,
  1054. "legendFormat": "rx @{{interface}}",
  1055. "metric": "",
  1056. "refId": "A",
  1057. "step": 20
  1058. },
  1059. {
  1060. "expr": "rate(net_bytes_sent{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1061. "format": "time_series",
  1062. "intervalFactor": 2,
  1063. "legendFormat": "tx @{{interface}}",
  1064. "metric": "",
  1065. "refId": "B",
  1066. "step": 20
  1067. }
  1068. ],
  1069. "thresholds": [],
  1070. "timeFrom": null,
  1071. "timeShift": null,
  1072. "title": "Throughput@$host dev $interface",
  1073. "tooltip": {
  1074. "shared": true,
  1075. "sort": 0,
  1076. "value_type": "individual"
  1077. },
  1078. "type": "graph",
  1079. "xaxis": {
  1080. "buckets": null,
  1081. "mode": "time",
  1082. "name": null,
  1083. "show": true,
  1084. "values": []
  1085. },
  1086. "yaxes": [
  1087. {
  1088. "format": "Bps",
  1089. "label": null,
  1090. "logBase": 1,
  1091. "max": null,
  1092. "min": null,
  1093. "show": true
  1094. },
  1095. {
  1096. "format": "Bps",
  1097. "label": null,
  1098. "logBase": 1,
  1099. "max": null,
  1100. "min": null,
  1101. "show": true
  1102. }
  1103. ],
  1104. "yaxis": {
  1105. "align": false,
  1106. "alignLevel": null
  1107. }
  1108. },
  1109. {
  1110. "aliasColors": {},
  1111. "bars": false,
  1112. "dashLength": 10,
  1113. "dashes": false,
  1114. "datasource": null,
  1115. "fill": 1,
  1116. "gridPos": {
  1117. "h": 7,
  1118. "w": 8,
  1119. "x": 8,
  1120. "y": 29
  1121. },
  1122. "id": 15,
  1123. "legend": {
  1124. "alignAsTable": true,
  1125. "avg": true,
  1126. "current": false,
  1127. "hideEmpty": true,
  1128. "hideZero": true,
  1129. "max": false,
  1130. "min": false,
  1131. "rightSide": false,
  1132. "show": true,
  1133. "total": false,
  1134. "values": true
  1135. },
  1136. "lines": true,
  1137. "linewidth": 1,
  1138. "links": [],
  1139. "nullPointMode": "null",
  1140. "percentage": false,
  1141. "pointradius": 5,
  1142. "points": false,
  1143. "renderer": "flot",
  1144. "repeat": "host",
  1145. "repeatDirection": "v",
  1146. "scopedVars": {
  1147. "host": {
  1148. "selected": true,
  1149. "text": "ntw01",
  1150. "value": "ntw01"
  1151. }
  1152. },
  1153. "seriesOverrides": [
  1154. {
  1155. "alias": "/tx.*/",
  1156. "transform": "negative-Y"
  1157. }
  1158. ],
  1159. "spaceLength": 10,
  1160. "stack": false,
  1161. "steppedLine": false,
  1162. "targets": [
  1163. {
  1164. "expr": "rate(net_packets_recv{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1165. "format": "time_series",
  1166. "intervalFactor": 2,
  1167. "legendFormat": "rx @{{interface}}",
  1168. "metric": "",
  1169. "refId": "A",
  1170. "step": 20
  1171. },
  1172. {
  1173. "expr": "rate(net_packets_sent{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1174. "format": "time_series",
  1175. "intervalFactor": 2,
  1176. "legendFormat": "tx @{{interface}}",
  1177. "metric": "",
  1178. "refId": "B",
  1179. "step": 20
  1180. }
  1181. ],
  1182. "thresholds": [],
  1183. "timeFrom": null,
  1184. "timeShift": null,
  1185. "title": "Packets@$host dev $interface",
  1186. "tooltip": {
  1187. "shared": true,
  1188. "sort": 0,
  1189. "value_type": "individual"
  1190. },
  1191. "type": "graph",
  1192. "xaxis": {
  1193. "buckets": null,
  1194. "mode": "time",
  1195. "name": null,
  1196. "show": true,
  1197. "values": []
  1198. },
  1199. "yaxes": [
  1200. {
  1201. "format": "pps",
  1202. "label": null,
  1203. "logBase": 1,
  1204. "max": null,
  1205. "min": null,
  1206. "show": true
  1207. },
  1208. {
  1209. "format": "short",
  1210. "label": null,
  1211. "logBase": 1,
  1212. "max": null,
  1213. "min": null,
  1214. "show": true
  1215. }
  1216. ],
  1217. "yaxis": {
  1218. "align": false,
  1219. "alignLevel": null
  1220. }
  1221. },
  1222. {
  1223. "aliasColors": {},
  1224. "bars": false,
  1225. "dashLength": 10,
  1226. "dashes": false,
  1227. "datasource": null,
  1228. "fill": 1,
  1229. "gridPos": {
  1230. "h": 7,
  1231. "w": 8,
  1232. "x": 16,
  1233. "y": 29
  1234. },
  1235. "id": 13,
  1236. "legend": {
  1237. "alignAsTable": true,
  1238. "avg": true,
  1239. "current": false,
  1240. "hideEmpty": true,
  1241. "hideZero": true,
  1242. "max": false,
  1243. "min": false,
  1244. "rightSide": false,
  1245. "show": true,
  1246. "total": false,
  1247. "values": true
  1248. },
  1249. "lines": true,
  1250. "linewidth": 1,
  1251. "links": [],
  1252. "nullPointMode": "null",
  1253. "percentage": false,
  1254. "pointradius": 5,
  1255. "points": false,
  1256. "renderer": "flot",
  1257. "repeat": "host",
  1258. "repeatDirection": "v",
  1259. "scopedVars": {
  1260. "host": {
  1261. "selected": true,
  1262. "text": "ntw01",
  1263. "value": "ntw01"
  1264. }
  1265. },
  1266. "seriesOverrides": [
  1267. {
  1268. "alias": "/.*tx.*/",
  1269. "transform": "negative-Y"
  1270. }
  1271. ],
  1272. "spaceLength": 10,
  1273. "stack": false,
  1274. "steppedLine": false,
  1275. "targets": [
  1276. {
  1277. "expr": "rate(net_err_in{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1278. "format": "time_series",
  1279. "intervalFactor": 2,
  1280. "legendFormat": "err rx @{{interface}}",
  1281. "metric": "",
  1282. "refId": "A",
  1283. "step": 20
  1284. },
  1285. {
  1286. "expr": "rate(net_drop_in{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1287. "format": "time_series",
  1288. "intervalFactor": 2,
  1289. "legendFormat": "drop rx @{{interface}}",
  1290. "refId": "C"
  1291. },
  1292. {
  1293. "expr": "rate(net_err_out{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1294. "format": "time_series",
  1295. "intervalFactor": 2,
  1296. "legendFormat": "err tx @{{interface}}",
  1297. "metric": "",
  1298. "refId": "B",
  1299. "step": 20
  1300. },
  1301. {
  1302. "expr": "rate(net_drop_out{host=\"$host\",interface=~\"$interface\"}[$rate_interval])",
  1303. "format": "time_series",
  1304. "intervalFactor": 2,
  1305. "legendFormat": "drop tx @{{interface}}",
  1306. "refId": "D"
  1307. }
  1308. ],
  1309. "thresholds": [],
  1310. "timeFrom": null,
  1311. "timeShift": null,
  1312. "title": "Errors/Dropped@$host dev $interface",
  1313. "tooltip": {
  1314. "shared": true,
  1315. "sort": 0,
  1316. "value_type": "individual"
  1317. },
  1318. "type": "graph",
  1319. "xaxis": {
  1320. "buckets": null,
  1321. "mode": "time",
  1322. "name": null,
  1323. "show": true,
  1324. "values": []
  1325. },
  1326. "yaxes": [
  1327. {
  1328. "format": "pps",
  1329. "label": null,
  1330. "logBase": 1,
  1331. "max": null,
  1332. "min": null,
  1333. "show": true
  1334. },
  1335. {
  1336. "format": "short",
  1337. "label": null,
  1338. "logBase": 1,
  1339. "max": null,
  1340. "min": null,
  1341. "show": true
  1342. }
  1343. ],
  1344. "yaxis": {
  1345. "align": false,
  1346. "alignLevel": null
  1347. }
  1348. }
  1349. ],
  1350. "refresh": "1m",
  1351. "schemaVersion": 16,
  1352. "style": "dark",
  1353. "tags": [
  1354. "host"
  1355. ],
  1356. "templating": {
  1357. "list": [
  1358. {
  1359. "allValue": null,
  1360. "current": {
  1361. "text": "ntw01",
  1362. "value": [
  1363. "ntw01"
  1364. ]
  1365. },
  1366. "datasource": "prometheus",
  1367. "hide": 0,
  1368. "includeAll": false,
  1369. "label": null,
  1370. "multi": true,
  1371. "name": "host",
  1372. "options": [],
  1373. "query": "label_values(cpu_usage_idle,host)",
  1374. "refresh": 1,
  1375. "refresh_on_load": true,
  1376. "regex": "",
  1377. "sort": 1,
  1378. "tagValuesQuery": "",
  1379. "tags": [],
  1380. "tagsQuery": "",
  1381. "type": "query",
  1382. "useTags": false
  1383. },
  1384. {
  1385. "allValue": null,
  1386. "current": {
  1387. "text": "All",
  1388. "value": [
  1389. "$__all"
  1390. ]
  1391. },
  1392. "datasource": "prometheus",
  1393. "hide": 0,
  1394. "includeAll": true,
  1395. "label": null,
  1396. "multi": true,
  1397. "name": "interface",
  1398. "options": [],
  1399. "query": "query_result(net_bytes_recv{host=~\"$host\"})",
  1400. "refresh": 1,
  1401. "refresh_on_load": true,
  1402. "regex": "/interface=\"([^\"]+)/",
  1403. "sort": 1,
  1404. "tagValuesQuery": "",
  1405. "tags": [],
  1406. "tagsQuery": "",
  1407. "type": "query",
  1408. "useTags": false
  1409. },
  1410. {
  1411. "allValue": null,
  1412. "current": {
  1413. "text": "3m",
  1414. "value": "3m"
  1415. },
  1416. "hide": 0,
  1417. "includeAll": false,
  1418. "label": "rate_interval",
  1419. "multi": false,
  1420. "name": "rate_interval",
  1421. "options": [
  1422. {
  1423. "selected": false,
  1424. "text": "1m",
  1425. "value": "1m"
  1426. },
  1427. {
  1428. "selected": true,
  1429. "text": "3m",
  1430. "value": "3m"
  1431. },
  1432. {
  1433. "selected": false,
  1434. "text": "5m",
  1435. "value": "5m"
  1436. },
  1437. {
  1438. "selected": false,
  1439. "text": "10m",
  1440. "value": "10m"
  1441. },
  1442. {
  1443. "selected": false,
  1444. "text": "15m",
  1445. "value": "15m"
  1446. }
  1447. ],
  1448. "query": "1m,3m,5m,10m,15m",
  1449. "type": "custom"
  1450. }
  1451. ]
  1452. },
  1453. "time": {
  1454. "from": "now-1h",
  1455. "to": "now"
  1456. },
  1457. "timepicker": {
  1458. "refresh_intervals": [
  1459. "5s",
  1460. "10s",
  1461. "30s",
  1462. "1m",
  1463. "5m",
  1464. "15m",
  1465. "30m",
  1466. "1h",
  1467. "2h",
  1468. "1d"
  1469. ],
  1470. "time_options": [
  1471. "5m",
  1472. "15m",
  1473. "1h",
  1474. "6h",
  1475. "12h",
  1476. "24h",
  1477. "2d",
  1478. "7d",
  1479. "30d"
  1480. ]
  1481. },
  1482. "timezone": "browser",
  1483. "title": "System - Networking",
  1484. "uid": null,
  1485. "version": 1
  1486. }
  1487. {% endraw %}