├── .gitignore ├── LICENSE ├── README.md ├── docker ├── docker-compose.yml ├── grafana │ └── provisioning │ │ ├── dashboards │ │ ├── dashboard.yml │ │ └── spring-boot-2.1-dashboard.json │ │ └── datasources │ │ └── datasource.yml └── prometheus │ └── prometheus.yml └── images ├── analysis-tool-chain.png ├── cf-latency-analysis-latency-flow.png ├── grafana-basic-hikari-stats.png ├── grafana-basic-stats.png ├── grafana-jvm-gc-stats.png ├── grafana-jvm-stats.png └── grafana-tomcat-stats.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Less is more for the database connection pools in the cloud 2 | 3 | **Prashanth `PB` Belathur** 4 | **Staff Solutions Architect, VMWare Pivotal** 5 | 6 | ## TL;DR 7 | - A well-behaved spring boot application running in a single-tenant host, when deployed in a multi-tenant host (_cloud_) degrades the performance of other applications 8 | on the same host. 9 | - The _default_ Hikari Connection Pool configuration in your spring boot app is usually _oversized_ and, a few of the properties are set to the _upper limit_. 10 | These properties need to be _downsized_ for deployment in a **multi-tenant host** environment to minimize the _noisy neighbor_ impacts. 11 | 12 | ## Recommendations 13 | 14 | Applicable for any spring boot application using HikariCP and deployed in the cloud (PCF, AWS, Azure etc.) 15 | 16 | * keep pool size under 10 connections per application instance. 17 | 18 | * always specify the idle timeout, the default 10s is usually high for quick response apps. 19 | 20 | * a sensible application instance scaling to keep the total database connections under 1000 across all the application instances to minimize the _noisy neighbour_ impacts. 21 | 22 | * research your infrastructure imposed connection time limits and, then set the maximum lifetime and connection timeout appropriately. 23 | 24 | ## Overview 25 | 26 | A critical spring boot application for a major shipping company uses Oracle as the datastore. The database server also hosts databases for other unrelated applications. The critical application would behave and perform well when running in a VM, but when deployed in Pivotal Cloud Foundry (PCF), all the other applications in the same PCF org/space encountered severe performance degradation. 27 | 28 | I outline the technique used to identify/analyze the cause for performance degradation and, fine-tune the spring boot application to minimize the _noisy neighbor_ impact on other applications. 29 | 30 | ### Tools 31 | 32 | * **Micrometer** to _expose_ the metrics from the spring boot application 33 | * **Prometheus** to _store_ and _time-series aggregation_ of metric data 34 | * **Grafana** to _visualize_ the aggregated metric data from Prometheus 35 | * **Docker** to _run_ Prometheus and Grafana in containers. 36 | * **JMeter** for _load tests_ 37 | 38 | ![analysis toolchain](images/analysis-tool-chain.png) 39 | 40 | ### Setup 41 | 42 | 1. Configure `Actuator` and `Prometheus Registry` in **your** Spring Boot 2.x app 43 | 44 | `build.gradle` 45 | ``` 46 | dependencies { 47 | ... 48 | implementation 'org.springframework.boot:spring-boot-starter-web' 49 | implementation 'org.springframework.boot:spring-boot-starter-actuator' 50 | implementation 'io.micrometer:micrometer-registry-prometheus' 51 | ... 52 | } 53 | ``` 54 | 55 | 2. GIT clone this repo [https://github.com/pbelathur/spring-boot-performance-analysis.git] 56 | 57 | 3. Replace `LOCAL_MACHINE_IP` with the **actual** IP address of the machine running Docker in `spring-boot-performance-analysis/docker/prometheus.yml` 58 | 59 | ``` 60 | scrape_configs: 61 | - job_name: 'performance-troubleshooter' 62 | scrape_interval: 5s 63 | metrics_path: '/actuator/prometheus' 64 | static_configs: 65 | - targets: ['LOCAL_MACHINE_IP:PORT'] 66 | ``` 67 | * LOCAL_MACHINE_IP is **NOT** `localhost` OR `127.0.0.1` as the **prometheus** and **grafana** is running as docker container. 68 | * PORT is the Spring Boot application port usually 8080 69 | 70 | 71 | 4. Start **Prometheus** and **Grafana** on your computer: `docker-compose up` 72 | 73 | 5. Verify **Prometheus** can communicate with your spring boot application 74 | - using a web browser access `http://localhost:9090/targets` 75 | 76 | 77 | 6. Verify **Grafana** can communicate with **Prometheus** 78 | 79 | - using a web browser access `http://localhost:3000` 80 | - under the `Recently viewed dashboards` look for the entry `Spring Boot 2.1 Statistics` 81 | - click on `Spring Boot 2.1 Statistics` and look for `Instance =` `LOCAL_MACHINE_IP:PORT` specified in `prometheus.yml` 82 | 83 | 84 | 7. Setup **JMeter** load test with REST API endpoint on your spring boot app with `number-of-threads=240`, `ramp-up-period=30s` and `loop-count=25` 85 | 86 | - Refer to https://octoperf.com/blog/2018/04/23/jmeter-rest-api-testing/ for JMeter setup for REST endpoint load tests. 87 | 88 | ### Execution 89 | 90 | 1. Start your Spring Boot application 91 | 92 | 2. Start JMeter load test on your computer 93 | 94 | 3. During the execution of the load test, access http://localhost:3000 --> **HikariCP Statistics** section in __Spring Boot 2.1 Statistics__ dashboard 95 | 96 | ![grafana-basic-hikari-stats](images/grafana-basic-hikari-stats.png) 97 | 98 | - **Connection Size** is the total connections in DB connection pool (`active + idle + pending`). 99 | - **Connections** is the count of `active`+ `idle` + `pending` connections over a rolling time window. 100 | - **Connection Usage Time** is approximately equal to `db query execution time`. 101 | - **Connection Acquire Time** 102 | - **Connection Creation Time** 103 | 104 | ### Observations 105 | 106 | | Situation | active | idle | pending | Notes | 107 | | :--- | :--- | :--- |:--- | :--- | 108 | | _noisy neighbor_ | 0 | `> maximumPoolSize / 2` and `> minimumIdle` | 0 | if this condition is observed under _no-request scenario_ and after considerable time since the last request, then the spring boot app is a potential _noisy neighbor_, as idle connections are **not** returned to the pool and, they consume system resources on the database server which increase connection times, decrease throughput for other applications using the same database server.| 109 | | _sweet spot_ | `maximumPoolSize` | `<=minimumIdle` | `< 2 x maximumPoolSize` | best possible in terms of database performance, utilization and minimize chance for app to be a noisy neighbor.| 110 | | _inadequate connections_ | `maximumPoolSize` | `<= minimumIdle` | `>3 x maximumPoolSize` | if _consistent_ spike is noticed in `Connection Usage Time`, then increase connection pool size in steps of 2 until you see performance improvement. | 111 | 112 | - If **Connections** < `active + idle + pending` 113 | 114 | there is a _potential memory leak_ in the spring boot application that needs further investigation using _memory/thread dump analysis_. 115 | 116 | ## Analysis 117 | A spring boot application with a service taking 50ms to complete a database query using a single connection is used to provide insights in calculating the connection pool size, idle pool size and timeouts. 118 | 119 | #### Connection Pool Size 120 | * `spring.datasource.hikari.maximum-pool-size` 121 | * `50ms/database query` => `200 database queries/sec` per connection 122 | * If `pool size = 10 connections` on a single app instance, then we can handle `200 X 10 = 2000 queries/sec` per instance. 123 | * if we scale the apps instance to 20, we can handle `2000 x 20 = 40,000 queries/sec` among 20 instances, by using `10 x 20 = 200 connections` 124 | 125 | Keeping `pool size <= 10 connections` per app instance and _sensible_ app instance scaling to keep the `total db connections < 1000` across all app instances (_especially for Oracle_) results in minimizing the _noisy neighbour_ impacts in PCF. 126 | 127 | #### Idle Timeout 128 | * `spring.datasource.hikari.idle-timeout` 129 | 130 | * the 10s default is high for most applications; set this value slightly higher than the average database query time. so that the connections are reclaimed faster preventing too many idle connections in pool. 131 | (e.g. `average database query time = 50ms`, `idle-timeout = 100ms`) 132 | 133 | #### Maximum lifetime 134 | * `spring.datasource.hikari.max-lifetime` 135 | 136 | * this should be set several seconds shorter than any database or infrastructure imposed connection time limit. The main idea here is the application needs to timeout _before_ the infrastructure imposed connection time limit. 137 | 138 | #### Connection Timeout 139 | * `spring.datasource.hikari.connection-timeout` 140 | 141 | * the 30s default might be high for time critical apps, hence set the value based on the `time criticality` of the app. With 5s-10s for time critical applications. Making this value too small will result in SQLExceptions flooding the logs. 142 | 143 | ## Sample HikariCP Configuration 144 | 145 | ``` 146 | # maximum db connections in pool 147 | spring.datasource.hikari.maximum-pool-size=10 148 | 149 | # minimum number of idle connections maintained by HikariCP in a connection pool 150 | spring.datasource.hikari.minimum-idle=3 151 | 152 | # maximum idle time for connection 153 | spring.datasource.hikari.idle-timeout=100 # 100ms 154 | 155 | # maximum number of milliseconds that a client will wait for a connection from pool 156 | spring.datasource.hikari.connection-timeout=10000 # 10s 157 | 158 | # maximum lifetime in milliseconds of a connection in the pool after it is closed. 159 | spring.datasource.hikari.max-lifetime=120000 # 2m 160 | ``` 161 | -------------------------------------------------------------------------------- /docker/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.7' 2 | 3 | services: 4 | prometheus: 5 | image: prom/prometheus:v2.6.1 6 | ports: 7 | - 9090:9090 8 | volumes: 9 | - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml 10 | networks: 11 | monitoring: 12 | aliases: 13 | - prometheus 14 | grafana: 15 | image: grafana/grafana:5.4.3 16 | ports: 17 | - 3000:3000 18 | volumes: 19 | - ./grafana/provisioning/:/etc/grafana/provisioning/ 20 | environment: 21 | - GF_SECURITY_ADMIN_USER=admin 22 | - GF_SECURITY_ADMIN_PASSWORD=password 23 | networks: 24 | monitoring: 25 | aliases: 26 | - grafana 27 | networks: 28 | monitoring: 29 | -------------------------------------------------------------------------------- /docker/grafana/provisioning/dashboards/dashboard.yml: -------------------------------------------------------------------------------- 1 | apiVersion: 1 2 | 3 | providers: 4 | - name: 'PROMETHEUS_DATASOURCE' 5 | orgId: 1 6 | folder: '' 7 | type: file 8 | disableDeletion: false 9 | editable: true 10 | options: 11 | path: /etc/grafana/provisioning/dashboards 12 | -------------------------------------------------------------------------------- /docker/grafana/provisioning/dashboards/spring-boot-2.1-dashboard.json: -------------------------------------------------------------------------------- 1 | { 2 | "annotations": { 3 | "list": [ 4 | { 5 | "builtIn": 1, 6 | "datasource": "-- Grafana --", 7 | "enable": true, 8 | "hide": true, 9 | "iconColor": "rgba(0, 211, 255, 1)", 10 | "name": "Annotations & Alerts", 11 | "type": "dashboard" 12 | } 13 | ] 14 | }, 15 | "description": "Dashboard for Spring Boot2.1 Statistics(based on Spring Boot2 Statistic by micrometer-prometheus).", 16 | "editable": true, 17 | "gnetId": 10280, 18 | "graphTooltip": 0, 19 | "id": 1, 20 | "iteration": 1584991010977, 21 | "links": [], 22 | "panels": [ 23 | { 24 | "collapsed": false, 25 | "gridPos": { 26 | "h": 1, 27 | "w": 24, 28 | "x": 0, 29 | "y": 0 30 | }, 31 | "id": 54, 32 | "panels": [], 33 | "title": "Basic Statistics", 34 | "type": "row" 35 | }, 36 | { 37 | "cacheTimeout": null, 38 | "colorBackground": false, 39 | "colorValue": true, 40 | "colors": [ 41 | "rgba(245, 54, 54, 0.9)", 42 | "#5195ce", 43 | "rgba(50, 172, 45, 0.97)" 44 | ], 45 | "datasource": "PROMETHEUS_DATASOURCE", 46 | "decimals": 1, 47 | "editable": true, 48 | "error": false, 49 | "format": "s", 50 | "gauge": { 51 | "maxValue": 100, 52 | "minValue": 0, 53 | "show": false, 54 | "thresholdLabels": false, 55 | "thresholdMarkers": true 56 | }, 57 | "gridPos": { 58 | "h": 3, 59 | "w": 6, 60 | "x": 0, 61 | "y": 1 62 | }, 63 | "height": "", 64 | "id": 52, 65 | "interval": null, 66 | "links": [], 67 | "mappingType": 1, 68 | "mappingTypes": [ 69 | { 70 | "name": "value to text", 71 | "value": 1 72 | }, 73 | { 74 | "name": "range to text", 75 | "value": 2 76 | } 77 | ], 78 | "maxDataPoints": 100, 79 | "nullPointMode": "connected", 80 | "nullText": null, 81 | "postfix": "", 82 | "postfixFontSize": "50%", 83 | "prefix": "", 84 | "prefixFontSize": "70%", 85 | "rangeMaps": [ 86 | { 87 | "from": "null", 88 | "text": "N/A", 89 | "to": "null" 90 | } 91 | ], 92 | "sparkline": { 93 | "fillColor": "rgba(31, 118, 189, 0.18)", 94 | "full": false, 95 | "lineColor": "rgb(31, 120, 193)", 96 | "show": false 97 | }, 98 | "tableColumn": "", 99 | "targets": [ 100 | { 101 | "expr": "process_uptime_seconds{application=\"$application\", instance=\"$instance\"}", 102 | "format": "time_series", 103 | "intervalFactor": 2, 104 | "legendFormat": "", 105 | "metric": "", 106 | "refId": "A", 107 | "step": 14400 108 | } 109 | ], 110 | "thresholds": "", 111 | "title": "Uptime", 112 | "transparent": false, 113 | "type": "singlestat", 114 | "valueFontSize": "80%", 115 | "valueMaps": [ 116 | { 117 | "op": "=", 118 | "text": "N/A", 119 | "value": "null" 120 | } 121 | ], 122 | "valueName": "current" 123 | }, 124 | { 125 | "cacheTimeout": null, 126 | "colorBackground": false, 127 | "colorValue": true, 128 | "colors": [ 129 | "rgba(50, 172, 45, 0.97)", 130 | "rgba(237, 129, 40, 0.89)", 131 | "rgba(245, 54, 54, 0.9)" 132 | ], 133 | "datasource": "PROMETHEUS_DATASOURCE", 134 | "decimals": 1, 135 | "editable": true, 136 | "error": false, 137 | "format": "percent", 138 | "gauge": { 139 | "maxValue": 100, 140 | "minValue": 0, 141 | "show": true, 142 | "thresholdLabels": false, 143 | "thresholdMarkers": true 144 | }, 145 | "gridPos": { 146 | "h": 6, 147 | "w": 5, 148 | "x": 6, 149 | "y": 1 150 | }, 151 | "id": 58, 152 | "interval": null, 153 | "links": [], 154 | "mappingType": 1, 155 | "mappingTypes": [ 156 | { 157 | "name": "value to text", 158 | "value": 1 159 | }, 160 | { 161 | "name": "range to text", 162 | "value": 2 163 | } 164 | ], 165 | "maxDataPoints": 100, 166 | "nullPointMode": "connected", 167 | "nullText": null, 168 | "postfix": "", 169 | "postfixFontSize": "50%", 170 | "prefix": "", 171 | "prefixFontSize": "70%", 172 | "rangeMaps": [ 173 | { 174 | "from": "null", 175 | "text": "N/A", 176 | "to": "null" 177 | } 178 | ], 179 | "sparkline": { 180 | "fillColor": "rgba(31, 118, 189, 0.18)", 181 | "full": false, 182 | "lineColor": "rgb(31, 120, 193)", 183 | "show": false 184 | }, 185 | "tableColumn": "", 186 | "targets": [ 187 | { 188 | "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\"})", 189 | "format": "time_series", 190 | "intervalFactor": 1, 191 | "legendFormat": "", 192 | "refId": "A", 193 | "step": 14400 194 | } 195 | ], 196 | "thresholds": "70,90", 197 | "title": "Heap Used", 198 | "type": "singlestat", 199 | "valueFontSize": "70%", 200 | "valueMaps": [ 201 | { 202 | "op": "=", 203 | "text": "N/A", 204 | "value": "null" 205 | } 206 | ], 207 | "valueName": "current" 208 | }, 209 | { 210 | "cacheTimeout": null, 211 | "colorBackground": false, 212 | "colorValue": true, 213 | "colors": [ 214 | "rgba(50, 172, 45, 0.97)", 215 | "rgba(237, 129, 40, 0.89)", 216 | "rgba(245, 54, 54, 0.9)" 217 | ], 218 | "datasource": "PROMETHEUS_DATASOURCE", 219 | "decimals": 1, 220 | "editable": true, 221 | "error": false, 222 | "format": "percent", 223 | "gauge": { 224 | "maxValue": 100, 225 | "minValue": 0, 226 | "show": true, 227 | "thresholdLabels": false, 228 | "thresholdMarkers": true 229 | }, 230 | "gridPos": { 231 | "h": 6, 232 | "w": 5, 233 | "x": 11, 234 | "y": 1 235 | }, 236 | "id": 60, 237 | "interval": null, 238 | "links": [], 239 | "mappingType": 2, 240 | "mappingTypes": [ 241 | { 242 | "name": "value to text", 243 | "value": 1 244 | }, 245 | { 246 | "name": "range to text", 247 | "value": 2 248 | } 249 | ], 250 | "maxDataPoints": 100, 251 | "nullPointMode": "connected", 252 | "nullText": null, 253 | "postfix": "", 254 | "postfixFontSize": "50%", 255 | "prefix": "", 256 | "prefixFontSize": "70%", 257 | "rangeMaps": [ 258 | { 259 | "from": "null", 260 | "text": "N/A", 261 | "to": "null" 262 | }, 263 | { 264 | "from": "-99999999999999999999999999999999", 265 | "text": "N/A", 266 | "to": "0" 267 | } 268 | ], 269 | "sparkline": { 270 | "fillColor": "rgba(31, 118, 189, 0.18)", 271 | "full": false, 272 | "lineColor": "rgb(31, 120, 193)", 273 | "show": false 274 | }, 275 | "tableColumn": "", 276 | "targets": [ 277 | { 278 | "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"nonheap\"})", 279 | "format": "time_series", 280 | "intervalFactor": 2, 281 | "legendFormat": "", 282 | "refId": "A", 283 | "step": 14400 284 | } 285 | ], 286 | "thresholds": "70,90", 287 | "title": "Non-Heap Used", 288 | "type": "singlestat", 289 | "valueFontSize": "70%", 290 | "valueMaps": [ 291 | { 292 | "op": "=", 293 | "text": "N/A", 294 | "value": "null" 295 | }, 296 | { 297 | "op": "=", 298 | "text": "x", 299 | "value": "" 300 | } 301 | ], 302 | "valueName": "current" 303 | }, 304 | { 305 | "aliasColors": {}, 306 | "bars": false, 307 | "dashLength": 10, 308 | "dashes": false, 309 | "datasource": "PROMETHEUS_DATASOURCE", 310 | "fill": 1, 311 | "gridPos": { 312 | "h": 6, 313 | "w": 8, 314 | "x": 16, 315 | "y": 1 316 | }, 317 | "id": 66, 318 | "legend": { 319 | "avg": false, 320 | "current": false, 321 | "max": false, 322 | "min": false, 323 | "show": true, 324 | "total": false, 325 | "values": false 326 | }, 327 | "lines": true, 328 | "linewidth": 1, 329 | "links": [], 330 | "nullPointMode": "null", 331 | "percentage": false, 332 | "pointradius": 5, 333 | "points": false, 334 | "renderer": "flot", 335 | "seriesOverrides": [], 336 | "spaceLength": 10, 337 | "stack": false, 338 | "steppedLine": false, 339 | "targets": [ 340 | { 341 | "expr": "process_files_open_files{application=\"$application\", instance=\"$instance\"}", 342 | "format": "time_series", 343 | "intervalFactor": 1, 344 | "legendFormat": "Open Files", 345 | "refId": "A" 346 | }, 347 | { 348 | "expr": "process_files_max_files{application=\"$application\", instance=\"$instance\"}", 349 | "format": "time_series", 350 | "intervalFactor": 1, 351 | "legendFormat": "Max Files", 352 | "refId": "B" 353 | } 354 | ], 355 | "thresholds": [], 356 | "timeFrom": null, 357 | "timeRegions": [], 358 | "timeShift": null, 359 | "title": "Process Open Files", 360 | "tooltip": { 361 | "shared": true, 362 | "sort": 0, 363 | "value_type": "individual" 364 | }, 365 | "type": "graph", 366 | "xaxis": { 367 | "buckets": null, 368 | "mode": "time", 369 | "name": null, 370 | "show": true, 371 | "values": [] 372 | }, 373 | "yaxes": [ 374 | { 375 | "format": "locale", 376 | "label": null, 377 | "logBase": 1, 378 | "max": null, 379 | "min": null, 380 | "show": true 381 | }, 382 | { 383 | "format": "short", 384 | "label": null, 385 | "logBase": 1, 386 | "max": null, 387 | "min": null, 388 | "show": true 389 | } 390 | ], 391 | "yaxis": { 392 | "align": false, 393 | "alignLevel": null 394 | } 395 | }, 396 | { 397 | "cacheTimeout": null, 398 | "colorBackground": false, 399 | "colorValue": true, 400 | "colors": [ 401 | "rgba(245, 54, 54, 0.9)", 402 | "#5195ce", 403 | "rgba(50, 172, 45, 0.97)" 404 | ], 405 | "datasource": "PROMETHEUS_DATASOURCE", 406 | "decimals": null, 407 | "editable": true, 408 | "error": false, 409 | "format": "dateTimeAsIso", 410 | "gauge": { 411 | "maxValue": 100, 412 | "minValue": 0, 413 | "show": false, 414 | "thresholdLabels": false, 415 | "thresholdMarkers": true 416 | }, 417 | "gridPos": { 418 | "h": 3, 419 | "w": 6, 420 | "x": 0, 421 | "y": 4 422 | }, 423 | "height": "", 424 | "id": 56, 425 | "interval": null, 426 | "links": [], 427 | "mappingType": 1, 428 | "mappingTypes": [ 429 | { 430 | "name": "value to text", 431 | "value": 1 432 | }, 433 | { 434 | "name": "range to text", 435 | "value": 2 436 | } 437 | ], 438 | "maxDataPoints": 100, 439 | "nullPointMode": "connected", 440 | "nullText": null, 441 | "postfix": "", 442 | "postfixFontSize": "50%", 443 | "prefix": "", 444 | "prefixFontSize": "70%", 445 | "rangeMaps": [ 446 | { 447 | "from": "null", 448 | "text": "N/A", 449 | "to": "null" 450 | } 451 | ], 452 | "sparkline": { 453 | "fillColor": "rgba(31, 118, 189, 0.18)", 454 | "full": false, 455 | "lineColor": "rgb(31, 120, 193)", 456 | "show": false 457 | }, 458 | "tableColumn": "", 459 | "targets": [ 460 | { 461 | "expr": "process_start_time_seconds{application=\"$application\", instance=\"$instance\"}*1000", 462 | "format": "time_series", 463 | "intervalFactor": 2, 464 | "legendFormat": "", 465 | "metric": "", 466 | "refId": "A", 467 | "step": 14400 468 | } 469 | ], 470 | "thresholds": "", 471 | "title": "Start time", 472 | "transparent": false, 473 | "type": "singlestat", 474 | "valueFontSize": "70%", 475 | "valueMaps": [ 476 | { 477 | "op": "=", 478 | "text": "N/A", 479 | "value": "null" 480 | } 481 | ], 482 | "valueName": "current" 483 | }, 484 | { 485 | "aliasColors": {}, 486 | "bars": false, 487 | "dashLength": 10, 488 | "dashes": false, 489 | "datasource": "PROMETHEUS_DATASOURCE", 490 | "fill": 1, 491 | "gridPos": { 492 | "h": 7, 493 | "w": 12, 494 | "x": 0, 495 | "y": 7 496 | }, 497 | "id": 95, 498 | "legend": { 499 | "alignAsTable": true, 500 | "avg": true, 501 | "current": true, 502 | "max": true, 503 | "min": true, 504 | "show": true, 505 | "total": false, 506 | "values": true 507 | }, 508 | "lines": true, 509 | "linewidth": 1, 510 | "links": [], 511 | "nullPointMode": "null", 512 | "percentage": false, 513 | "pointradius": 5, 514 | "points": false, 515 | "renderer": "flot", 516 | "seriesOverrides": [], 517 | "spaceLength": 10, 518 | "stack": false, 519 | "steppedLine": false, 520 | "targets": [ 521 | { 522 | "expr": "system_cpu_usage{instance=\"$instance\", application=\"$application\"}", 523 | "format": "time_series", 524 | "intervalFactor": 1, 525 | "legendFormat": "System CPU Usage", 526 | "refId": "A" 527 | }, 528 | { 529 | "expr": "process_cpu_usage{instance=\"$instance\", application=\"$application\"}", 530 | "format": "time_series", 531 | "intervalFactor": 1, 532 | "legendFormat": "Process CPU Usage", 533 | "refId": "B" 534 | } 535 | ], 536 | "thresholds": [], 537 | "timeFrom": null, 538 | "timeRegions": [], 539 | "timeShift": null, 540 | "title": "CPU Usage", 541 | "tooltip": { 542 | "shared": true, 543 | "sort": 0, 544 | "value_type": "individual" 545 | }, 546 | "type": "graph", 547 | "xaxis": { 548 | "buckets": null, 549 | "mode": "time", 550 | "name": null, 551 | "show": true, 552 | "values": [] 553 | }, 554 | "yaxes": [ 555 | { 556 | "format": "short", 557 | "label": null, 558 | "logBase": 1, 559 | "max": null, 560 | "min": null, 561 | "show": true 562 | }, 563 | { 564 | "format": "short", 565 | "label": null, 566 | "logBase": 1, 567 | "max": null, 568 | "min": null, 569 | "show": true 570 | } 571 | ], 572 | "yaxis": { 573 | "align": false, 574 | "alignLevel": null 575 | } 576 | }, 577 | { 578 | "aliasColors": {}, 579 | "bars": false, 580 | "dashLength": 10, 581 | "dashes": false, 582 | "datasource": "PROMETHEUS_DATASOURCE", 583 | "fill": 1, 584 | "gridPos": { 585 | "h": 7, 586 | "w": 12, 587 | "x": 12, 588 | "y": 7 589 | }, 590 | "id": 96, 591 | "legend": { 592 | "alignAsTable": true, 593 | "avg": true, 594 | "current": true, 595 | "max": true, 596 | "min": true, 597 | "show": true, 598 | "total": false, 599 | "values": true 600 | }, 601 | "lines": true, 602 | "linewidth": 1, 603 | "links": [], 604 | "nullPointMode": "null", 605 | "percentage": false, 606 | "pointradius": 5, 607 | "points": false, 608 | "renderer": "flot", 609 | "seriesOverrides": [], 610 | "spaceLength": 10, 611 | "stack": false, 612 | "steppedLine": false, 613 | "targets": [ 614 | { 615 | "expr": "system_load_average_1m{instance=\"$instance\", application=\"$application\"}", 616 | "format": "time_series", 617 | "intervalFactor": 1, 618 | "legendFormat": "Load Average [1m]", 619 | "refId": "A" 620 | }, 621 | { 622 | "expr": "system_cpu_count{instance=\"$instance\", application=\"$application\"}", 623 | "format": "time_series", 624 | "intervalFactor": 1, 625 | "legendFormat": "CPU Core Size", 626 | "refId": "B" 627 | } 628 | ], 629 | "thresholds": [], 630 | "timeFrom": null, 631 | "timeRegions": [], 632 | "timeShift": null, 633 | "title": "Load Average", 634 | "tooltip": { 635 | "shared": true, 636 | "sort": 0, 637 | "value_type": "individual" 638 | }, 639 | "type": "graph", 640 | "xaxis": { 641 | "buckets": null, 642 | "mode": "time", 643 | "name": null, 644 | "show": true, 645 | "values": [] 646 | }, 647 | "yaxes": [ 648 | { 649 | "format": "short", 650 | "label": null, 651 | "logBase": 1, 652 | "max": null, 653 | "min": null, 654 | "show": true 655 | }, 656 | { 657 | "format": "short", 658 | "label": null, 659 | "logBase": 1, 660 | "max": null, 661 | "min": null, 662 | "show": true 663 | } 664 | ], 665 | "yaxis": { 666 | "align": false, 667 | "alignLevel": null 668 | } 669 | }, 670 | { 671 | "collapsed": false, 672 | "gridPos": { 673 | "h": 1, 674 | "w": 24, 675 | "x": 0, 676 | "y": 14 677 | }, 678 | "id": 48, 679 | "panels": [], 680 | "title": "JVM Statistics - Memory", 681 | "type": "row" 682 | }, 683 | { 684 | "aliasColors": {}, 685 | "bars": false, 686 | "dashLength": 10, 687 | "dashes": false, 688 | "datasource": "PROMETHEUS_DATASOURCE", 689 | "fill": 1, 690 | "gridPos": { 691 | "h": 8, 692 | "w": 8, 693 | "x": 0, 694 | "y": 15 695 | }, 696 | "id": 85, 697 | "legend": { 698 | "alignAsTable": true, 699 | "avg": true, 700 | "current": true, 701 | "max": true, 702 | "min": true, 703 | "show": true, 704 | "total": false, 705 | "values": true 706 | }, 707 | "lines": true, 708 | "linewidth": 1, 709 | "links": [], 710 | "minSpan": null, 711 | "nullPointMode": "null", 712 | "percentage": false, 713 | "pointradius": 5, 714 | "points": false, 715 | "renderer": "flot", 716 | "repeat": "memory_pool_heap", 717 | "repeatDirection": "h", 718 | "seriesOverrides": [], 719 | "spaceLength": 10, 720 | "stack": false, 721 | "steppedLine": false, 722 | "targets": [ 723 | { 724 | "expr": "jvm_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}", 725 | "format": "time_series", 726 | "intervalFactor": 1, 727 | "legendFormat": "Used", 728 | "refId": "C" 729 | }, 730 | { 731 | "expr": "jvm_memory_committed_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}", 732 | "format": "time_series", 733 | "intervalFactor": 1, 734 | "legendFormat": "Commited", 735 | "refId": "A" 736 | }, 737 | { 738 | "expr": "jvm_memory_max_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}", 739 | "format": "time_series", 740 | "intervalFactor": 1, 741 | "legendFormat": "Max", 742 | "refId": "B" 743 | } 744 | ], 745 | "thresholds": [], 746 | "timeFrom": null, 747 | "timeRegions": [], 748 | "timeShift": null, 749 | "title": "$memory_pool_heap (heap)", 750 | "tooltip": { 751 | "shared": true, 752 | "sort": 0, 753 | "value_type": "individual" 754 | }, 755 | "type": "graph", 756 | "xaxis": { 757 | "buckets": null, 758 | "mode": "time", 759 | "name": null, 760 | "show": true, 761 | "values": [] 762 | }, 763 | "yaxes": [ 764 | { 765 | "format": "bytes", 766 | "label": null, 767 | "logBase": 1, 768 | "max": null, 769 | "min": null, 770 | "show": true 771 | }, 772 | { 773 | "format": "short", 774 | "label": null, 775 | "logBase": 1, 776 | "max": null, 777 | "min": null, 778 | "show": true 779 | } 780 | ], 781 | "yaxis": { 782 | "align": false, 783 | "alignLevel": null 784 | } 785 | }, 786 | { 787 | "aliasColors": {}, 788 | "bars": false, 789 | "dashLength": 10, 790 | "dashes": false, 791 | "datasource": "PROMETHEUS_DATASOURCE", 792 | "fill": 1, 793 | "gridPos": { 794 | "h": 8, 795 | "w": 8, 796 | "x": 8, 797 | "y": 15 798 | }, 799 | "id": 80, 800 | "legend": { 801 | "avg": false, 802 | "current": false, 803 | "max": false, 804 | "min": false, 805 | "show": true, 806 | "total": false, 807 | "values": false 808 | }, 809 | "lines": true, 810 | "linewidth": 1, 811 | "links": [], 812 | "nullPointMode": "null", 813 | "percentage": false, 814 | "pointradius": 5, 815 | "points": false, 816 | "renderer": "flot", 817 | "seriesOverrides": [], 818 | "spaceLength": 10, 819 | "stack": false, 820 | "steppedLine": false, 821 | "targets": [ 822 | { 823 | "expr": "irate(jvm_classes_unloaded_classes_total{instance=\"$instance\", application=\"$application\"}[5m])", 824 | "format": "time_series", 825 | "intervalFactor": 1, 826 | "legendFormat": "Classes Unloaded", 827 | "refId": "A" 828 | } 829 | ], 830 | "thresholds": [], 831 | "timeFrom": null, 832 | "timeRegions": [], 833 | "timeShift": null, 834 | "title": "Classes Unloaded", 835 | "tooltip": { 836 | "shared": true, 837 | "sort": 0, 838 | "value_type": "individual" 839 | }, 840 | "type": "graph", 841 | "xaxis": { 842 | "buckets": null, 843 | "mode": "time", 844 | "name": null, 845 | "show": true, 846 | "values": [] 847 | }, 848 | "yaxes": [ 849 | { 850 | "format": "short", 851 | "label": null, 852 | "logBase": 1, 853 | "max": null, 854 | "min": null, 855 | "show": true 856 | }, 857 | { 858 | "format": "short", 859 | "label": null, 860 | "logBase": 1, 861 | "max": null, 862 | "min": null, 863 | "show": true 864 | } 865 | ], 866 | "yaxis": { 867 | "align": false, 868 | "alignLevel": null 869 | } 870 | }, 871 | { 872 | "aliasColors": {}, 873 | "bars": false, 874 | "dashLength": 10, 875 | "dashes": false, 876 | "datasource": "PROMETHEUS_DATASOURCE", 877 | "fill": 1, 878 | "gridPos": { 879 | "h": 8, 880 | "w": 8, 881 | "x": 0, 882 | "y": 23 883 | }, 884 | "id": 88, 885 | "legend": { 886 | "alignAsTable": true, 887 | "avg": true, 888 | "current": true, 889 | "max": true, 890 | "min": true, 891 | "show": true, 892 | "total": false, 893 | "values": true 894 | }, 895 | "lines": true, 896 | "linewidth": 1, 897 | "links": [], 898 | "minSpan": null, 899 | "nullPointMode": "null", 900 | "percentage": false, 901 | "pointradius": 5, 902 | "points": false, 903 | "renderer": "flot", 904 | "repeat": "memory_pool_nonheap", 905 | "repeatDirection": "h", 906 | "seriesOverrides": [], 907 | "spaceLength": 10, 908 | "stack": false, 909 | "steppedLine": false, 910 | "targets": [ 911 | { 912 | "expr": "jvm_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}", 913 | "format": "time_series", 914 | "intervalFactor": 1, 915 | "legendFormat": "Used", 916 | "refId": "C" 917 | }, 918 | { 919 | "expr": "jvm_memory_committed_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}", 920 | "format": "time_series", 921 | "intervalFactor": 1, 922 | "legendFormat": "Commited", 923 | "refId": "A" 924 | }, 925 | { 926 | "expr": "jvm_memory_max_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}", 927 | "format": "time_series", 928 | "intervalFactor": 1, 929 | "legendFormat": "Max", 930 | "refId": "B" 931 | } 932 | ], 933 | "thresholds": [], 934 | "timeFrom": null, 935 | "timeRegions": [], 936 | "timeShift": null, 937 | "title": "$memory_pool_nonheap (non-heap)", 938 | "tooltip": { 939 | "shared": true, 940 | "sort": 0, 941 | "value_type": "individual" 942 | }, 943 | "type": "graph", 944 | "xaxis": { 945 | "buckets": null, 946 | "mode": "time", 947 | "name": null, 948 | "show": true, 949 | "values": [] 950 | }, 951 | "yaxes": [ 952 | { 953 | "format": "bytes", 954 | "label": null, 955 | "logBase": 1, 956 | "max": null, 957 | "min": null, 958 | "show": true 959 | }, 960 | { 961 | "format": "short", 962 | "label": null, 963 | "logBase": 1, 964 | "max": null, 965 | "min": null, 966 | "show": true 967 | } 968 | ], 969 | "yaxis": { 970 | "align": false, 971 | "alignLevel": null 972 | } 973 | }, 974 | { 975 | "aliasColors": {}, 976 | "bars": false, 977 | "dashLength": 10, 978 | "dashes": false, 979 | "datasource": "PROMETHEUS_DATASOURCE", 980 | "fill": 1, 981 | "gridPos": { 982 | "h": 7, 983 | "w": 12, 984 | "x": 12, 985 | "y": 23 986 | }, 987 | "id": 83, 988 | "legend": { 989 | "avg": false, 990 | "current": false, 991 | "max": false, 992 | "min": false, 993 | "show": true, 994 | "total": false, 995 | "values": false 996 | }, 997 | "lines": true, 998 | "linewidth": 1, 999 | "links": [], 1000 | "nullPointMode": "null", 1001 | "percentage": false, 1002 | "pointradius": 5, 1003 | "points": false, 1004 | "renderer": "flot", 1005 | "seriesOverrides": [], 1006 | "spaceLength": 10, 1007 | "stack": false, 1008 | "steppedLine": false, 1009 | "targets": [ 1010 | { 1011 | "expr": "jvm_buffer_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"mapped\"}", 1012 | "format": "time_series", 1013 | "intervalFactor": 1, 1014 | "legendFormat": "Used Bytes", 1015 | "refId": "A" 1016 | }, 1017 | { 1018 | "expr": "jvm_buffer_total_capacity_bytes{instance=\"$instance\", application=\"$application\", id=\"mapped\"}", 1019 | "format": "time_series", 1020 | "intervalFactor": 1, 1021 | "legendFormat": "Capacity Bytes", 1022 | "refId": "B" 1023 | } 1024 | ], 1025 | "thresholds": [], 1026 | "timeFrom": null, 1027 | "timeRegions": [], 1028 | "timeShift": null, 1029 | "title": "Mapped Buffers", 1030 | "tooltip": { 1031 | "shared": true, 1032 | "sort": 0, 1033 | "value_type": "individual" 1034 | }, 1035 | "type": "graph", 1036 | "xaxis": { 1037 | "buckets": null, 1038 | "mode": "time", 1039 | "name": null, 1040 | "show": true, 1041 | "values": [] 1042 | }, 1043 | "yaxes": [ 1044 | { 1045 | "format": "short", 1046 | "label": null, 1047 | "logBase": 1, 1048 | "max": null, 1049 | "min": null, 1050 | "show": true 1051 | }, 1052 | { 1053 | "format": "short", 1054 | "label": null, 1055 | "logBase": 1, 1056 | "max": null, 1057 | "min": null, 1058 | "show": true 1059 | } 1060 | ], 1061 | "yaxis": { 1062 | "align": false, 1063 | "alignLevel": null 1064 | } 1065 | }, 1066 | { 1067 | "aliasColors": {}, 1068 | "bars": false, 1069 | "dashLength": 10, 1070 | "dashes": false, 1071 | "datasource": "PROMETHEUS_DATASOURCE", 1072 | "fill": 1, 1073 | "gridPos": { 1074 | "h": 8, 1075 | "w": 12, 1076 | "x": 12, 1077 | "y": 30 1078 | }, 1079 | "id": 78, 1080 | "legend": { 1081 | "avg": false, 1082 | "current": false, 1083 | "max": false, 1084 | "min": false, 1085 | "show": true, 1086 | "total": false, 1087 | "values": false 1088 | }, 1089 | "lines": true, 1090 | "linewidth": 1, 1091 | "links": [], 1092 | "nullPointMode": "null", 1093 | "percentage": false, 1094 | "pointradius": 5, 1095 | "points": false, 1096 | "renderer": "flot", 1097 | "seriesOverrides": [], 1098 | "spaceLength": 10, 1099 | "stack": false, 1100 | "steppedLine": false, 1101 | "targets": [ 1102 | { 1103 | "expr": "irate(jvm_gc_memory_allocated_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])", 1104 | "format": "time_series", 1105 | "intervalFactor": 1, 1106 | "legendFormat": "allocated", 1107 | "refId": "A" 1108 | }, 1109 | { 1110 | "expr": "irate(jvm_gc_memory_promoted_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])", 1111 | "format": "time_series", 1112 | "intervalFactor": 1, 1113 | "legendFormat": "promoted", 1114 | "refId": "B" 1115 | } 1116 | ], 1117 | "thresholds": [], 1118 | "timeFrom": null, 1119 | "timeRegions": [], 1120 | "timeShift": null, 1121 | "title": "Memory Allocate/Promote", 1122 | "tooltip": { 1123 | "shared": true, 1124 | "sort": 0, 1125 | "value_type": "individual" 1126 | }, 1127 | "type": "graph", 1128 | "xaxis": { 1129 | "buckets": null, 1130 | "mode": "time", 1131 | "name": null, 1132 | "show": true, 1133 | "values": [] 1134 | }, 1135 | "yaxes": [ 1136 | { 1137 | "format": "bytes", 1138 | "label": null, 1139 | "logBase": 1, 1140 | "max": null, 1141 | "min": null, 1142 | "show": true 1143 | }, 1144 | { 1145 | "format": "short", 1146 | "label": null, 1147 | "logBase": 1, 1148 | "max": null, 1149 | "min": null, 1150 | "show": true 1151 | } 1152 | ], 1153 | "yaxis": { 1154 | "align": false, 1155 | "alignLevel": null 1156 | } 1157 | }, 1158 | { 1159 | "aliasColors": {}, 1160 | "bars": false, 1161 | "dashLength": 10, 1162 | "dashes": false, 1163 | "datasource": "PROMETHEUS_DATASOURCE", 1164 | "decimals": 0, 1165 | "fill": 1, 1166 | "gridPos": { 1167 | "h": 8, 1168 | "w": 12, 1169 | "x": 0, 1170 | "y": 31 1171 | }, 1172 | "id": 50, 1173 | "legend": { 1174 | "alignAsTable": true, 1175 | "avg": true, 1176 | "current": true, 1177 | "max": true, 1178 | "min": true, 1179 | "show": true, 1180 | "total": false, 1181 | "values": true 1182 | }, 1183 | "lines": true, 1184 | "linewidth": 1, 1185 | "links": [], 1186 | "nullPointMode": "null", 1187 | "percentage": false, 1188 | "pointradius": 5, 1189 | "points": false, 1190 | "renderer": "flot", 1191 | "seriesOverrides": [], 1192 | "spaceLength": 10, 1193 | "stack": false, 1194 | "steppedLine": false, 1195 | "targets": [ 1196 | { 1197 | "expr": "jvm_classes_loaded_classes{instance=\"$instance\", application=\"$application\"}", 1198 | "format": "time_series", 1199 | "intervalFactor": 1, 1200 | "legendFormat": "Classes Loaded", 1201 | "refId": "A" 1202 | } 1203 | ], 1204 | "thresholds": [], 1205 | "timeFrom": null, 1206 | "timeRegions": [], 1207 | "timeShift": null, 1208 | "title": "Classes Loaded", 1209 | "tooltip": { 1210 | "shared": true, 1211 | "sort": 0, 1212 | "value_type": "individual" 1213 | }, 1214 | "type": "graph", 1215 | "xaxis": { 1216 | "buckets": null, 1217 | "mode": "time", 1218 | "name": null, 1219 | "show": true, 1220 | "values": [] 1221 | }, 1222 | "yaxes": [ 1223 | { 1224 | "decimals": 0, 1225 | "format": "locale", 1226 | "label": "", 1227 | "logBase": 1, 1228 | "max": null, 1229 | "min": null, 1230 | "show": true 1231 | }, 1232 | { 1233 | "format": "short", 1234 | "label": null, 1235 | "logBase": 1, 1236 | "max": null, 1237 | "min": null, 1238 | "show": true 1239 | } 1240 | ], 1241 | "yaxis": { 1242 | "align": false, 1243 | "alignLevel": null 1244 | } 1245 | }, 1246 | { 1247 | "aliasColors": {}, 1248 | "bars": false, 1249 | "dashLength": 10, 1250 | "dashes": false, 1251 | "datasource": "PROMETHEUS_DATASOURCE", 1252 | "fill": 1, 1253 | "gridPos": { 1254 | "h": 7, 1255 | "w": 12, 1256 | "x": 0, 1257 | "y": 39 1258 | }, 1259 | "id": 82, 1260 | "legend": { 1261 | "avg": false, 1262 | "current": false, 1263 | "max": false, 1264 | "min": false, 1265 | "show": true, 1266 | "total": false, 1267 | "values": false 1268 | }, 1269 | "lines": true, 1270 | "linewidth": 1, 1271 | "links": [], 1272 | "nullPointMode": "null", 1273 | "percentage": false, 1274 | "pointradius": 5, 1275 | "points": false, 1276 | "renderer": "flot", 1277 | "seriesOverrides": [], 1278 | "spaceLength": 10, 1279 | "stack": false, 1280 | "steppedLine": false, 1281 | "targets": [ 1282 | { 1283 | "expr": "jvm_buffer_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"direct\"}", 1284 | "format": "time_series", 1285 | "intervalFactor": 1, 1286 | "legendFormat": "Used Bytes", 1287 | "refId": "A" 1288 | }, 1289 | { 1290 | "expr": "jvm_buffer_total_capacity_bytes{instance=\"$instance\", application=\"$application\", id=\"direct\"}", 1291 | "format": "time_series", 1292 | "intervalFactor": 1, 1293 | "legendFormat": "Capacity Bytes", 1294 | "refId": "B" 1295 | } 1296 | ], 1297 | "thresholds": [], 1298 | "timeFrom": null, 1299 | "timeRegions": [], 1300 | "timeShift": null, 1301 | "title": "Direct Buffers", 1302 | "tooltip": { 1303 | "shared": true, 1304 | "sort": 0, 1305 | "value_type": "individual" 1306 | }, 1307 | "type": "graph", 1308 | "xaxis": { 1309 | "buckets": null, 1310 | "mode": "time", 1311 | "name": null, 1312 | "show": true, 1313 | "values": [] 1314 | }, 1315 | "yaxes": [ 1316 | { 1317 | "format": "short", 1318 | "label": null, 1319 | "logBase": 1, 1320 | "max": null, 1321 | "min": null, 1322 | "show": true 1323 | }, 1324 | { 1325 | "format": "short", 1326 | "label": null, 1327 | "logBase": 1, 1328 | "max": null, 1329 | "min": null, 1330 | "show": true 1331 | } 1332 | ], 1333 | "yaxis": { 1334 | "align": false, 1335 | "alignLevel": null 1336 | } 1337 | }, 1338 | { 1339 | "aliasColors": {}, 1340 | "bars": false, 1341 | "dashLength": 10, 1342 | "dashes": false, 1343 | "datasource": "PROMETHEUS_DATASOURCE", 1344 | "fill": 1, 1345 | "gridPos": { 1346 | "h": 8, 1347 | "w": 12, 1348 | "x": 0, 1349 | "y": 46 1350 | }, 1351 | "id": 68, 1352 | "legend": { 1353 | "alignAsTable": true, 1354 | "avg": true, 1355 | "current": true, 1356 | "max": true, 1357 | "min": true, 1358 | "show": true, 1359 | "total": false, 1360 | "values": true 1361 | }, 1362 | "lines": true, 1363 | "linewidth": 1, 1364 | "links": [], 1365 | "nullPointMode": "null", 1366 | "percentage": false, 1367 | "pointradius": 5, 1368 | "points": false, 1369 | "renderer": "flot", 1370 | "seriesOverrides": [], 1371 | "spaceLength": 10, 1372 | "stack": false, 1373 | "steppedLine": false, 1374 | "targets": [ 1375 | { 1376 | "expr": "jvm_threads_daemon_threads{instance=\"$instance\", application=\"$application\"}", 1377 | "format": "time_series", 1378 | "intervalFactor": 1, 1379 | "legendFormat": "Daemon", 1380 | "refId": "A" 1381 | }, 1382 | { 1383 | "expr": "jvm_threads_live_threads{instance=\"$instance\", application=\"$application\"}", 1384 | "format": "time_series", 1385 | "intervalFactor": 1, 1386 | "legendFormat": "Live", 1387 | "refId": "B" 1388 | }, 1389 | { 1390 | "expr": "jvm_threads_peak_threads{instance=\"$instance\", application=\"$application\"}", 1391 | "format": "time_series", 1392 | "intervalFactor": 1, 1393 | "legendFormat": "Peak", 1394 | "refId": "C" 1395 | } 1396 | ], 1397 | "thresholds": [], 1398 | "timeFrom": null, 1399 | "timeRegions": [], 1400 | "timeShift": null, 1401 | "title": "Threads", 1402 | "tooltip": { 1403 | "shared": true, 1404 | "sort": 0, 1405 | "value_type": "individual" 1406 | }, 1407 | "type": "graph", 1408 | "xaxis": { 1409 | "buckets": null, 1410 | "mode": "time", 1411 | "name": null, 1412 | "show": true, 1413 | "values": [] 1414 | }, 1415 | "yaxes": [ 1416 | { 1417 | "format": "short", 1418 | "label": null, 1419 | "logBase": 1, 1420 | "max": null, 1421 | "min": null, 1422 | "show": true 1423 | }, 1424 | { 1425 | "format": "short", 1426 | "label": null, 1427 | "logBase": 1, 1428 | "max": null, 1429 | "min": null, 1430 | "show": true 1431 | } 1432 | ], 1433 | "yaxis": { 1434 | "align": false, 1435 | "alignLevel": null 1436 | } 1437 | }, 1438 | { 1439 | "collapsed": false, 1440 | "gridPos": { 1441 | "h": 1, 1442 | "w": 24, 1443 | "x": 0, 1444 | "y": 54 1445 | }, 1446 | "id": 72, 1447 | "panels": [], 1448 | "title": "JVM Statistics - GC", 1449 | "type": "row" 1450 | }, 1451 | { 1452 | "aliasColors": {}, 1453 | "bars": false, 1454 | "dashLength": 10, 1455 | "dashes": false, 1456 | "datasource": "PROMETHEUS_DATASOURCE", 1457 | "fill": 1, 1458 | "gridPos": { 1459 | "h": 10, 1460 | "w": 12, 1461 | "x": 0, 1462 | "y": 55 1463 | }, 1464 | "id": 74, 1465 | "legend": { 1466 | "alignAsTable": true, 1467 | "avg": true, 1468 | "current": false, 1469 | "hideEmpty": true, 1470 | "hideZero": true, 1471 | "max": true, 1472 | "min": true, 1473 | "show": true, 1474 | "total": true, 1475 | "values": true 1476 | }, 1477 | "lines": true, 1478 | "linewidth": 1, 1479 | "links": [], 1480 | "nullPointMode": "null", 1481 | "percentage": false, 1482 | "pointradius": 5, 1483 | "points": false, 1484 | "renderer": "flot", 1485 | "seriesOverrides": [], 1486 | "spaceLength": 10, 1487 | "stack": false, 1488 | "steppedLine": false, 1489 | "targets": [ 1490 | { 1491 | "expr": "irate(jvm_gc_pause_seconds_count{instance=\"$instance\", application=\"$application\"}[5m])", 1492 | "format": "time_series", 1493 | "intervalFactor": 1, 1494 | "legendFormat": "{{action}} [{{cause}}]", 1495 | "refId": "A" 1496 | } 1497 | ], 1498 | "thresholds": [], 1499 | "timeFrom": null, 1500 | "timeRegions": [], 1501 | "timeShift": null, 1502 | "title": "GC Count", 1503 | "tooltip": { 1504 | "shared": true, 1505 | "sort": 0, 1506 | "value_type": "individual" 1507 | }, 1508 | "type": "graph", 1509 | "xaxis": { 1510 | "buckets": null, 1511 | "mode": "time", 1512 | "name": null, 1513 | "show": true, 1514 | "values": [] 1515 | }, 1516 | "yaxes": [ 1517 | { 1518 | "format": "locale", 1519 | "label": null, 1520 | "logBase": 1, 1521 | "max": null, 1522 | "min": null, 1523 | "show": true 1524 | }, 1525 | { 1526 | "format": "short", 1527 | "label": null, 1528 | "logBase": 1, 1529 | "max": null, 1530 | "min": null, 1531 | "show": true 1532 | } 1533 | ], 1534 | "yaxis": { 1535 | "align": false, 1536 | "alignLevel": null 1537 | } 1538 | }, 1539 | { 1540 | "aliasColors": {}, 1541 | "bars": false, 1542 | "dashLength": 10, 1543 | "dashes": false, 1544 | "datasource": "PROMETHEUS_DATASOURCE", 1545 | "fill": 1, 1546 | "gridPos": { 1547 | "h": 10, 1548 | "w": 12, 1549 | "x": 12, 1550 | "y": 55 1551 | }, 1552 | "id": 76, 1553 | "legend": { 1554 | "alignAsTable": true, 1555 | "avg": true, 1556 | "current": false, 1557 | "hideEmpty": true, 1558 | "hideZero": true, 1559 | "max": true, 1560 | "min": true, 1561 | "show": true, 1562 | "total": true, 1563 | "values": true 1564 | }, 1565 | "lines": true, 1566 | "linewidth": 1, 1567 | "links": [], 1568 | "nullPointMode": "null", 1569 | "percentage": false, 1570 | "pointradius": 5, 1571 | "points": false, 1572 | "renderer": "flot", 1573 | "seriesOverrides": [], 1574 | "spaceLength": 10, 1575 | "stack": false, 1576 | "steppedLine": false, 1577 | "targets": [ 1578 | { 1579 | "expr": "irate(jvm_gc_pause_seconds_sum{instance=\"$instance\", application=\"$application\"}[5m])", 1580 | "format": "time_series", 1581 | "intervalFactor": 1, 1582 | "legendFormat": "{{action}} [{{cause}}]", 1583 | "refId": "A" 1584 | } 1585 | ], 1586 | "thresholds": [], 1587 | "timeFrom": null, 1588 | "timeRegions": [], 1589 | "timeShift": null, 1590 | "title": "GC Stop the World Duration", 1591 | "tooltip": { 1592 | "shared": true, 1593 | "sort": 0, 1594 | "value_type": "individual" 1595 | }, 1596 | "type": "graph", 1597 | "xaxis": { 1598 | "buckets": null, 1599 | "mode": "time", 1600 | "name": null, 1601 | "show": true, 1602 | "values": [] 1603 | }, 1604 | "yaxes": [ 1605 | { 1606 | "format": "s", 1607 | "label": null, 1608 | "logBase": 1, 1609 | "max": null, 1610 | "min": null, 1611 | "show": true 1612 | }, 1613 | { 1614 | "format": "short", 1615 | "label": null, 1616 | "logBase": 1, 1617 | "max": null, 1618 | "min": null, 1619 | "show": true 1620 | } 1621 | ], 1622 | "yaxis": { 1623 | "align": false, 1624 | "alignLevel": null 1625 | } 1626 | }, 1627 | { 1628 | "collapsed": false, 1629 | "gridPos": { 1630 | "h": 1, 1631 | "w": 24, 1632 | "x": 0, 1633 | "y": 65 1634 | }, 1635 | "id": 34, 1636 | "panels": [], 1637 | "title": "HikariCP Statistics", 1638 | "type": "row" 1639 | }, 1640 | { 1641 | "cacheTimeout": null, 1642 | "colorBackground": false, 1643 | "colorValue": false, 1644 | "colors": [ 1645 | "#299c46", 1646 | "rgba(237, 129, 40, 0.89)", 1647 | "#d44a3a" 1648 | ], 1649 | "datasource": "PROMETHEUS_DATASOURCE", 1650 | "format": "none", 1651 | "gauge": { 1652 | "maxValue": 100, 1653 | "minValue": 0, 1654 | "show": false, 1655 | "thresholdLabels": false, 1656 | "thresholdMarkers": true 1657 | }, 1658 | "gridPos": { 1659 | "h": 4, 1660 | "w": 4, 1661 | "x": 0, 1662 | "y": 66 1663 | }, 1664 | "id": 44, 1665 | "interval": null, 1666 | "links": [], 1667 | "mappingType": 1, 1668 | "mappingTypes": [ 1669 | { 1670 | "name": "value to text", 1671 | "value": 1 1672 | }, 1673 | { 1674 | "name": "range to text", 1675 | "value": 2 1676 | } 1677 | ], 1678 | "maxDataPoints": 100, 1679 | "nullPointMode": "connected", 1680 | "nullText": null, 1681 | "postfix": "", 1682 | "postfixFontSize": "50%", 1683 | "prefix": "", 1684 | "prefixFontSize": "50%", 1685 | "rangeMaps": [ 1686 | { 1687 | "from": "null", 1688 | "text": "N/A", 1689 | "to": "null" 1690 | } 1691 | ], 1692 | "sparkline": { 1693 | "fillColor": "rgba(31, 118, 189, 0.18)", 1694 | "full": false, 1695 | "lineColor": "rgb(31, 120, 193)", 1696 | "show": false 1697 | }, 1698 | "tableColumn": "", 1699 | "targets": [ 1700 | { 1701 | "expr": "hikaricp_connections{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1702 | "format": "time_series", 1703 | "intervalFactor": 1, 1704 | "legendFormat": "", 1705 | "refId": "A" 1706 | } 1707 | ], 1708 | "thresholds": "", 1709 | "title": "Connections Size", 1710 | "type": "singlestat", 1711 | "valueFontSize": "80%", 1712 | "valueMaps": [ 1713 | { 1714 | "op": "=", 1715 | "text": "N/A", 1716 | "value": "null" 1717 | } 1718 | ], 1719 | "valueName": "current" 1720 | }, 1721 | { 1722 | "aliasColors": {}, 1723 | "bars": false, 1724 | "dashLength": 10, 1725 | "dashes": false, 1726 | "datasource": "PROMETHEUS_DATASOURCE", 1727 | "fill": 1, 1728 | "gridPos": { 1729 | "h": 8, 1730 | "w": 20, 1731 | "x": 4, 1732 | "y": 66 1733 | }, 1734 | "id": 36, 1735 | "legend": { 1736 | "alignAsTable": true, 1737 | "avg": true, 1738 | "current": true, 1739 | "hideEmpty": true, 1740 | "hideZero": false, 1741 | "max": true, 1742 | "min": true, 1743 | "show": true, 1744 | "total": false, 1745 | "values": true 1746 | }, 1747 | "lines": true, 1748 | "linewidth": 1, 1749 | "links": [], 1750 | "nullPointMode": "null", 1751 | "percentage": false, 1752 | "pointradius": 5, 1753 | "points": false, 1754 | "renderer": "flot", 1755 | "seriesOverrides": [], 1756 | "spaceLength": 10, 1757 | "stack": true, 1758 | "steppedLine": false, 1759 | "targets": [ 1760 | { 1761 | "expr": "hikaricp_connections_active{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1762 | "format": "time_series", 1763 | "intervalFactor": 1, 1764 | "legendFormat": "Active", 1765 | "refId": "B" 1766 | }, 1767 | { 1768 | "expr": "hikaricp_connections_idle{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1769 | "format": "time_series", 1770 | "intervalFactor": 1, 1771 | "legendFormat": "Idle", 1772 | "refId": "A" 1773 | }, 1774 | { 1775 | "expr": "hikaricp_connections_pending{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1776 | "format": "time_series", 1777 | "intervalFactor": 1, 1778 | "legendFormat": "Pending", 1779 | "refId": "C" 1780 | } 1781 | ], 1782 | "thresholds": [], 1783 | "timeFrom": null, 1784 | "timeRegions": [], 1785 | "timeShift": null, 1786 | "title": "Connections", 1787 | "tooltip": { 1788 | "shared": true, 1789 | "sort": 0, 1790 | "value_type": "individual" 1791 | }, 1792 | "type": "graph", 1793 | "xaxis": { 1794 | "buckets": null, 1795 | "mode": "time", 1796 | "name": null, 1797 | "show": true, 1798 | "values": [] 1799 | }, 1800 | "yaxes": [ 1801 | { 1802 | "format": "short", 1803 | "label": null, 1804 | "logBase": 1, 1805 | "max": null, 1806 | "min": null, 1807 | "show": true 1808 | }, 1809 | { 1810 | "format": "short", 1811 | "label": null, 1812 | "logBase": 1, 1813 | "max": null, 1814 | "min": null, 1815 | "show": true 1816 | } 1817 | ], 1818 | "yaxis": { 1819 | "align": false, 1820 | "alignLevel": null 1821 | } 1822 | }, 1823 | { 1824 | "cacheTimeout": null, 1825 | "colorBackground": false, 1826 | "colorValue": false, 1827 | "colors": [ 1828 | "#299c46", 1829 | "rgba(237, 129, 40, 0.89)", 1830 | "#d44a3a" 1831 | ], 1832 | "datasource": "PROMETHEUS_DATASOURCE", 1833 | "format": "none", 1834 | "gauge": { 1835 | "maxValue": 100, 1836 | "minValue": 0, 1837 | "show": false, 1838 | "thresholdLabels": false, 1839 | "thresholdMarkers": true 1840 | }, 1841 | "gridPos": { 1842 | "h": 4, 1843 | "w": 4, 1844 | "x": 0, 1845 | "y": 70 1846 | }, 1847 | "id": 46, 1848 | "interval": null, 1849 | "links": [], 1850 | "mappingType": 1, 1851 | "mappingTypes": [ 1852 | { 1853 | "name": "value to text", 1854 | "value": 1 1855 | }, 1856 | { 1857 | "name": "range to text", 1858 | "value": 2 1859 | } 1860 | ], 1861 | "maxDataPoints": 100, 1862 | "nullPointMode": "connected", 1863 | "nullText": null, 1864 | "postfix": "", 1865 | "postfixFontSize": "50%", 1866 | "prefix": "", 1867 | "prefixFontSize": "50%", 1868 | "rangeMaps": [ 1869 | { 1870 | "from": "null", 1871 | "text": "N/A", 1872 | "to": "null" 1873 | } 1874 | ], 1875 | "sparkline": { 1876 | "fillColor": "rgba(31, 118, 189, 0.18)", 1877 | "full": false, 1878 | "lineColor": "rgb(31, 120, 193)", 1879 | "show": false 1880 | }, 1881 | "tableColumn": "", 1882 | "targets": [ 1883 | { 1884 | "expr": "hikaricp_connections_timeout_total{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1885 | "format": "time_series", 1886 | "intervalFactor": 1, 1887 | "legendFormat": "", 1888 | "refId": "A" 1889 | } 1890 | ], 1891 | "thresholds": "", 1892 | "title": "Connection Timeout Count", 1893 | "type": "singlestat", 1894 | "valueFontSize": "80%", 1895 | "valueMaps": [ 1896 | { 1897 | "op": "=", 1898 | "text": "N/A", 1899 | "value": "null" 1900 | } 1901 | ], 1902 | "valueName": "current" 1903 | }, 1904 | { 1905 | "aliasColors": {}, 1906 | "bars": false, 1907 | "dashLength": 10, 1908 | "dashes": false, 1909 | "datasource": "PROMETHEUS_DATASOURCE", 1910 | "fill": 1, 1911 | "gridPos": { 1912 | "h": 6, 1913 | "w": 8, 1914 | "x": 0, 1915 | "y": 74 1916 | }, 1917 | "id": 38, 1918 | "legend": { 1919 | "avg": false, 1920 | "current": false, 1921 | "max": false, 1922 | "min": false, 1923 | "show": true, 1924 | "total": false, 1925 | "values": false 1926 | }, 1927 | "lines": true, 1928 | "linewidth": 1, 1929 | "links": [], 1930 | "nullPointMode": "null", 1931 | "percentage": false, 1932 | "pointradius": 5, 1933 | "points": false, 1934 | "renderer": "flot", 1935 | "seriesOverrides": [], 1936 | "spaceLength": 10, 1937 | "stack": false, 1938 | "steppedLine": false, 1939 | "targets": [ 1940 | { 1941 | "expr": "hikaricp_connections_creation_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_creation_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 1942 | "format": "time_series", 1943 | "intervalFactor": 1, 1944 | "legendFormat": "Creation Time", 1945 | "refId": "A" 1946 | } 1947 | ], 1948 | "thresholds": [], 1949 | "timeFrom": null, 1950 | "timeRegions": [], 1951 | "timeShift": null, 1952 | "title": "Connection Creation Time", 1953 | "tooltip": { 1954 | "shared": true, 1955 | "sort": 0, 1956 | "value_type": "individual" 1957 | }, 1958 | "type": "graph", 1959 | "xaxis": { 1960 | "buckets": null, 1961 | "mode": "time", 1962 | "name": null, 1963 | "show": true, 1964 | "values": [] 1965 | }, 1966 | "yaxes": [ 1967 | { 1968 | "format": "s", 1969 | "label": null, 1970 | "logBase": 1, 1971 | "max": null, 1972 | "min": null, 1973 | "show": true 1974 | }, 1975 | { 1976 | "format": "short", 1977 | "label": null, 1978 | "logBase": 1, 1979 | "max": null, 1980 | "min": null, 1981 | "show": true 1982 | } 1983 | ], 1984 | "yaxis": { 1985 | "align": false, 1986 | "alignLevel": null 1987 | } 1988 | }, 1989 | { 1990 | "aliasColors": {}, 1991 | "bars": false, 1992 | "dashLength": 10, 1993 | "dashes": false, 1994 | "datasource": "PROMETHEUS_DATASOURCE", 1995 | "fill": 1, 1996 | "gridPos": { 1997 | "h": 6, 1998 | "w": 8, 1999 | "x": 8, 2000 | "y": 74 2001 | }, 2002 | "id": 42, 2003 | "legend": { 2004 | "avg": false, 2005 | "current": false, 2006 | "max": false, 2007 | "min": false, 2008 | "show": true, 2009 | "total": false, 2010 | "values": false 2011 | }, 2012 | "lines": true, 2013 | "linewidth": 1, 2014 | "links": [], 2015 | "nullPointMode": "null", 2016 | "percentage": false, 2017 | "pointradius": 5, 2018 | "points": false, 2019 | "renderer": "flot", 2020 | "seriesOverrides": [], 2021 | "spaceLength": 10, 2022 | "stack": false, 2023 | "steppedLine": false, 2024 | "targets": [ 2025 | { 2026 | "expr": "hikaricp_connections_usage_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_usage_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 2027 | "format": "time_series", 2028 | "intervalFactor": 1, 2029 | "legendFormat": "Usage Time", 2030 | "refId": "A" 2031 | } 2032 | ], 2033 | "thresholds": [], 2034 | "timeFrom": null, 2035 | "timeRegions": [], 2036 | "timeShift": null, 2037 | "title": "Connection Usage Time", 2038 | "tooltip": { 2039 | "shared": true, 2040 | "sort": 0, 2041 | "value_type": "individual" 2042 | }, 2043 | "type": "graph", 2044 | "xaxis": { 2045 | "buckets": null, 2046 | "mode": "time", 2047 | "name": null, 2048 | "show": true, 2049 | "values": [] 2050 | }, 2051 | "yaxes": [ 2052 | { 2053 | "format": "s", 2054 | "label": null, 2055 | "logBase": 1, 2056 | "max": null, 2057 | "min": null, 2058 | "show": true 2059 | }, 2060 | { 2061 | "format": "short", 2062 | "label": null, 2063 | "logBase": 1, 2064 | "max": null, 2065 | "min": null, 2066 | "show": true 2067 | } 2068 | ], 2069 | "yaxis": { 2070 | "align": false, 2071 | "alignLevel": null 2072 | } 2073 | }, 2074 | { 2075 | "aliasColors": {}, 2076 | "bars": false, 2077 | "dashLength": 10, 2078 | "dashes": false, 2079 | "datasource": "PROMETHEUS_DATASOURCE", 2080 | "fill": 1, 2081 | "gridPos": { 2082 | "h": 6, 2083 | "w": 8, 2084 | "x": 16, 2085 | "y": 74 2086 | }, 2087 | "id": 40, 2088 | "legend": { 2089 | "avg": false, 2090 | "current": false, 2091 | "max": false, 2092 | "min": false, 2093 | "show": true, 2094 | "total": false, 2095 | "values": false 2096 | }, 2097 | "lines": true, 2098 | "linewidth": 1, 2099 | "links": [], 2100 | "nullPointMode": "null", 2101 | "percentage": false, 2102 | "pointradius": 5, 2103 | "points": false, 2104 | "renderer": "flot", 2105 | "seriesOverrides": [], 2106 | "spaceLength": 10, 2107 | "stack": false, 2108 | "steppedLine": false, 2109 | "targets": [ 2110 | { 2111 | "expr": "hikaricp_connections_acquire_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_acquire_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}", 2112 | "format": "time_series", 2113 | "intervalFactor": 1, 2114 | "legendFormat": "Acquire Time", 2115 | "refId": "A" 2116 | } 2117 | ], 2118 | "thresholds": [], 2119 | "timeFrom": null, 2120 | "timeRegions": [], 2121 | "timeShift": null, 2122 | "title": "Connection Acquire Time", 2123 | "tooltip": { 2124 | "shared": true, 2125 | "sort": 0, 2126 | "value_type": "individual" 2127 | }, 2128 | "type": "graph", 2129 | "xaxis": { 2130 | "buckets": null, 2131 | "mode": "time", 2132 | "name": null, 2133 | "show": true, 2134 | "values": [] 2135 | }, 2136 | "yaxes": [ 2137 | { 2138 | "format": "s", 2139 | "label": null, 2140 | "logBase": 1, 2141 | "max": null, 2142 | "min": null, 2143 | "show": true 2144 | }, 2145 | { 2146 | "format": "short", 2147 | "label": null, 2148 | "logBase": 1, 2149 | "max": null, 2150 | "min": null, 2151 | "show": true 2152 | } 2153 | ], 2154 | "yaxis": { 2155 | "align": false, 2156 | "alignLevel": null 2157 | } 2158 | }, 2159 | { 2160 | "collapsed": false, 2161 | "gridPos": { 2162 | "h": 1, 2163 | "w": 24, 2164 | "x": 0, 2165 | "y": 80 2166 | }, 2167 | "id": 18, 2168 | "panels": [], 2169 | "title": "HTTP Statistics", 2170 | "type": "row" 2171 | }, 2172 | { 2173 | "aliasColors": {}, 2174 | "bars": false, 2175 | "dashLength": 10, 2176 | "dashes": false, 2177 | "datasource": "PROMETHEUS_DATASOURCE", 2178 | "fill": 1, 2179 | "gridPos": { 2180 | "h": 7, 2181 | "w": 24, 2182 | "x": 0, 2183 | "y": 81 2184 | }, 2185 | "id": 4, 2186 | "legend": { 2187 | "alignAsTable": true, 2188 | "avg": false, 2189 | "current": false, 2190 | "max": false, 2191 | "min": false, 2192 | "rightSide": true, 2193 | "show": true, 2194 | "total": false, 2195 | "values": false 2196 | }, 2197 | "lines": true, 2198 | "linewidth": 1, 2199 | "links": [], 2200 | "nullPointMode": "null", 2201 | "percentage": false, 2202 | "pointradius": 5, 2203 | "points": false, 2204 | "renderer": "flot", 2205 | "seriesOverrides": [], 2206 | "spaceLength": 10, 2207 | "stack": false, 2208 | "steppedLine": false, 2209 | "targets": [ 2210 | { 2211 | "expr": "irate(http_server_requests_seconds_count{instance=\"$instance\", application=\"$application\", uri!~\".*actuator.*\"}[5m])", 2212 | "format": "time_series", 2213 | "intervalFactor": 1, 2214 | "legendFormat": "{{method}} [{{status}}] - {{uri}}", 2215 | "refId": "A" 2216 | } 2217 | ], 2218 | "thresholds": [], 2219 | "timeFrom": null, 2220 | "timeRegions": [], 2221 | "timeShift": null, 2222 | "title": "Request Count", 2223 | "tooltip": { 2224 | "shared": true, 2225 | "sort": 0, 2226 | "value_type": "individual" 2227 | }, 2228 | "type": "graph", 2229 | "xaxis": { 2230 | "buckets": null, 2231 | "mode": "time", 2232 | "name": null, 2233 | "show": true, 2234 | "values": [] 2235 | }, 2236 | "yaxes": [ 2237 | { 2238 | "decimals": null, 2239 | "format": "none", 2240 | "label": null, 2241 | "logBase": 1, 2242 | "max": null, 2243 | "min": null, 2244 | "show": true 2245 | }, 2246 | { 2247 | "format": "short", 2248 | "label": null, 2249 | "logBase": 1, 2250 | "max": null, 2251 | "min": null, 2252 | "show": true 2253 | } 2254 | ], 2255 | "yaxis": { 2256 | "align": false, 2257 | "alignLevel": null 2258 | } 2259 | }, 2260 | { 2261 | "aliasColors": {}, 2262 | "bars": false, 2263 | "dashLength": 10, 2264 | "dashes": false, 2265 | "datasource": "PROMETHEUS_DATASOURCE", 2266 | "fill": 1, 2267 | "gridPos": { 2268 | "h": 7, 2269 | "w": 24, 2270 | "x": 0, 2271 | "y": 88 2272 | }, 2273 | "id": 2, 2274 | "legend": { 2275 | "alignAsTable": true, 2276 | "avg": true, 2277 | "current": false, 2278 | "max": true, 2279 | "min": true, 2280 | "rightSide": true, 2281 | "show": true, 2282 | "total": false, 2283 | "values": true 2284 | }, 2285 | "lines": true, 2286 | "linewidth": 1, 2287 | "links": [], 2288 | "nullPointMode": "null", 2289 | "percentage": false, 2290 | "pointradius": 5, 2291 | "points": false, 2292 | "renderer": "flot", 2293 | "seriesOverrides": [], 2294 | "spaceLength": 10, 2295 | "stack": false, 2296 | "steppedLine": false, 2297 | "targets": [ 2298 | { 2299 | "expr": "irate(http_server_requests_seconds_sum{instance=\"$instance\", application=\"$application\", exception=\"None\", uri!~\".*actuator.*\"}[5m]) / irate(http_server_requests_seconds_count{instance=\"$instance\", application=\"$application\", exception=\"None\", uri!~\".*actuator.*\"}[5m])", 2300 | "format": "time_series", 2301 | "intervalFactor": 1, 2302 | "legendFormat": "{{method}} [{{status}}] - {{uri}}", 2303 | "refId": "A" 2304 | } 2305 | ], 2306 | "thresholds": [], 2307 | "timeFrom": null, 2308 | "timeRegions": [], 2309 | "timeShift": null, 2310 | "title": "Response Time", 2311 | "tooltip": { 2312 | "shared": true, 2313 | "sort": 0, 2314 | "value_type": "individual" 2315 | }, 2316 | "type": "graph", 2317 | "xaxis": { 2318 | "buckets": null, 2319 | "mode": "time", 2320 | "name": null, 2321 | "show": true, 2322 | "values": [] 2323 | }, 2324 | "yaxes": [ 2325 | { 2326 | "format": "s", 2327 | "label": "", 2328 | "logBase": 1, 2329 | "max": null, 2330 | "min": null, 2331 | "show": true 2332 | }, 2333 | { 2334 | "format": "short", 2335 | "label": null, 2336 | "logBase": 1, 2337 | "max": null, 2338 | "min": null, 2339 | "show": true 2340 | } 2341 | ], 2342 | "yaxis": { 2343 | "align": false, 2344 | "alignLevel": null 2345 | } 2346 | }, 2347 | { 2348 | "collapsed": false, 2349 | "gridPos": { 2350 | "h": 1, 2351 | "w": 24, 2352 | "x": 0, 2353 | "y": 95 2354 | }, 2355 | "id": 22, 2356 | "panels": [], 2357 | "title": "Tomcat Statistics", 2358 | "type": "row" 2359 | }, 2360 | { 2361 | "cacheTimeout": null, 2362 | "colorBackground": false, 2363 | "colorValue": false, 2364 | "colors": [ 2365 | "#299c46", 2366 | "rgba(237, 129, 40, 0.89)", 2367 | "#d44a3a" 2368 | ], 2369 | "datasource": "PROMETHEUS_DATASOURCE", 2370 | "format": "locale", 2371 | "gauge": { 2372 | "maxValue": 100, 2373 | "minValue": 0, 2374 | "show": false, 2375 | "thresholdLabels": false, 2376 | "thresholdMarkers": true 2377 | }, 2378 | "gridPos": { 2379 | "h": 4, 2380 | "w": 4, 2381 | "x": 0, 2382 | "y": 96 2383 | }, 2384 | "id": 28, 2385 | "interval": null, 2386 | "links": [], 2387 | "mappingType": 1, 2388 | "mappingTypes": [ 2389 | { 2390 | "name": "value to text", 2391 | "value": 1 2392 | }, 2393 | { 2394 | "name": "range to text", 2395 | "value": 2 2396 | } 2397 | ], 2398 | "maxDataPoints": 100, 2399 | "nullPointMode": "connected", 2400 | "nullText": null, 2401 | "postfix": "", 2402 | "postfixFontSize": "50%", 2403 | "prefix": "", 2404 | "prefixFontSize": "50%", 2405 | "rangeMaps": [ 2406 | { 2407 | "from": "null", 2408 | "text": "N/A", 2409 | "to": "null" 2410 | } 2411 | ], 2412 | "sparkline": { 2413 | "fillColor": "rgba(31, 118, 189, 0.18)", 2414 | "full": false, 2415 | "lineColor": "rgb(31, 120, 193)", 2416 | "show": false 2417 | }, 2418 | "tableColumn": "", 2419 | "targets": [ 2420 | { 2421 | "expr": "tomcat_global_error_total{instance=\"$instance\", application=\"$application\"}", 2422 | "format": "time_series", 2423 | "intervalFactor": 1, 2424 | "legendFormat": "", 2425 | "refId": "A" 2426 | } 2427 | ], 2428 | "thresholds": "", 2429 | "title": "Total Error Count", 2430 | "type": "singlestat", 2431 | "valueFontSize": "80%", 2432 | "valueMaps": [ 2433 | { 2434 | "op": "=", 2435 | "text": "N/A", 2436 | "value": "null" 2437 | } 2438 | ], 2439 | "valueName": "current" 2440 | }, 2441 | { 2442 | "aliasColors": {}, 2443 | "bars": false, 2444 | "dashLength": 10, 2445 | "dashes": false, 2446 | "datasource": "PROMETHEUS_DATASOURCE", 2447 | "decimals": 0, 2448 | "fill": 1, 2449 | "gridPos": { 2450 | "h": 7, 2451 | "w": 9, 2452 | "x": 4, 2453 | "y": 96 2454 | }, 2455 | "id": 24, 2456 | "legend": { 2457 | "alignAsTable": true, 2458 | "avg": true, 2459 | "current": true, 2460 | "max": true, 2461 | "min": true, 2462 | "show": true, 2463 | "total": false, 2464 | "values": true 2465 | }, 2466 | "lines": true, 2467 | "linewidth": 1, 2468 | "links": [], 2469 | "nullPointMode": "null", 2470 | "percentage": false, 2471 | "pointradius": 5, 2472 | "points": false, 2473 | "renderer": "flot", 2474 | "seriesOverrides": [], 2475 | "spaceLength": 10, 2476 | "stack": false, 2477 | "steppedLine": false, 2478 | "targets": [ 2479 | { 2480 | "expr": "tomcat_sessions_active_current_sessions{instance=\"$instance\", application=\"$application\"}", 2481 | "format": "time_series", 2482 | "intervalFactor": 1, 2483 | "legendFormat": "active sessions", 2484 | "refId": "A" 2485 | } 2486 | ], 2487 | "thresholds": [], 2488 | "timeFrom": null, 2489 | "timeRegions": [], 2490 | "timeShift": null, 2491 | "title": "Active Sessions", 2492 | "tooltip": { 2493 | "shared": true, 2494 | "sort": 0, 2495 | "value_type": "individual" 2496 | }, 2497 | "type": "graph", 2498 | "xaxis": { 2499 | "buckets": null, 2500 | "mode": "time", 2501 | "name": null, 2502 | "show": true, 2503 | "values": [] 2504 | }, 2505 | "yaxes": [ 2506 | { 2507 | "decimals": null, 2508 | "format": "none", 2509 | "label": "", 2510 | "logBase": 1, 2511 | "max": null, 2512 | "min": null, 2513 | "show": true 2514 | }, 2515 | { 2516 | "decimals": null, 2517 | "format": "short", 2518 | "label": null, 2519 | "logBase": 1, 2520 | "max": null, 2521 | "min": null, 2522 | "show": true 2523 | } 2524 | ], 2525 | "yaxis": { 2526 | "align": false, 2527 | "alignLevel": null 2528 | } 2529 | }, 2530 | { 2531 | "aliasColors": {}, 2532 | "bars": false, 2533 | "dashLength": 10, 2534 | "dashes": false, 2535 | "datasource": "PROMETHEUS_DATASOURCE", 2536 | "fill": 1, 2537 | "gridPos": { 2538 | "h": 7, 2539 | "w": 11, 2540 | "x": 13, 2541 | "y": 96 2542 | }, 2543 | "id": 26, 2544 | "legend": { 2545 | "alignAsTable": true, 2546 | "avg": true, 2547 | "current": true, 2548 | "max": true, 2549 | "min": true, 2550 | "show": true, 2551 | "total": false, 2552 | "values": true 2553 | }, 2554 | "lines": true, 2555 | "linewidth": 1, 2556 | "links": [], 2557 | "nullPointMode": "null", 2558 | "percentage": false, 2559 | "pointradius": 5, 2560 | "points": false, 2561 | "renderer": "flot", 2562 | "seriesOverrides": [], 2563 | "spaceLength": 10, 2564 | "stack": false, 2565 | "steppedLine": false, 2566 | "targets": [ 2567 | { 2568 | "expr": "irate(tomcat_global_sent_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])", 2569 | "format": "time_series", 2570 | "intervalFactor": 1, 2571 | "legendFormat": "Sent Bytes", 2572 | "refId": "A" 2573 | }, 2574 | { 2575 | "expr": "irate(tomcat_global_received_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])", 2576 | "format": "time_series", 2577 | "intervalFactor": 1, 2578 | "legendFormat": "Recieved Bytes", 2579 | "refId": "B" 2580 | } 2581 | ], 2582 | "thresholds": [], 2583 | "timeFrom": null, 2584 | "timeRegions": [], 2585 | "timeShift": null, 2586 | "title": "Sent & Recieved Bytes", 2587 | "tooltip": { 2588 | "shared": true, 2589 | "sort": 0, 2590 | "value_type": "individual" 2591 | }, 2592 | "type": "graph", 2593 | "xaxis": { 2594 | "buckets": null, 2595 | "mode": "time", 2596 | "name": null, 2597 | "show": true, 2598 | "values": [] 2599 | }, 2600 | "yaxes": [ 2601 | { 2602 | "format": "bytes", 2603 | "label": null, 2604 | "logBase": 1, 2605 | "max": null, 2606 | "min": null, 2607 | "show": true 2608 | }, 2609 | { 2610 | "format": "short", 2611 | "label": null, 2612 | "logBase": 1, 2613 | "max": null, 2614 | "min": null, 2615 | "show": true 2616 | } 2617 | ], 2618 | "yaxis": { 2619 | "align": false, 2620 | "alignLevel": null 2621 | } 2622 | }, 2623 | { 2624 | "cacheTimeout": null, 2625 | "colorBackground": false, 2626 | "colorValue": false, 2627 | "colors": [ 2628 | "#299c46", 2629 | "rgba(237, 129, 40, 0.89)", 2630 | "#d44a3a" 2631 | ], 2632 | "datasource": "PROMETHEUS_DATASOURCE", 2633 | "format": "locale", 2634 | "gauge": { 2635 | "maxValue": 100, 2636 | "minValue": 0, 2637 | "show": false, 2638 | "thresholdLabels": false, 2639 | "thresholdMarkers": true 2640 | }, 2641 | "gridPos": { 2642 | "h": 3, 2643 | "w": 4, 2644 | "x": 0, 2645 | "y": 100 2646 | }, 2647 | "id": 32, 2648 | "interval": null, 2649 | "links": [], 2650 | "mappingType": 1, 2651 | "mappingTypes": [ 2652 | { 2653 | "name": "value to text", 2654 | "value": 1 2655 | }, 2656 | { 2657 | "name": "range to text", 2658 | "value": 2 2659 | } 2660 | ], 2661 | "maxDataPoints": 100, 2662 | "nullPointMode": "connected", 2663 | "nullText": null, 2664 | "postfix": "", 2665 | "postfixFontSize": "50%", 2666 | "prefix": "", 2667 | "prefixFontSize": "50%", 2668 | "rangeMaps": [ 2669 | { 2670 | "from": "null", 2671 | "text": "N/A", 2672 | "to": "null" 2673 | } 2674 | ], 2675 | "sparkline": { 2676 | "fillColor": "rgba(31, 118, 189, 0.18)", 2677 | "full": false, 2678 | "lineColor": "rgb(31, 120, 193)", 2679 | "show": false 2680 | }, 2681 | "tableColumn": "", 2682 | "targets": [ 2683 | { 2684 | "expr": "tomcat_threads_config_max{instance=\"$instance\", application=\"$application\"}", 2685 | "format": "time_series", 2686 | "intervalFactor": 1, 2687 | "legendFormat": "", 2688 | "refId": "A" 2689 | } 2690 | ], 2691 | "thresholds": "", 2692 | "title": "Thread Config Max", 2693 | "type": "singlestat", 2694 | "valueFontSize": "80%", 2695 | "valueMaps": [ 2696 | { 2697 | "op": "=", 2698 | "text": "N/A", 2699 | "value": "null" 2700 | } 2701 | ], 2702 | "valueName": "current" 2703 | }, 2704 | { 2705 | "aliasColors": {}, 2706 | "bars": false, 2707 | "dashLength": 10, 2708 | "dashes": false, 2709 | "datasource": "PROMETHEUS_DATASOURCE", 2710 | "fill": 1, 2711 | "gridPos": { 2712 | "h": 7, 2713 | "w": 13, 2714 | "x": 0, 2715 | "y": 103 2716 | }, 2717 | "id": 30, 2718 | "legend": { 2719 | "alignAsTable": true, 2720 | "avg": true, 2721 | "current": true, 2722 | "max": true, 2723 | "min": true, 2724 | "show": true, 2725 | "total": false, 2726 | "values": true 2727 | }, 2728 | "lines": true, 2729 | "linewidth": 1, 2730 | "links": [], 2731 | "nullPointMode": "null", 2732 | "percentage": false, 2733 | "pointradius": 5, 2734 | "points": false, 2735 | "renderer": "flot", 2736 | "seriesOverrides": [], 2737 | "spaceLength": 10, 2738 | "stack": false, 2739 | "steppedLine": false, 2740 | "targets": [ 2741 | { 2742 | "expr": "tomcat_threads_current_threads{instance=\"$instance\", application=\"$application\"}", 2743 | "format": "time_series", 2744 | "intervalFactor": 1, 2745 | "legendFormat": "Current thread", 2746 | "refId": "A" 2747 | }, 2748 | { 2749 | "expr": "tomcat_threads_busy_threads{instance=\"$instance\", application=\"$application\"}", 2750 | "format": "time_series", 2751 | "intervalFactor": 1, 2752 | "legendFormat": "Current thread busy", 2753 | "refId": "B" 2754 | } 2755 | ], 2756 | "thresholds": [], 2757 | "timeFrom": null, 2758 | "timeRegions": [], 2759 | "timeShift": null, 2760 | "title": "Threads", 2761 | "tooltip": { 2762 | "shared": true, 2763 | "sort": 0, 2764 | "value_type": "individual" 2765 | }, 2766 | "type": "graph", 2767 | "xaxis": { 2768 | "buckets": null, 2769 | "mode": "time", 2770 | "name": null, 2771 | "show": true, 2772 | "values": [] 2773 | }, 2774 | "yaxes": [ 2775 | { 2776 | "format": "short", 2777 | "label": null, 2778 | "logBase": 1, 2779 | "max": null, 2780 | "min": null, 2781 | "show": true 2782 | }, 2783 | { 2784 | "format": "short", 2785 | "label": null, 2786 | "logBase": 1, 2787 | "max": null, 2788 | "min": null, 2789 | "show": true 2790 | } 2791 | ], 2792 | "yaxis": { 2793 | "align": false, 2794 | "alignLevel": null 2795 | } 2796 | }, 2797 | { 2798 | "collapsed": false, 2799 | "gridPos": { 2800 | "h": 1, 2801 | "w": 24, 2802 | "x": 0, 2803 | "y": 110 2804 | }, 2805 | "id": 8, 2806 | "panels": [], 2807 | "title": "Logback Statistics", 2808 | "type": "row" 2809 | }, 2810 | { 2811 | "aliasColors": {}, 2812 | "bars": false, 2813 | "dashLength": 10, 2814 | "dashes": false, 2815 | "datasource": "PROMETHEUS_DATASOURCE", 2816 | "fill": 1, 2817 | "gridPos": { 2818 | "h": 7, 2819 | "w": 12, 2820 | "x": 0, 2821 | "y": 111 2822 | }, 2823 | "id": 6, 2824 | "legend": { 2825 | "alignAsTable": true, 2826 | "avg": true, 2827 | "current": true, 2828 | "max": true, 2829 | "min": true, 2830 | "show": true, 2831 | "total": true, 2832 | "values": true 2833 | }, 2834 | "lines": true, 2835 | "linewidth": 1, 2836 | "links": [], 2837 | "nullPointMode": "null", 2838 | "percentage": false, 2839 | "pointradius": 5, 2840 | "points": false, 2841 | "renderer": "flot", 2842 | "seriesOverrides": [], 2843 | "spaceLength": 10, 2844 | "stack": false, 2845 | "steppedLine": false, 2846 | "targets": [ 2847 | { 2848 | "alias": "", 2849 | "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"info\"}[5m])", 2850 | "format": "time_series", 2851 | "intervalFactor": 1, 2852 | "legendFormat": "info", 2853 | "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n", 2854 | "refId": "A" 2855 | } 2856 | ], 2857 | "thresholds": [], 2858 | "timeFrom": null, 2859 | "timeRegions": [], 2860 | "timeShift": null, 2861 | "title": "INFO logs", 2862 | "tooltip": { 2863 | "shared": true, 2864 | "sort": 0, 2865 | "value_type": "individual" 2866 | }, 2867 | "type": "graph", 2868 | "xaxis": { 2869 | "buckets": null, 2870 | "mode": "time", 2871 | "name": null, 2872 | "show": true, 2873 | "values": [] 2874 | }, 2875 | "yaxes": [ 2876 | { 2877 | "format": "none", 2878 | "label": null, 2879 | "logBase": 1, 2880 | "max": null, 2881 | "min": null, 2882 | "show": true 2883 | }, 2884 | { 2885 | "format": "short", 2886 | "label": null, 2887 | "logBase": 1, 2888 | "max": null, 2889 | "min": null, 2890 | "show": true 2891 | } 2892 | ], 2893 | "yaxis": { 2894 | "align": false, 2895 | "alignLevel": null 2896 | } 2897 | }, 2898 | { 2899 | "aliasColors": {}, 2900 | "bars": false, 2901 | "dashLength": 10, 2902 | "dashes": false, 2903 | "datasource": "PROMETHEUS_DATASOURCE", 2904 | "fill": 1, 2905 | "gridPos": { 2906 | "h": 7, 2907 | "w": 12, 2908 | "x": 12, 2909 | "y": 111 2910 | }, 2911 | "id": 10, 2912 | "legend": { 2913 | "alignAsTable": true, 2914 | "avg": true, 2915 | "current": true, 2916 | "max": true, 2917 | "min": true, 2918 | "show": true, 2919 | "total": true, 2920 | "values": true 2921 | }, 2922 | "lines": true, 2923 | "linewidth": 1, 2924 | "links": [], 2925 | "nullPointMode": "null", 2926 | "percentage": false, 2927 | "pointradius": 5, 2928 | "points": false, 2929 | "renderer": "flot", 2930 | "seriesOverrides": [], 2931 | "spaceLength": 10, 2932 | "stack": false, 2933 | "steppedLine": false, 2934 | "targets": [ 2935 | { 2936 | "alias": "", 2937 | "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"error\"}[5m])", 2938 | "format": "time_series", 2939 | "intervalFactor": 1, 2940 | "legendFormat": "error", 2941 | "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n", 2942 | "refId": "A" 2943 | } 2944 | ], 2945 | "thresholds": [], 2946 | "timeFrom": null, 2947 | "timeRegions": [], 2948 | "timeShift": null, 2949 | "title": "ERROR logs", 2950 | "tooltip": { 2951 | "shared": true, 2952 | "sort": 0, 2953 | "value_type": "individual" 2954 | }, 2955 | "type": "graph", 2956 | "xaxis": { 2957 | "buckets": null, 2958 | "mode": "time", 2959 | "name": null, 2960 | "show": true, 2961 | "values": [] 2962 | }, 2963 | "yaxes": [ 2964 | { 2965 | "format": "none", 2966 | "label": null, 2967 | "logBase": 1, 2968 | "max": null, 2969 | "min": null, 2970 | "show": true 2971 | }, 2972 | { 2973 | "format": "short", 2974 | "label": null, 2975 | "logBase": 1, 2976 | "max": null, 2977 | "min": null, 2978 | "show": true 2979 | } 2980 | ], 2981 | "yaxis": { 2982 | "align": false, 2983 | "alignLevel": null 2984 | } 2985 | }, 2986 | { 2987 | "aliasColors": {}, 2988 | "bars": false, 2989 | "dashLength": 10, 2990 | "dashes": false, 2991 | "datasource": "PROMETHEUS_DATASOURCE", 2992 | "fill": 1, 2993 | "gridPos": { 2994 | "h": 7, 2995 | "w": 8, 2996 | "x": 0, 2997 | "y": 118 2998 | }, 2999 | "id": 14, 3000 | "legend": { 3001 | "alignAsTable": true, 3002 | "avg": true, 3003 | "current": true, 3004 | "max": true, 3005 | "min": true, 3006 | "show": true, 3007 | "total": true, 3008 | "values": true 3009 | }, 3010 | "lines": true, 3011 | "linewidth": 1, 3012 | "links": [], 3013 | "nullPointMode": "null", 3014 | "percentage": false, 3015 | "pointradius": 5, 3016 | "points": false, 3017 | "renderer": "flot", 3018 | "seriesOverrides": [], 3019 | "spaceLength": 10, 3020 | "stack": false, 3021 | "steppedLine": false, 3022 | "targets": [ 3023 | { 3024 | "alias": "", 3025 | "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"warn\"}[5m])", 3026 | "format": "time_series", 3027 | "intervalFactor": 1, 3028 | "legendFormat": "warn", 3029 | "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n", 3030 | "refId": "A" 3031 | } 3032 | ], 3033 | "thresholds": [], 3034 | "timeFrom": null, 3035 | "timeRegions": [], 3036 | "timeShift": null, 3037 | "title": "WARN logs", 3038 | "tooltip": { 3039 | "shared": true, 3040 | "sort": 0, 3041 | "value_type": "individual" 3042 | }, 3043 | "type": "graph", 3044 | "xaxis": { 3045 | "buckets": null, 3046 | "mode": "time", 3047 | "name": null, 3048 | "show": true, 3049 | "values": [] 3050 | }, 3051 | "yaxes": [ 3052 | { 3053 | "format": "none", 3054 | "label": null, 3055 | "logBase": 1, 3056 | "max": null, 3057 | "min": null, 3058 | "show": true 3059 | }, 3060 | { 3061 | "format": "short", 3062 | "label": null, 3063 | "logBase": 1, 3064 | "max": null, 3065 | "min": null, 3066 | "show": true 3067 | } 3068 | ], 3069 | "yaxis": { 3070 | "align": false, 3071 | "alignLevel": null 3072 | } 3073 | }, 3074 | { 3075 | "aliasColors": {}, 3076 | "bars": false, 3077 | "dashLength": 10, 3078 | "dashes": false, 3079 | "datasource": "PROMETHEUS_DATASOURCE", 3080 | "fill": 1, 3081 | "gridPos": { 3082 | "h": 7, 3083 | "w": 8, 3084 | "x": 8, 3085 | "y": 118 3086 | }, 3087 | "id": 16, 3088 | "legend": { 3089 | "alignAsTable": true, 3090 | "avg": true, 3091 | "current": true, 3092 | "max": true, 3093 | "min": true, 3094 | "show": true, 3095 | "total": true, 3096 | "values": true 3097 | }, 3098 | "lines": true, 3099 | "linewidth": 1, 3100 | "links": [], 3101 | "nullPointMode": "null", 3102 | "percentage": false, 3103 | "pointradius": 5, 3104 | "points": false, 3105 | "renderer": "flot", 3106 | "seriesOverrides": [], 3107 | "spaceLength": 10, 3108 | "stack": false, 3109 | "steppedLine": false, 3110 | "targets": [ 3111 | { 3112 | "alias": "", 3113 | "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"debug\"}[5m])", 3114 | "format": "time_series", 3115 | "intervalFactor": 1, 3116 | "legendFormat": "debug", 3117 | "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n", 3118 | "refId": "A" 3119 | } 3120 | ], 3121 | "thresholds": [], 3122 | "timeFrom": null, 3123 | "timeRegions": [], 3124 | "timeShift": null, 3125 | "title": "DEBUG logs", 3126 | "tooltip": { 3127 | "shared": true, 3128 | "sort": 0, 3129 | "value_type": "individual" 3130 | }, 3131 | "type": "graph", 3132 | "xaxis": { 3133 | "buckets": null, 3134 | "mode": "time", 3135 | "name": null, 3136 | "show": true, 3137 | "values": [] 3138 | }, 3139 | "yaxes": [ 3140 | { 3141 | "format": "none", 3142 | "label": null, 3143 | "logBase": 1, 3144 | "max": null, 3145 | "min": null, 3146 | "show": true 3147 | }, 3148 | { 3149 | "format": "short", 3150 | "label": null, 3151 | "logBase": 1, 3152 | "max": null, 3153 | "min": null, 3154 | "show": true 3155 | } 3156 | ], 3157 | "yaxis": { 3158 | "align": false, 3159 | "alignLevel": null 3160 | } 3161 | }, 3162 | { 3163 | "aliasColors": {}, 3164 | "bars": false, 3165 | "dashLength": 10, 3166 | "dashes": false, 3167 | "datasource": "PROMETHEUS_DATASOURCE", 3168 | "fill": 1, 3169 | "gridPos": { 3170 | "h": 7, 3171 | "w": 8, 3172 | "x": 16, 3173 | "y": 118 3174 | }, 3175 | "id": 20, 3176 | "legend": { 3177 | "alignAsTable": true, 3178 | "avg": true, 3179 | "current": true, 3180 | "max": true, 3181 | "min": true, 3182 | "show": true, 3183 | "total": true, 3184 | "values": true 3185 | }, 3186 | "lines": true, 3187 | "linewidth": 1, 3188 | "links": [], 3189 | "nullPointMode": "null", 3190 | "percentage": false, 3191 | "pointradius": 5, 3192 | "points": false, 3193 | "renderer": "flot", 3194 | "seriesOverrides": [], 3195 | "spaceLength": 10, 3196 | "stack": false, 3197 | "steppedLine": false, 3198 | "targets": [ 3199 | { 3200 | "alias": "", 3201 | "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"trace\"}[5m])", 3202 | "format": "time_series", 3203 | "intervalFactor": 1, 3204 | "legendFormat": "trace", 3205 | "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n", 3206 | "refId": "A" 3207 | } 3208 | ], 3209 | "thresholds": [], 3210 | "timeFrom": null, 3211 | "timeRegions": [], 3212 | "timeShift": null, 3213 | "title": "TRACE logs", 3214 | "tooltip": { 3215 | "shared": true, 3216 | "sort": 0, 3217 | "value_type": "individual" 3218 | }, 3219 | "type": "graph", 3220 | "xaxis": { 3221 | "buckets": null, 3222 | "mode": "time", 3223 | "name": null, 3224 | "show": true, 3225 | "values": [] 3226 | }, 3227 | "yaxes": [ 3228 | { 3229 | "format": "none", 3230 | "label": null, 3231 | "logBase": 1, 3232 | "max": null, 3233 | "min": null, 3234 | "show": true 3235 | }, 3236 | { 3237 | "format": "short", 3238 | "label": null, 3239 | "logBase": 1, 3240 | "max": null, 3241 | "min": null, 3242 | "show": true 3243 | } 3244 | ], 3245 | "yaxis": { 3246 | "align": false, 3247 | "alignLevel": null 3248 | } 3249 | } 3250 | ], 3251 | "refresh": false, 3252 | "schemaVersion": 16, 3253 | "style": "dark", 3254 | "tags": [], 3255 | "templating": { 3256 | "list": [ 3257 | { 3258 | "allValue": null, 3259 | "current": { 3260 | "isNone": true, 3261 | "text": "None", 3262 | "value": "" 3263 | }, 3264 | "datasource": "PROMETHEUS_DATASOURCE", 3265 | "definition": "label_values(application)", 3266 | "hide": 0, 3267 | "includeAll": false, 3268 | "label": "Application", 3269 | "multi": false, 3270 | "name": "application", 3271 | "options": [], 3272 | "query": "label_values(application)", 3273 | "refresh": 1, 3274 | "regex": "", 3275 | "skipUrlSync": false, 3276 | "sort": 1, 3277 | "tagValuesQuery": "", 3278 | "tags": [], 3279 | "tagsQuery": "", 3280 | "type": "query", 3281 | "useTags": false 3282 | }, 3283 | { 3284 | "allValue": null, 3285 | "current": { 3286 | "isNone": true, 3287 | "text": "None", 3288 | "value": "" 3289 | }, 3290 | "datasource": "PROMETHEUS_DATASOURCE", 3291 | "definition": "label_values(jvm_classes_loaded_classes{application=\"$application\"}, instance)", 3292 | "hide": 0, 3293 | "includeAll": false, 3294 | "label": "Instance", 3295 | "multi": false, 3296 | "name": "instance", 3297 | "options": [], 3298 | "query": "label_values(jvm_classes_loaded_classes{application=\"$application\"}, instance)", 3299 | "refresh": 1, 3300 | "regex": "", 3301 | "skipUrlSync": false, 3302 | "sort": 1, 3303 | "tagValuesQuery": "", 3304 | "tags": [], 3305 | "tagsQuery": "", 3306 | "type": "query", 3307 | "useTags": false 3308 | }, 3309 | { 3310 | "allValue": null, 3311 | "current": { 3312 | "isNone": true, 3313 | "text": "None", 3314 | "value": "" 3315 | }, 3316 | "datasource": "PROMETHEUS_DATASOURCE", 3317 | "definition": "", 3318 | "hide": 0, 3319 | "includeAll": false, 3320 | "label": "HikariCP-Pool", 3321 | "multi": false, 3322 | "name": "hikaricp", 3323 | "options": [], 3324 | "query": "label_values(hikaricp_connections{instance=\"$instance\", application=\"$application\"}, pool)", 3325 | "refresh": 1, 3326 | "regex": "", 3327 | "skipUrlSync": false, 3328 | "sort": 1, 3329 | "tagValuesQuery": "", 3330 | "tags": [], 3331 | "tagsQuery": "", 3332 | "type": "query", 3333 | "useTags": false 3334 | }, 3335 | { 3336 | "allValue": null, 3337 | "current": { 3338 | "text": "All", 3339 | "value": "$__all" 3340 | }, 3341 | "datasource": "PROMETHEUS_DATASOURCE", 3342 | "definition": "", 3343 | "hide": 0, 3344 | "includeAll": true, 3345 | "label": "Memory Pool (heap)", 3346 | "multi": false, 3347 | "name": "memory_pool_heap", 3348 | "options": [], 3349 | "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"},id)", 3350 | "refresh": 1, 3351 | "regex": "", 3352 | "skipUrlSync": false, 3353 | "sort": 1, 3354 | "tagValuesQuery": "", 3355 | "tags": [], 3356 | "tagsQuery": "", 3357 | "type": "query", 3358 | "useTags": false 3359 | }, 3360 | { 3361 | "allValue": null, 3362 | "current": { 3363 | "text": "All", 3364 | "value": "$__all" 3365 | }, 3366 | "datasource": "PROMETHEUS_DATASOURCE", 3367 | "definition": "", 3368 | "hide": 0, 3369 | "includeAll": true, 3370 | "label": "Memory Pool (nonheap)", 3371 | "multi": false, 3372 | "name": "memory_pool_nonheap", 3373 | "options": [], 3374 | "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"},id)", 3375 | "refresh": 1, 3376 | "regex": "", 3377 | "skipUrlSync": false, 3378 | "sort": 1, 3379 | "tagValuesQuery": "", 3380 | "tags": [], 3381 | "tagsQuery": "", 3382 | "type": "query", 3383 | "useTags": false 3384 | } 3385 | ] 3386 | }, 3387 | "time": { 3388 | "from": "now-1h", 3389 | "to": "now" 3390 | }, 3391 | "timepicker": { 3392 | "refresh_intervals": [ 3393 | "5s", 3394 | "10s", 3395 | "30s", 3396 | "1m", 3397 | "5m", 3398 | "15m", 3399 | "30m", 3400 | "1h", 3401 | "2h", 3402 | "1d" 3403 | ], 3404 | "time_options": [ 3405 | "5m", 3406 | "15m", 3407 | "1h", 3408 | "6h", 3409 | "12h", 3410 | "24h", 3411 | "2d", 3412 | "7d", 3413 | "30d" 3414 | ] 3415 | }, 3416 | "timezone": "", 3417 | "title": "Spring Boot 2.1 Statistics", 3418 | "uid": "spring_boot_21", 3419 | "version": 1 3420 | } 3421 | -------------------------------------------------------------------------------- /docker/grafana/provisioning/datasources/datasource.yml: -------------------------------------------------------------------------------- 1 | # config file version 2 | apiVersion: 1 3 | 4 | datasources: 5 | # name of the datasource. Required 6 | - name: PROMETHEUS_DATASOURCE 7 | # datasource type. Required 8 | type: prometheus 9 | # access mode. proxy or direct (Server or Browser in the UI). Required 10 | access: direct 11 | # url 12 | url: http://localhost:9090 13 | # mark as default datasource. Max one per org 14 | isDefault: true 15 | version: 1 16 | # allow users to edit datasources from the UI. 17 | editable: false 18 | -------------------------------------------------------------------------------- /docker/prometheus/prometheus.yml: -------------------------------------------------------------------------------- 1 | scrape_configs: 2 | - job_name: 'latency-troubleshooter' 3 | scrape_interval: 5s 4 | metrics_path: '/actuator/prometheus' 5 | static_configs: 6 | - targets: ['LOCAL_MACHINE_IP:PORT'] 7 | -------------------------------------------------------------------------------- /images/analysis-tool-chain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/analysis-tool-chain.png -------------------------------------------------------------------------------- /images/cf-latency-analysis-latency-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/cf-latency-analysis-latency-flow.png -------------------------------------------------------------------------------- /images/grafana-basic-hikari-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/grafana-basic-hikari-stats.png -------------------------------------------------------------------------------- /images/grafana-basic-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/grafana-basic-stats.png -------------------------------------------------------------------------------- /images/grafana-jvm-gc-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/grafana-jvm-gc-stats.png -------------------------------------------------------------------------------- /images/grafana-jvm-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/grafana-jvm-stats.png -------------------------------------------------------------------------------- /images/grafana-tomcat-stats.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pbelathur/spring-boot-performance-analysis/aa7e04fcbd2d12e08eb529253a24e2e554c3c65d/images/grafana-tomcat-stats.png --------------------------------------------------------------------------------