apisix-grafana-dashboard.json 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "grafana",
  15. "id": "grafana",
  16. "name": "Grafana",
  17. "version": "7.3.7"
  18. },
  19. {
  20. "type": "panel",
  21. "id": "graph",
  22. "name": "Graph",
  23. "version": ""
  24. },
  25. {
  26. "type": "datasource",
  27. "id": "prometheus",
  28. "name": "Prometheus",
  29. "version": "1.0.0"
  30. },
  31. {
  32. "type": "panel",
  33. "id": "singlestat",
  34. "name": "Singlestat",
  35. "version": ""
  36. },
  37. {
  38. "type": "panel",
  39. "id": "stat",
  40. "name": "Stat",
  41. "version": ""
  42. }
  43. ],
  44. "annotations": {
  45. "list": [
  46. {
  47. "builtIn": 1,
  48. "datasource": "${DS_PROMETHEUS}",
  49. "enable": true,
  50. "hide": true,
  51. "iconColor": "rgba(0, 211, 255, 1)",
  52. "limit": 100,
  53. "name": "Annotations & Alerts",
  54. "showIn": 0,
  55. "type": "dashboard"
  56. }
  57. ]
  58. },
  59. "description": "MicroService API Gateway Apache APISIX",
  60. "editable": true,
  61. "gnetId": 11719,
  62. "graphTooltip": 0,
  63. "id": null,
  64. "iteration": 1617695812393,
  65. "links": [],
  66. "panels": [
  67. {
  68. "collapsed": false,
  69. "datasource": "${DS_PROMETHEUS}",
  70. "gridPos": {
  71. "h": 1,
  72. "w": 24,
  73. "x": 0,
  74. "y": 0
  75. },
  76. "id": 10,
  77. "panels": [],
  78. "title": "Nginx",
  79. "type": "row"
  80. },
  81. {
  82. "cacheTimeout": null,
  83. "colorBackground": false,
  84. "colorValue": false,
  85. "colors": [
  86. "#299c46",
  87. "rgba(237, 129, 40, 0.89)",
  88. "#d44a3a"
  89. ],
  90. "datasource": "${DS_PROMETHEUS}",
  91. "description": "",
  92. "fieldConfig": {
  93. "defaults": {
  94. "custom": {}
  95. },
  96. "overrides": []
  97. },
  98. "format": "none",
  99. "gauge": {
  100. "maxValue": 100,
  101. "minValue": 0,
  102. "show": false,
  103. "thresholdLabels": false,
  104. "thresholdMarkers": true
  105. },
  106. "gridPos": {
  107. "h": 5,
  108. "w": 8,
  109. "x": 0,
  110. "y": 1
  111. },
  112. "id": 8,
  113. "interval": null,
  114. "links": [],
  115. "mappingType": 1,
  116. "mappingTypes": [
  117. {
  118. "name": "value to text",
  119. "value": 1
  120. },
  121. {
  122. "name": "range to text",
  123. "value": 2
  124. }
  125. ],
  126. "maxDataPoints": 100,
  127. "nullPointMode": "connected",
  128. "nullText": null,
  129. "postfix": "",
  130. "postfixFontSize": "50%",
  131. "prefix": "",
  132. "prefixFontSize": "50%",
  133. "rangeMaps": [
  134. {
  135. "from": "null",
  136. "text": "N/A",
  137. "to": "null"
  138. }
  139. ],
  140. "sparkline": {
  141. "fillColor": "rgba(31, 118, 189, 0.18)",
  142. "full": true,
  143. "lineColor": "rgb(31, 120, 193)",
  144. "show": true,
  145. "ymax": null,
  146. "ymin": null
  147. },
  148. "tableColumn": "",
  149. "targets": [
  150. {
  151. "expr": "sum(apisix_http_requests_total{instance=~\"$instance\"})",
  152. "intervalFactor": 2,
  153. "legendFormat": "Total",
  154. "refId": "A"
  155. }
  156. ],
  157. "thresholds": "",
  158. "timeFrom": null,
  159. "timeShift": null,
  160. "title": "Total Requests",
  161. "type": "singlestat",
  162. "valueFontSize": "80%",
  163. "valueMaps": [
  164. {
  165. "op": "=",
  166. "text": "N/A",
  167. "value": "null"
  168. }
  169. ],
  170. "valueName": "current"
  171. },
  172. {
  173. "cacheTimeout": null,
  174. "colorBackground": false,
  175. "colorValue": false,
  176. "colors": [
  177. "#299c46",
  178. "rgba(237, 129, 40, 0.89)",
  179. "#d44a3a"
  180. ],
  181. "datasource": "${DS_PROMETHEUS}",
  182. "description": "",
  183. "fieldConfig": {
  184. "defaults": {
  185. "custom": {}
  186. },
  187. "overrides": []
  188. },
  189. "format": "none",
  190. "gauge": {
  191. "maxValue": 100,
  192. "minValue": 0,
  193. "show": false,
  194. "thresholdLabels": false,
  195. "thresholdMarkers": true
  196. },
  197. "gridPos": {
  198. "h": 5,
  199. "w": 8,
  200. "x": 8,
  201. "y": 1
  202. },
  203. "id": 16,
  204. "interval": null,
  205. "links": [],
  206. "mappingType": 1,
  207. "mappingTypes": [
  208. {
  209. "name": "value to text",
  210. "value": 1
  211. },
  212. {
  213. "name": "range to text",
  214. "value": 2
  215. }
  216. ],
  217. "maxDataPoints": 100,
  218. "nullPointMode": "connected",
  219. "nullText": null,
  220. "postfix": "",
  221. "postfixFontSize": "50%",
  222. "prefix": "",
  223. "prefixFontSize": "50%",
  224. "rangeMaps": [
  225. {
  226. "from": "null",
  227. "text": "N/A",
  228. "to": "null"
  229. }
  230. ],
  231. "sparkline": {
  232. "fillColor": "rgba(31, 118, 189, 0.18)",
  233. "full": true,
  234. "lineColor": "rgb(31, 120, 193)",
  235. "show": true,
  236. "ymax": null,
  237. "ymin": null
  238. },
  239. "tableColumn": "",
  240. "targets": [
  241. {
  242. "expr": "sum(apisix_nginx_http_current_connections{state=\"accepted\", instance=~\"$instance\"})",
  243. "intervalFactor": 2,
  244. "legendFormat": "Accepted",
  245. "refId": "A"
  246. }
  247. ],
  248. "thresholds": "",
  249. "timeFrom": null,
  250. "timeShift": null,
  251. "title": "Accepted Connections",
  252. "type": "singlestat",
  253. "valueFontSize": "80%",
  254. "valueMaps": [
  255. {
  256. "op": "=",
  257. "text": "N/A",
  258. "value": "null"
  259. }
  260. ],
  261. "valueName": "current"
  262. },
  263. {
  264. "cacheTimeout": null,
  265. "colorBackground": false,
  266. "colorValue": false,
  267. "colors": [
  268. "#299c46",
  269. "rgba(237, 129, 40, 0.89)",
  270. "#d44a3a"
  271. ],
  272. "datasource": "${DS_PROMETHEUS}",
  273. "description": "",
  274. "fieldConfig": {
  275. "defaults": {
  276. "custom": {}
  277. },
  278. "overrides": []
  279. },
  280. "format": "none",
  281. "gauge": {
  282. "maxValue": 100,
  283. "minValue": 0,
  284. "show": false,
  285. "thresholdLabels": false,
  286. "thresholdMarkers": true
  287. },
  288. "gridPos": {
  289. "h": 5,
  290. "w": 8,
  291. "x": 16,
  292. "y": 1
  293. },
  294. "id": 11,
  295. "interval": null,
  296. "links": [],
  297. "mappingType": 1,
  298. "mappingTypes": [
  299. {
  300. "name": "value to text",
  301. "value": 1
  302. },
  303. {
  304. "name": "range to text",
  305. "value": 2
  306. }
  307. ],
  308. "maxDataPoints": 100,
  309. "nullPointMode": "connected",
  310. "nullText": null,
  311. "postfix": "",
  312. "postfixFontSize": "50%",
  313. "prefix": "",
  314. "prefixFontSize": "50%",
  315. "rangeMaps": [
  316. {
  317. "from": "null",
  318. "text": "N/A",
  319. "to": "null"
  320. }
  321. ],
  322. "sparkline": {
  323. "fillColor": "rgba(31, 118, 189, 0.18)",
  324. "full": true,
  325. "lineColor": "rgb(31, 120, 193)",
  326. "show": true,
  327. "ymax": null,
  328. "ymin": null
  329. },
  330. "tableColumn": "",
  331. "targets": [
  332. {
  333. "expr": "sum(apisix_nginx_http_current_connections{state=\"handled\", instance=~\"$instance\"})",
  334. "intervalFactor": 2,
  335. "legendFormat": "Total",
  336. "refId": "A"
  337. }
  338. ],
  339. "thresholds": "",
  340. "timeFrom": null,
  341. "timeShift": null,
  342. "title": "Handled Connections",
  343. "type": "singlestat",
  344. "valueFontSize": "80%",
  345. "valueMaps": [
  346. {
  347. "op": "=",
  348. "text": "N/A",
  349. "value": "null"
  350. }
  351. ],
  352. "valueName": "current"
  353. },
  354. {
  355. "aliasColors": {},
  356. "bars": false,
  357. "dashLength": 10,
  358. "dashes": false,
  359. "datasource": "${DS_PROMETHEUS}",
  360. "fieldConfig": {
  361. "defaults": {
  362. "custom": {},
  363. "links": []
  364. },
  365. "overrides": []
  366. },
  367. "fill": 1,
  368. "fillGradient": 0,
  369. "gridPos": {
  370. "h": 6,
  371. "w": 24,
  372. "x": 0,
  373. "y": 6
  374. },
  375. "hiddenSeries": false,
  376. "id": 17,
  377. "legend": {
  378. "alignAsTable": false,
  379. "avg": false,
  380. "current": false,
  381. "max": false,
  382. "min": false,
  383. "rightSide": false,
  384. "show": true,
  385. "total": false,
  386. "values": false
  387. },
  388. "lines": true,
  389. "linewidth": 1,
  390. "nullPointMode": "null",
  391. "options": {
  392. "alertThreshold": true
  393. },
  394. "percentage": false,
  395. "pluginVersion": "7.3.7",
  396. "pointradius": 2,
  397. "points": false,
  398. "renderer": "flot",
  399. "seriesOverrides": [],
  400. "spaceLength": 10,
  401. "stack": false,
  402. "steppedLine": false,
  403. "targets": [
  404. {
  405. "expr": "sum(apisix_nginx_http_current_connections{state=~\"active|reading|writing|waiting\", instance=~\"$instance\"}) by (state)",
  406. "instant": false,
  407. "interval": "",
  408. "intervalFactor": 1,
  409. "legendFormat": "{{state}}",
  410. "refId": "A"
  411. }
  412. ],
  413. "thresholds": [],
  414. "timeFrom": null,
  415. "timeRegions": [],
  416. "timeShift": null,
  417. "title": "Nginx connection state",
  418. "tooltip": {
  419. "shared": true,
  420. "sort": 0,
  421. "value_type": "individual"
  422. },
  423. "type": "graph",
  424. "xaxis": {
  425. "buckets": null,
  426. "mode": "time",
  427. "name": null,
  428. "show": true,
  429. "values": []
  430. },
  431. "yaxes": [
  432. {
  433. "decimals": null,
  434. "format": "short",
  435. "label": "",
  436. "logBase": 1,
  437. "max": null,
  438. "min": null,
  439. "show": true
  440. },
  441. {
  442. "decimals": null,
  443. "format": "Misc",
  444. "label": "",
  445. "logBase": 1,
  446. "max": null,
  447. "min": null,
  448. "show": true
  449. }
  450. ],
  451. "yaxis": {
  452. "align": false,
  453. "alignLevel": null
  454. }
  455. },
  456. {
  457. "collapsed": false,
  458. "datasource": "${DS_PROMETHEUS}",
  459. "gridPos": {
  460. "h": 1,
  461. "w": 24,
  462. "x": 0,
  463. "y": 12
  464. },
  465. "id": 13,
  466. "panels": [],
  467. "title": "Bandwidth",
  468. "type": "row"
  469. },
  470. {
  471. "aliasColors": {},
  472. "bars": false,
  473. "dashLength": 10,
  474. "dashes": false,
  475. "datasource": "${DS_PROMETHEUS}",
  476. "fieldConfig": {
  477. "defaults": {
  478. "custom": {},
  479. "links": []
  480. },
  481. "overrides": []
  482. },
  483. "fill": 1,
  484. "fillGradient": 0,
  485. "gridPos": {
  486. "h": 6,
  487. "w": 24,
  488. "x": 0,
  489. "y": 13
  490. },
  491. "hiddenSeries": false,
  492. "id": 6,
  493. "legend": {
  494. "alignAsTable": true,
  495. "avg": true,
  496. "current": true,
  497. "max": true,
  498. "min": true,
  499. "rightSide": true,
  500. "show": true,
  501. "sort": "total",
  502. "sortDesc": true,
  503. "total": true,
  504. "values": true
  505. },
  506. "lines": true,
  507. "linewidth": 1,
  508. "nullPointMode": "null",
  509. "options": {
  510. "alertThreshold": true
  511. },
  512. "percentage": false,
  513. "pluginVersion": "7.3.7",
  514. "pointradius": 2,
  515. "points": false,
  516. "renderer": "flot",
  517. "seriesOverrides": [],
  518. "spaceLength": 10,
  519. "stack": false,
  520. "steppedLine": false,
  521. "targets": [
  522. {
  523. "expr": "sum(rate(apisix_bandwidth{instance=~\"$instance\"}[30s])) by (type)",
  524. "legendFormat": "{{type}}",
  525. "refId": "A"
  526. }
  527. ],
  528. "thresholds": [],
  529. "timeFrom": null,
  530. "timeRegions": [],
  531. "timeShift": null,
  532. "title": "Total Bandwidth",
  533. "tooltip": {
  534. "shared": true,
  535. "sort": 0,
  536. "value_type": "individual"
  537. },
  538. "type": "graph",
  539. "xaxis": {
  540. "buckets": null,
  541. "mode": "time",
  542. "name": null,
  543. "show": true,
  544. "values": []
  545. },
  546. "yaxes": [
  547. {
  548. "decimals": 0,
  549. "format": "decbytes",
  550. "label": null,
  551. "logBase": 1,
  552. "max": null,
  553. "min": "0",
  554. "show": true
  555. },
  556. {
  557. "format": "short",
  558. "label": null,
  559. "logBase": 1,
  560. "max": null,
  561. "min": null,
  562. "show": true
  563. }
  564. ],
  565. "yaxis": {
  566. "align": false,
  567. "alignLevel": null
  568. }
  569. },
  570. {
  571. "aliasColors": {},
  572. "bars": false,
  573. "dashLength": 10,
  574. "dashes": false,
  575. "datasource": "${DS_PROMETHEUS}",
  576. "fieldConfig": {
  577. "defaults": {
  578. "custom": {},
  579. "links": []
  580. },
  581. "overrides": []
  582. },
  583. "fill": 1,
  584. "fillGradient": 0,
  585. "gridPos": {
  586. "h": 6,
  587. "w": 24,
  588. "x": 0,
  589. "y": 19
  590. },
  591. "hiddenSeries": false,
  592. "id": 21,
  593. "legend": {
  594. "alignAsTable": true,
  595. "avg": true,
  596. "current": true,
  597. "max": true,
  598. "min": true,
  599. "rightSide": true,
  600. "show": true,
  601. "sort": "total",
  602. "sortDesc": true,
  603. "total": true,
  604. "values": true
  605. },
  606. "lines": true,
  607. "linewidth": 1,
  608. "nullPointMode": "null",
  609. "options": {
  610. "alertThreshold": true
  611. },
  612. "percentage": false,
  613. "pluginVersion": "7.3.7",
  614. "pointradius": 2,
  615. "points": false,
  616. "renderer": "flot",
  617. "seriesOverrides": [],
  618. "spaceLength": 10,
  619. "stack": false,
  620. "steppedLine": false,
  621. "targets": [
  622. {
  623. "expr": "sum(irate(apisix_bandwidth{type=\"ingress\", service =~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (service)",
  624. "legendFormat": "service:{{service}}",
  625. "refId": "A"
  626. },
  627. {
  628. "expr": "sum(irate(apisix_bandwidth{type=\"ingress\", service =~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (route)",
  629. "legendFormat": "route:{{route}}",
  630. "refId": "B"
  631. }
  632. ],
  633. "thresholds": [],
  634. "timeFrom": null,
  635. "timeRegions": [],
  636. "timeShift": null,
  637. "title": "Ingress per service/route",
  638. "tooltip": {
  639. "shared": true,
  640. "sort": 0,
  641. "value_type": "individual"
  642. },
  643. "type": "graph",
  644. "xaxis": {
  645. "buckets": null,
  646. "mode": "time",
  647. "name": null,
  648. "show": true,
  649. "values": []
  650. },
  651. "yaxes": [
  652. {
  653. "decimals": 0,
  654. "format": "decbytes",
  655. "label": null,
  656. "logBase": 1,
  657. "max": null,
  658. "min": "0",
  659. "show": true
  660. },
  661. {
  662. "format": "short",
  663. "label": null,
  664. "logBase": 1,
  665. "max": null,
  666. "min": null,
  667. "show": true
  668. }
  669. ],
  670. "yaxis": {
  671. "align": false,
  672. "alignLevel": null
  673. }
  674. },
  675. {
  676. "aliasColors": {},
  677. "bars": false,
  678. "dashLength": 10,
  679. "dashes": false,
  680. "datasource": "${DS_PROMETHEUS}",
  681. "fieldConfig": {
  682. "defaults": {
  683. "custom": {},
  684. "links": []
  685. },
  686. "overrides": []
  687. },
  688. "fill": 1,
  689. "fillGradient": 0,
  690. "gridPos": {
  691. "h": 6,
  692. "w": 24,
  693. "x": 0,
  694. "y": 25
  695. },
  696. "hiddenSeries": false,
  697. "id": 19,
  698. "legend": {
  699. "alignAsTable": true,
  700. "avg": true,
  701. "current": true,
  702. "max": true,
  703. "min": true,
  704. "rightSide": true,
  705. "show": true,
  706. "sort": "total",
  707. "sortDesc": true,
  708. "total": true,
  709. "values": true
  710. },
  711. "lines": true,
  712. "linewidth": 1,
  713. "nullPointMode": "null",
  714. "options": {
  715. "alertThreshold": true
  716. },
  717. "percentage": false,
  718. "pluginVersion": "7.3.7",
  719. "pointradius": 2,
  720. "points": false,
  721. "renderer": "flot",
  722. "seriesOverrides": [],
  723. "spaceLength": 10,
  724. "stack": false,
  725. "steppedLine": false,
  726. "targets": [
  727. {
  728. "expr": "sum(rate(apisix_bandwidth{type=\"egress\", service =~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (service)",
  729. "interval": "",
  730. "legendFormat": "service:{{service}}",
  731. "refId": "A"
  732. },
  733. {
  734. "expr": "sum(rate(apisix_bandwidth{type=\"egress\", service =~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (route)",
  735. "legendFormat": "route:{{route}}",
  736. "refId": "B"
  737. }
  738. ],
  739. "thresholds": [],
  740. "timeFrom": null,
  741. "timeRegions": [],
  742. "timeShift": null,
  743. "title": "Egress per service/route",
  744. "tooltip": {
  745. "shared": true,
  746. "sort": 0,
  747. "value_type": "individual"
  748. },
  749. "type": "graph",
  750. "xaxis": {
  751. "buckets": null,
  752. "mode": "time",
  753. "name": null,
  754. "show": true,
  755. "values": []
  756. },
  757. "yaxes": [
  758. {
  759. "decimals": 0,
  760. "format": "decbytes",
  761. "label": null,
  762. "logBase": 1,
  763. "max": null,
  764. "min": "0",
  765. "show": true
  766. },
  767. {
  768. "format": "short",
  769. "label": null,
  770. "logBase": 1,
  771. "max": null,
  772. "min": null,
  773. "show": true
  774. }
  775. ],
  776. "yaxis": {
  777. "align": false,
  778. "alignLevel": null
  779. }
  780. },
  781. {
  782. "collapsed": false,
  783. "datasource": "${DS_PROMETHEUS}",
  784. "gridPos": {
  785. "h": 1,
  786. "w": 24,
  787. "x": 0,
  788. "y": 31
  789. },
  790. "id": 15,
  791. "panels": [],
  792. "title": "HTTP",
  793. "type": "row"
  794. },
  795. {
  796. "aliasColors": {
  797. "HTTP Status:200": "green",
  798. "HTTP Status:500": "red"
  799. },
  800. "bars": false,
  801. "cacheTimeout": null,
  802. "dashLength": 10,
  803. "dashes": false,
  804. "datasource": "${DS_PROMETHEUS}",
  805. "description": "",
  806. "fieldConfig": {
  807. "defaults": {
  808. "custom": {},
  809. "links": []
  810. },
  811. "overrides": []
  812. },
  813. "fill": 3,
  814. "fillGradient": 0,
  815. "gridPos": {
  816. "h": 6,
  817. "w": 24,
  818. "x": 0,
  819. "y": 32
  820. },
  821. "hiddenSeries": false,
  822. "id": 2,
  823. "interval": "",
  824. "legend": {
  825. "avg": false,
  826. "current": false,
  827. "max": false,
  828. "min": false,
  829. "show": true,
  830. "total": false,
  831. "values": false
  832. },
  833. "lines": true,
  834. "linewidth": 1,
  835. "links": [],
  836. "nullPointMode": "null",
  837. "options": {
  838. "alertThreshold": true
  839. },
  840. "percentage": false,
  841. "pluginVersion": "7.3.7",
  842. "pointradius": 2,
  843. "points": false,
  844. "renderer": "flot",
  845. "seriesOverrides": [
  846. {
  847. "alias": "state",
  848. "lines": true
  849. }
  850. ],
  851. "spaceLength": 10,
  852. "stack": false,
  853. "steppedLine": false,
  854. "targets": [
  855. {
  856. "expr": "sum(rate(apisix_http_status{service=~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (code)",
  857. "instant": false,
  858. "interval": "",
  859. "intervalFactor": 1,
  860. "legendFormat": "HTTP Status:{{code}}",
  861. "refId": "A"
  862. }
  863. ],
  864. "thresholds": [],
  865. "timeFrom": null,
  866. "timeRegions": [],
  867. "timeShift": null,
  868. "title": "Requests per second (RPS) by status code",
  869. "tooltip": {
  870. "shared": true,
  871. "sort": 0,
  872. "value_type": "individual"
  873. },
  874. "type": "graph",
  875. "xaxis": {
  876. "buckets": null,
  877. "mode": "time",
  878. "name": null,
  879. "show": true,
  880. "values": []
  881. },
  882. "yaxes": [
  883. {
  884. "decimals": 0,
  885. "format": "short",
  886. "label": null,
  887. "logBase": 1,
  888. "max": null,
  889. "min": "0",
  890. "show": true
  891. },
  892. {
  893. "format": "short",
  894. "label": null,
  895. "logBase": 1,
  896. "max": null,
  897. "min": null,
  898. "show": true
  899. }
  900. ],
  901. "yaxis": {
  902. "align": false,
  903. "alignLevel": null
  904. }
  905. },
  906. {
  907. "aliasColors": {},
  908. "bars": false,
  909. "cacheTimeout": null,
  910. "dashLength": 10,
  911. "dashes": false,
  912. "datasource": "${DS_PROMETHEUS}",
  913. "description": "",
  914. "fieldConfig": {
  915. "defaults": {
  916. "custom": {},
  917. "links": []
  918. },
  919. "overrides": []
  920. },
  921. "fill": 3,
  922. "fillGradient": 0,
  923. "gridPos": {
  924. "h": 6,
  925. "w": 24,
  926. "x": 0,
  927. "y": 38
  928. },
  929. "hiddenSeries": false,
  930. "id": 32,
  931. "interval": "",
  932. "legend": {
  933. "alignAsTable": true,
  934. "avg": true,
  935. "current": true,
  936. "max": true,
  937. "min": true,
  938. "rightSide": true,
  939. "show": true,
  940. "sort": "total",
  941. "sortDesc": true,
  942. "total": true,
  943. "values": true
  944. },
  945. "lines": true,
  946. "linewidth": 1,
  947. "links": [],
  948. "nullPointMode": "null",
  949. "options": {
  950. "alertThreshold": true
  951. },
  952. "percentage": false,
  953. "pluginVersion": "7.3.7",
  954. "pointradius": 2,
  955. "points": false,
  956. "renderer": "flot",
  957. "seriesOverrides": [
  958. {
  959. "alias": "state",
  960. "lines": true
  961. }
  962. ],
  963. "spaceLength": 10,
  964. "stack": false,
  965. "steppedLine": false,
  966. "targets": [
  967. {
  968. "expr": "sum(rate(apisix_http_status{service=~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (service)",
  969. "instant": false,
  970. "interval": "",
  971. "intervalFactor": 1,
  972. "legendFormat": "service:{{service}}",
  973. "refId": "A"
  974. },
  975. {
  976. "expr": "sum(rate(apisix_http_status{service=~\"$service\",route=~\"$route\",instance=~\"$instance\"}[1m])) by (route)",
  977. "interval": "",
  978. "legendFormat": "route:{{route}}",
  979. "refId": "D"
  980. }
  981. ],
  982. "thresholds": [],
  983. "timeFrom": null,
  984. "timeRegions": [],
  985. "timeShift": null,
  986. "title": "Requests per second (RPS) per service/route",
  987. "tooltip": {
  988. "shared": true,
  989. "sort": 0,
  990. "value_type": "individual"
  991. },
  992. "type": "graph",
  993. "xaxis": {
  994. "buckets": null,
  995. "mode": "time",
  996. "name": null,
  997. "show": true,
  998. "values": []
  999. },
  1000. "yaxes": [
  1001. {
  1002. "decimals": 0,
  1003. "format": "short",
  1004. "label": null,
  1005. "logBase": 1,
  1006. "max": null,
  1007. "min": "0",
  1008. "show": true
  1009. },
  1010. {
  1011. "format": "short",
  1012. "label": null,
  1013. "logBase": 1,
  1014. "max": null,
  1015. "min": null,
  1016. "show": true
  1017. }
  1018. ],
  1019. "yaxis": {
  1020. "align": false,
  1021. "alignLevel": null
  1022. }
  1023. },
  1024. {
  1025. "aliasColors": {},
  1026. "bars": false,
  1027. "dashLength": 10,
  1028. "dashes": false,
  1029. "datasource": "${DS_PROMETHEUS}",
  1030. "fieldConfig": {
  1031. "defaults": {
  1032. "custom": {},
  1033. "mappings": [],
  1034. "thresholds": {
  1035. "mode": "absolute",
  1036. "steps": [
  1037. {
  1038. "color": "green",
  1039. "value": null
  1040. },
  1041. {
  1042. "color": "red",
  1043. "value": 80
  1044. }
  1045. ]
  1046. }
  1047. },
  1048. "overrides": []
  1049. },
  1050. "fill": 1,
  1051. "fillGradient": 0,
  1052. "gridPos": {
  1053. "h": 6,
  1054. "w": 8,
  1055. "x": 0,
  1056. "y": 44
  1057. },
  1058. "hiddenSeries": false,
  1059. "id": 27,
  1060. "legend": {
  1061. "avg": false,
  1062. "current": false,
  1063. "max": false,
  1064. "min": false,
  1065. "show": true,
  1066. "total": false,
  1067. "values": false
  1068. },
  1069. "lines": true,
  1070. "linewidth": 1,
  1071. "nullPointMode": "null",
  1072. "options": {
  1073. "alertThreshold": true
  1074. },
  1075. "percentage": false,
  1076. "pluginVersion": "7.3.7",
  1077. "pointradius": 2,
  1078. "points": false,
  1079. "renderer": "flot",
  1080. "seriesOverrides": [],
  1081. "spaceLength": 10,
  1082. "stack": false,
  1083. "steppedLine": false,
  1084. "targets": [
  1085. {
  1086. "expr": "histogram_quantile(0.90, sum(rate(apisix_http_latency_bucket{type=~\"request\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1087. "format": "time_series",
  1088. "interval": "",
  1089. "legendFormat": "P90",
  1090. "refId": "A"
  1091. },
  1092. {
  1093. "expr": "histogram_quantile(0.95, sum(rate(apisix_http_latency_bucket{type=~\"request\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1094. "interval": "",
  1095. "legendFormat": "P95",
  1096. "refId": "B"
  1097. },
  1098. {
  1099. "expr": "histogram_quantile(0.99, sum(rate(apisix_http_latency_bucket{type=~\"request\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1100. "interval": "",
  1101. "legendFormat": "P99",
  1102. "refId": "C"
  1103. }
  1104. ],
  1105. "thresholds": [],
  1106. "timeFrom": null,
  1107. "timeRegions": [],
  1108. "timeShift": null,
  1109. "title": "Request Latency",
  1110. "tooltip": {
  1111. "shared": true,
  1112. "sort": 0,
  1113. "value_type": "individual"
  1114. },
  1115. "type": "graph",
  1116. "xaxis": {
  1117. "buckets": null,
  1118. "mode": "time",
  1119. "name": null,
  1120. "show": true,
  1121. "values": []
  1122. },
  1123. "yaxes": [
  1124. {
  1125. "format": "ms",
  1126. "label": "",
  1127. "logBase": 1,
  1128. "max": null,
  1129. "min": null,
  1130. "show": true
  1131. },
  1132. {
  1133. "format": "short",
  1134. "label": null,
  1135. "logBase": 1,
  1136. "max": null,
  1137. "min": null,
  1138. "show": true
  1139. }
  1140. ],
  1141. "yaxis": {
  1142. "align": false,
  1143. "alignLevel": null
  1144. }
  1145. },
  1146. {
  1147. "aliasColors": {},
  1148. "bars": false,
  1149. "dashLength": 10,
  1150. "dashes": false,
  1151. "datasource": "${DS_PROMETHEUS}",
  1152. "description": "",
  1153. "fieldConfig": {
  1154. "defaults": {
  1155. "custom": {},
  1156. "mappings": [],
  1157. "thresholds": {
  1158. "mode": "absolute",
  1159. "steps": [
  1160. {
  1161. "color": "green",
  1162. "value": null
  1163. },
  1164. {
  1165. "color": "red",
  1166. "value": 80
  1167. }
  1168. ]
  1169. }
  1170. },
  1171. "overrides": []
  1172. },
  1173. "fill": 1,
  1174. "fillGradient": 0,
  1175. "gridPos": {
  1176. "h": 6,
  1177. "w": 8,
  1178. "x": 8,
  1179. "y": 44
  1180. },
  1181. "hiddenSeries": false,
  1182. "id": 28,
  1183. "legend": {
  1184. "avg": false,
  1185. "current": false,
  1186. "max": false,
  1187. "min": false,
  1188. "show": true,
  1189. "total": false,
  1190. "values": false
  1191. },
  1192. "lines": true,
  1193. "linewidth": 1,
  1194. "nullPointMode": "null",
  1195. "options": {
  1196. "alertThreshold": true
  1197. },
  1198. "percentage": false,
  1199. "pluginVersion": "7.3.7",
  1200. "pointradius": 2,
  1201. "points": false,
  1202. "renderer": "flot",
  1203. "seriesOverrides": [],
  1204. "spaceLength": 10,
  1205. "stack": false,
  1206. "steppedLine": false,
  1207. "targets": [
  1208. {
  1209. "expr": "histogram_quantile(0.90, sum(rate(apisix_http_latency_bucket{type=~\"apisix\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1210. "format": "time_series",
  1211. "instant": false,
  1212. "interval": "",
  1213. "intervalFactor": 1,
  1214. "legendFormat": "P90",
  1215. "refId": "A"
  1216. },
  1217. {
  1218. "expr": "histogram_quantile(0.95, sum(rate(apisix_http_latency_bucket{type=~\"apisix\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1219. "interval": "",
  1220. "legendFormat": "P95",
  1221. "refId": "B"
  1222. },
  1223. {
  1224. "expr": "histogram_quantile(0.99, sum(rate(apisix_http_latency_bucket{type=~\"apisix\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1225. "interval": "",
  1226. "legendFormat": "P99",
  1227. "refId": "C"
  1228. }
  1229. ],
  1230. "thresholds": [],
  1231. "timeFrom": null,
  1232. "timeRegions": [],
  1233. "timeShift": null,
  1234. "title": "APISIX Latency",
  1235. "tooltip": {
  1236. "shared": true,
  1237. "sort": 0,
  1238. "value_type": "individual"
  1239. },
  1240. "type": "graph",
  1241. "xaxis": {
  1242. "buckets": null,
  1243. "mode": "time",
  1244. "name": null,
  1245. "show": true,
  1246. "values": []
  1247. },
  1248. "yaxes": [
  1249. {
  1250. "format": "ms",
  1251. "label": null,
  1252. "logBase": 1,
  1253. "max": null,
  1254. "min": null,
  1255. "show": true
  1256. },
  1257. {
  1258. "format": "short",
  1259. "label": null,
  1260. "logBase": 1,
  1261. "max": null,
  1262. "min": null,
  1263. "show": true
  1264. }
  1265. ],
  1266. "yaxis": {
  1267. "align": false,
  1268. "alignLevel": null
  1269. }
  1270. },
  1271. {
  1272. "aliasColors": {},
  1273. "bars": false,
  1274. "dashLength": 10,
  1275. "dashes": false,
  1276. "datasource": "${DS_PROMETHEUS}",
  1277. "fieldConfig": {
  1278. "defaults": {
  1279. "custom": {},
  1280. "mappings": [],
  1281. "thresholds": {
  1282. "mode": "absolute",
  1283. "steps": [
  1284. {
  1285. "color": "green",
  1286. "value": null
  1287. },
  1288. {
  1289. "color": "red",
  1290. "value": 80
  1291. }
  1292. ]
  1293. }
  1294. },
  1295. "overrides": []
  1296. },
  1297. "fill": 1,
  1298. "fillGradient": 0,
  1299. "gridPos": {
  1300. "h": 6,
  1301. "w": 8,
  1302. "x": 16,
  1303. "y": 44
  1304. },
  1305. "hiddenSeries": false,
  1306. "id": 33,
  1307. "legend": {
  1308. "avg": false,
  1309. "current": false,
  1310. "max": false,
  1311. "min": false,
  1312. "show": true,
  1313. "total": false,
  1314. "values": false
  1315. },
  1316. "lines": true,
  1317. "linewidth": 1,
  1318. "nullPointMode": "null",
  1319. "options": {
  1320. "alertThreshold": true
  1321. },
  1322. "percentage": false,
  1323. "pluginVersion": "7.3.7",
  1324. "pointradius": 2,
  1325. "points": false,
  1326. "renderer": "flot",
  1327. "seriesOverrides": [],
  1328. "spaceLength": 10,
  1329. "stack": false,
  1330. "steppedLine": false,
  1331. "targets": [
  1332. {
  1333. "expr": "histogram_quantile(0.90, sum(rate(apisix_http_latency_bucket{type=~\"upstream\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1334. "format": "time_series",
  1335. "interval": "",
  1336. "legendFormat": "P90",
  1337. "refId": "A"
  1338. },
  1339. {
  1340. "expr": "histogram_quantile(0.95, sum(rate(apisix_http_latency_bucket{type=~\"upstream\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1341. "interval": "",
  1342. "legendFormat": "P95",
  1343. "refId": "B"
  1344. },
  1345. {
  1346. "expr": "histogram_quantile(0.99, sum(rate(apisix_http_latency_bucket{type=~\"upstream\",service=~\"$service\",consumer=~\"$consumer\",node=~\"$node\"}[1m])) by (le))",
  1347. "interval": "",
  1348. "legendFormat": "P99",
  1349. "refId": "C"
  1350. }
  1351. ],
  1352. "thresholds": [],
  1353. "timeFrom": null,
  1354. "timeRegions": [],
  1355. "timeShift": null,
  1356. "title": "Upstream Latency",
  1357. "tooltip": {
  1358. "shared": true,
  1359. "sort": 0,
  1360. "value_type": "individual"
  1361. },
  1362. "type": "graph",
  1363. "xaxis": {
  1364. "buckets": null,
  1365. "mode": "time",
  1366. "name": null,
  1367. "show": true,
  1368. "values": []
  1369. },
  1370. "yaxes": [
  1371. {
  1372. "format": "ms",
  1373. "label": "",
  1374. "logBase": 1,
  1375. "max": null,
  1376. "min": null,
  1377. "show": true
  1378. },
  1379. {
  1380. "format": "short",
  1381. "label": null,
  1382. "logBase": 1,
  1383. "max": null,
  1384. "min": null,
  1385. "show": true
  1386. }
  1387. ],
  1388. "yaxis": {
  1389. "align": false,
  1390. "alignLevel": null
  1391. }
  1392. },
  1393. {
  1394. "collapsed": false,
  1395. "datasource": "${DS_PROMETHEUS}",
  1396. "gridPos": {
  1397. "h": 1,
  1398. "w": 24,
  1399. "x": 0,
  1400. "y": 50
  1401. },
  1402. "id": 23,
  1403. "panels": [],
  1404. "title": "Misc",
  1405. "type": "row"
  1406. },
  1407. {
  1408. "aliasColors": {},
  1409. "bars": false,
  1410. "dashLength": 10,
  1411. "dashes": false,
  1412. "datasource": "${DS_PROMETHEUS}",
  1413. "fieldConfig": {
  1414. "defaults": {
  1415. "custom": {},
  1416. "links": []
  1417. },
  1418. "overrides": []
  1419. },
  1420. "fill": 1,
  1421. "fillGradient": 0,
  1422. "gridPos": {
  1423. "h": 6,
  1424. "w": 18,
  1425. "x": 0,
  1426. "y": 51
  1427. },
  1428. "hiddenSeries": false,
  1429. "id": 30,
  1430. "legend": {
  1431. "alignAsTable": false,
  1432. "avg": false,
  1433. "current": false,
  1434. "max": false,
  1435. "min": false,
  1436. "rightSide": false,
  1437. "show": true,
  1438. "total": false,
  1439. "values": false
  1440. },
  1441. "lines": true,
  1442. "linewidth": 1,
  1443. "nullPointMode": "null",
  1444. "options": {
  1445. "alertThreshold": true
  1446. },
  1447. "percentage": false,
  1448. "pluginVersion": "7.3.7",
  1449. "pointradius": 2,
  1450. "points": false,
  1451. "renderer": "flot",
  1452. "seriesOverrides": [],
  1453. "spaceLength": 10,
  1454. "stack": false,
  1455. "steppedLine": false,
  1456. "targets": [
  1457. {
  1458. "expr": "sum(apisix_etcd_modify_indexes{key=~\"consumers|global_rules|max_modify_index|prev_index|protos|routes|services|ssls|stream_routes|upstreams|x_etcd_index\"}) by (key)",
  1459. "interval": "",
  1460. "intervalFactor": 1,
  1461. "legendFormat": "{{key}}",
  1462. "refId": "A"
  1463. }
  1464. ],
  1465. "thresholds": [],
  1466. "timeFrom": null,
  1467. "timeRegions": [],
  1468. "timeShift": null,
  1469. "title": "Etcd modify indexes",
  1470. "tooltip": {
  1471. "shared": true,
  1472. "sort": 0,
  1473. "value_type": "individual"
  1474. },
  1475. "type": "graph",
  1476. "xaxis": {
  1477. "buckets": null,
  1478. "mode": "time",
  1479. "name": null,
  1480. "show": true,
  1481. "values": []
  1482. },
  1483. "yaxes": [
  1484. {
  1485. "decimals": 0,
  1486. "format": "short",
  1487. "label": "",
  1488. "logBase": 1,
  1489. "max": null,
  1490. "min": null,
  1491. "show": true
  1492. },
  1493. {
  1494. "decimals": null,
  1495. "format": "short",
  1496. "label": "",
  1497. "logBase": 1,
  1498. "max": null,
  1499. "min": null,
  1500. "show": true
  1501. }
  1502. ],
  1503. "yaxis": {
  1504. "align": false,
  1505. "alignLevel": null
  1506. }
  1507. },
  1508. {
  1509. "datasource": "${DS_PROMETHEUS}",
  1510. "fieldConfig": {
  1511. "defaults": {
  1512. "custom": {},
  1513. "mappings": [],
  1514. "thresholds": {
  1515. "mode": "absolute",
  1516. "steps": [
  1517. {
  1518. "color": "green",
  1519. "value": null
  1520. },
  1521. {
  1522. "color": "red",
  1523. "value": 0
  1524. },
  1525. {
  1526. "color": "green",
  1527. "value": 1
  1528. }
  1529. ]
  1530. }
  1531. },
  1532. "overrides": []
  1533. },
  1534. "gridPos": {
  1535. "h": 6,
  1536. "w": 3,
  1537. "x": 18,
  1538. "y": 51
  1539. },
  1540. "id": 25,
  1541. "options": {
  1542. "colorMode": "value",
  1543. "graphMode": "area",
  1544. "justifyMode": "auto",
  1545. "orientation": "auto",
  1546. "reduceOptions": {
  1547. "calcs": [
  1548. "last"
  1549. ],
  1550. "fields": "",
  1551. "values": false
  1552. },
  1553. "textMode": "auto"
  1554. },
  1555. "pluginVersion": "7.3.7",
  1556. "targets": [
  1557. {
  1558. "expr": "sum(apisix_etcd_reachable{instance=~\"$instance\"})",
  1559. "interval": "",
  1560. "legendFormat": "",
  1561. "refId": "A"
  1562. }
  1563. ],
  1564. "timeFrom": null,
  1565. "timeShift": null,
  1566. "title": "Etcd reachable",
  1567. "type": "stat"
  1568. },
  1569. {
  1570. "datasource": "${DS_PROMETHEUS}",
  1571. "fieldConfig": {
  1572. "defaults": {
  1573. "custom": {},
  1574. "mappings": [],
  1575. "thresholds": {
  1576. "mode": "absolute",
  1577. "steps": [
  1578. {
  1579. "color": "green",
  1580. "value": null
  1581. },
  1582. {
  1583. "color": "yellow",
  1584. "value": 1
  1585. }
  1586. ]
  1587. }
  1588. },
  1589. "overrides": []
  1590. },
  1591. "gridPos": {
  1592. "h": 6,
  1593. "w": 3,
  1594. "x": 21,
  1595. "y": 51
  1596. },
  1597. "id": 29,
  1598. "options": {
  1599. "colorMode": "value",
  1600. "graphMode": "area",
  1601. "justifyMode": "auto",
  1602. "orientation": "auto",
  1603. "reduceOptions": {
  1604. "calcs": [
  1605. "last"
  1606. ],
  1607. "fields": "",
  1608. "values": false
  1609. },
  1610. "textMode": "auto"
  1611. },
  1612. "pluginVersion": "7.3.7",
  1613. "targets": [
  1614. {
  1615. "expr": "sum(apisix_nginx_metric_errors_total{instance=~\"$instance\"})",
  1616. "interval": "",
  1617. "legendFormat": "",
  1618. "refId": "A"
  1619. }
  1620. ],
  1621. "timeFrom": null,
  1622. "timeShift": null,
  1623. "title": "Nginx metric errors",
  1624. "type": "stat"
  1625. }
  1626. ],
  1627. "refresh": "5s",
  1628. "schemaVersion": 26,
  1629. "style": "dark",
  1630. "tags": [],
  1631. "templating": {
  1632. "list": [
  1633. {
  1634. "hide": 0,
  1635. "label": "datasource",
  1636. "name": "DS_PROMETHEUS",
  1637. "options": [],
  1638. "query": "prometheus",
  1639. "refresh": 1,
  1640. "regex": "apisix",
  1641. "type": "datasource"
  1642. },
  1643. {
  1644. "allValue": ".*",
  1645. "current": {},
  1646. "datasource": "${DS_PROMETHEUS}",
  1647. "definition": "label_values(apisix_http_status,service)",
  1648. "error": null,
  1649. "hide": 0,
  1650. "includeAll": true,
  1651. "label": null,
  1652. "multi": true,
  1653. "name": "service",
  1654. "options": [],
  1655. "query": "label_values(apisix_http_status,service)",
  1656. "refresh": 2,
  1657. "regex": "",
  1658. "skipUrlSync": false,
  1659. "sort": 1,
  1660. "tagValuesQuery": "",
  1661. "tags": [],
  1662. "tagsQuery": "",
  1663. "type": "query",
  1664. "useTags": false
  1665. },
  1666. {
  1667. "allValue": ".*",
  1668. "current": {},
  1669. "datasource": "${DS_PROMETHEUS}",
  1670. "definition": "label_values(apisix_http_status,route)",
  1671. "error": null,
  1672. "hide": 0,
  1673. "includeAll": true,
  1674. "label": null,
  1675. "multi": true,
  1676. "name": "route",
  1677. "options": [],
  1678. "query": "label_values(apisix_http_status,route)",
  1679. "refresh": 2,
  1680. "regex": "",
  1681. "skipUrlSync": false,
  1682. "sort": 1,
  1683. "tagValuesQuery": "",
  1684. "tags": [],
  1685. "tagsQuery": "",
  1686. "type": "query",
  1687. "useTags": false
  1688. },
  1689. {
  1690. "allValue": ".*",
  1691. "current": {},
  1692. "datasource": "${DS_PROMETHEUS}",
  1693. "definition": "label_values(apisix_nginx_http_current_connections,instance)",
  1694. "error": null,
  1695. "hide": 0,
  1696. "includeAll": true,
  1697. "label": null,
  1698. "multi": true,
  1699. "name": "instance",
  1700. "options": [],
  1701. "query": "label_values(apisix_http_status,instance)",
  1702. "refresh": 2,
  1703. "regex": ".*",
  1704. "skipUrlSync": false,
  1705. "sort": 1,
  1706. "tagValuesQuery": "",
  1707. "tags": [],
  1708. "tagsQuery": "",
  1709. "type": "query",
  1710. "useTags": false
  1711. },
  1712. {
  1713. "allValue": ".*",
  1714. "current": {},
  1715. "datasource": "${DS_PROMETHEUS}",
  1716. "definition": "label_values(apisix_http_status,consumer)",
  1717. "error": null,
  1718. "hide": 0,
  1719. "includeAll": true,
  1720. "label": null,
  1721. "multi": true,
  1722. "name": "consumer",
  1723. "options": [],
  1724. "query": "label_values(apisix_http_status,consumer)",
  1725. "refresh": 2,
  1726. "regex": ".*",
  1727. "skipUrlSync": false,
  1728. "sort": 1,
  1729. "tagValuesQuery": "",
  1730. "tags": [],
  1731. "tagsQuery": "",
  1732. "type": "query",
  1733. "useTags": false
  1734. },
  1735. {
  1736. "allValue": ".*",
  1737. "current": {},
  1738. "datasource": "${DS_PROMETHEUS}",
  1739. "definition": "label_values(apisix_http_status,node)",
  1740. "error": null,
  1741. "hide": 0,
  1742. "includeAll": true,
  1743. "label": null,
  1744. "multi": true,
  1745. "name": "node",
  1746. "options": [],
  1747. "query": "label_values(apisix_http_status,node)",
  1748. "refresh": 2,
  1749. "regex": "",
  1750. "skipUrlSync": false,
  1751. "sort": 1,
  1752. "tagValuesQuery": "",
  1753. "tags": [],
  1754. "tagsQuery": "",
  1755. "type": "query",
  1756. "useTags": false
  1757. }
  1758. ]
  1759. },
  1760. "time": {
  1761. "from": "now-30m",
  1762. "to": "now"
  1763. },
  1764. "timepicker": {
  1765. "refresh_intervals": [
  1766. "5s",
  1767. "10s",
  1768. "30s",
  1769. "1m",
  1770. "5m",
  1771. "15m",
  1772. "30m",
  1773. "1h",
  1774. "2h",
  1775. "1d"
  1776. ]
  1777. },
  1778. "timezone": "",
  1779. "title": "Apache APISIX",
  1780. "uid": "bLlNuRLWz",
  1781. "version": 13
  1782. }