├── LICENSE
├── README.md
├── config
├── grafana
│ ├── dashboards
│ │ ├── no_folder
│ │ │ └── loki_syslog_aio_overview.json
│ │ └── performance_overview
│ │ │ ├── performance_overview_docker.json
│ │ │ ├── performance_overview_grafana.json
│ │ │ ├── performance_overview_loki.json
│ │ │ ├── performance_overview_minio.json
│ │ │ ├── performance_overview_prometheus.json
│ │ │ └── prometheus_node_exporter.json
│ └── provisioning
│ │ ├── dashboards
│ │ ├── no_folder.yml
│ │ └── performance_overview.yml
│ │ └── datasources
│ │ ├── loki.yaml
│ │ └── prometheus.yaml
├── loki-config-filesystem.yml
├── loki-config-s3.yml
├── prometheus.yml
├── promtail-config.yml
└── syslog-ng.conf
├── docker-compose-filesystem.yml
├── docker-compose-with-generator.yml
├── docker-compose-without-monitoring.yml
├── docker-compose.yml
├── generator
├── Dockerfile
├── build.sh
└── entrypoint.sh
├── loki_syslog_aio.png
├── loki_syslog_aio_overview_generator_sized.png
└── loki_syslog_aio_overview_sized.png
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 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 Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## grafana-loki-syslog-aio
3 |
4 |
5 |
6 | ## About The Project
7 |
8 | This Loki Syslog All-In-One example is geared to help you get up and running quickly with a Syslog ingestor and visualization of logs. It uses [Grafana Loki](https://grafana.com/oss/loki/) and Promtail as a receiver for forwarded syslog-ng logs. I wrote an [introductory blog post](https://labs.lux4rd0.com/2021/01/oldskool-syslog-meets-newskool-loki/) about how this AIO project came about as well (pesky intermittent network issues!!)
9 |
10 |
11 |
12 | *Note that this All In One is geared towards getting network traffic from legacy syslog (RFC3164 UDP port 514) into Loki via [syslog-ng](https://www.syslog-ng.com/) and [Promtail](https://grafana.com/docs/loki/latest/clients/promtail/).*
13 |
14 | Essentially:
15 |
16 | > RFC3164 Network/Compute Devices -> syslog-ng (UDP port 514) ->
17 | > Promtail (port 1514) -> Loki (port 3100) <- Grafana (port 3000)
18 |
19 | ## Getting Started
20 |
21 | The project is built around a pre-configured Docker stack of the following:
22 |
23 | - [Grafana](https://grafana.com/oss/grafana/)
24 | - [Grafana Loki](https://grafana.com/oss/loki/) (configured for [MinIO](https://min.io/))
25 | - [Grafana Promtail](https://grafana.com/docs/loki/latest/clients/promtail/)
26 | - [syslog-ng](https://www.syslog-ng.com/)
27 |
28 | The stack has been extended to include pre-configured monitoring with:
29 |
30 | - [Prometheus](https://grafana.com/oss/prometheus/)
31 | - [Node-Exporter](https://github.com/prometheus/node_exporter)
32 | - [cAdvisor](https://github.com/google/cadvisor)
33 |
34 | A simple Syslog generator is included based on Vicente Zepeda Mas's [random-logger](https://github.com/chentex/random-logger) project.
35 |
36 | ## Prerequisites
37 |
38 | - [Docker](https://docs.docker.com/install)
39 | - [Docker Compose](https://docs.docker.com/compose/install)
40 |
41 | ## Using
42 |
43 | This project is built and tested on Linux CentOS 7. To get started, download the code from this repository and extract it into an empty directory. For example:
44 |
45 | wget https://github.com/lux4rd0/grafana-loki-syslog-aio/archive/main.zip
46 | unzip main.zip
47 | cd grafana-loki-syslog-aio-main
48 |
49 | From that directory, run the docker-compose command:
50 |
51 | **Full Example Stack:** Grafana, Loki with s3/MinIO, Promtail, syslog-ng, Prometheus, cAdvisor, node-exporter
52 |
53 | docker-compose -f ./docker-compose.yml up -d
54 |
55 | This will start to download all of the needed application containers and start them up.
56 |
57 | *(Optional docker-compose configurations are listed under **Options** below)*
58 |
59 | **Grafana Dashboards**
60 |
61 | Once all of the docker containers are started up, point your Web browser to the Grafana page, typically http://hostname:3000/ - with hostname being the name of the server you ran the docker-compose up -d command on. The "Loki Syslog AIO - Overview" dashboard is defaulted without having to log in.
62 |
63 | *Note: this docker-compose stack is designed to be as easy as possible to deploy and go. Logins have been disabled, and the default user has an admin role. This can be changed to an Editor or Viewer role by changing the Grafana environmental variable in the docker-compose.yml file to:*
64 |
65 | GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer
66 |
67 | **Getting Started With Loki**
68 |
69 | Here are some additional resources you might find helpful if you're just getting started with Loki:
70 |
71 | - [Getting started with Grafana and Loki in under 4
72 | minutes](https://grafana.com/go/webinar/loki-getting-started/)
73 | - [An (only slightly technical) introduction to Loki](https://grafana.com/blog/2020/05/12/an-only-slightly-technical-introduction-to-loki-the-prometheus-inspired-open-source-logging-system/)
74 | - [Video tutorial: Effective troubleshooting queries with Grafana
75 | Loki](https://grafana.com/blog/2021/01/07/video-tutorial-effective-troubleshooting-queries-with-grafana-loki/)
76 |
77 | ## Stack Options:
78 |
79 | A few other docker-compose files are also available:
80 |
81 | **Full Example Stack with Syslog Generator:** Grafana, Loki with s3/MinIO, Promtail, syslog-ng, Prometheus, cAdvisor, node-exporter, Syslog Generator
82 |
83 | docker-compose -f ./docker-compose-with-generator.yml up -d
84 |
85 | **Example Stack without monitoring or Syslog generator**: Grafana, Loki with s3/MinIO, Promtail, syslog-ng
86 |
87 | docker-compose -f ./docker-compose-without-monitoring.yml up -d
88 |
89 | **Example Stack without MinIO, monitoring, or Syslog generator:** Grafana, Loki with the filesystem, Promtail, syslog-ng
90 |
91 | docker-compose -f ./docker-compose-filesystem.yml up -d
92 |
93 | The *Syslog Generator* configuration will need access to the Internet to do a local docker build from the configurations location in ./generator. It'll provide some named hosts and random INFO, WARN, DEBUG, ERROR logs sent over to syslog-ng/Loki.
94 |
95 |
96 |
97 | ## Configuration Review:
98 |
99 | The default Loki storage configuration docker-compose.yml uses S3 storage with MinIO. If you want to use the filesystem instead, use the different docker-compose configurations listed above or change the configuration directly. An example would be:
100 |
101 | volumes:
102 | - ./config/loki-config-filesystem.ym:/etc/loki/loki-config.yml:ro
103 |
104 | **Changing MinIO Keys**
105 |
106 | The MinIO configurations default the Access Key and Secret Key at startup. If you want to change them, you'll need to update two files:
107 |
108 | ./docker-compose.yml
109 |
110 | MINIO_ACCESS_KEY: minio123
111 | MINIO_SECRET_KEY: minio456
112 |
113 | ./config/loki-config-s3.yml
114 |
115 | aws:
116 | s3: s3://minio123:minio456@minio.:9000/loki
117 |
118 | ## Changed Default Configurations In syslog-ng and Promtail
119 |
120 | To set this example All In One project up, the following configurations have been added to the docker-compose.yml. If you already have syslog-ng running on your deployment server - make similar changes below and comment out the docker container stanza.
121 |
122 | #### SYSLOG-NG CONFIGURATION (docker container listens on port 514)
123 |
124 | **# syslog-ng.conf**
125 |
126 | source s_local {
127 | internal();
128 | };
129 |
130 | source s_network {
131 | default-network-drivers(
132 | );
133 | };
134 |
135 | destination d_loki {
136 | syslog("promtail" transport("tcp") port("1514"));
137 | };
138 |
139 | log {
140 | source(s_local);
141 | source(s_network);
142 | destination(d_loki);
143 | };
144 |
145 | > Note: the above "`promtail`" configuration for `destination d_loki` is
146 | > the *hostname* where Promtail is running. Is this example, it happens
147 | > to be the Promtail *docker container* name that I configured for the
148 | > All-In-One example.
149 |
150 | #### PROMTAIL CONFIGURATION (docker container listens on port 1514)
151 |
152 | **# promtail-config.yml**
153 |
154 | server:
155 | http_listen_port: 9080
156 | grpc_listen_port: 0
157 |
158 | positions:
159 | filename: /tmp/positions.yaml
160 |
161 | clients:
162 | - url: http://loki:3100/loki/api/v1/push
163 |
164 | scrape_configs:
165 |
166 | - job_name: syslog
167 | syslog:
168 | listen_address: 0.0.0.0:1514
169 | idle_timeout: 60s
170 | label_structured_data: yes
171 | labels:
172 | job: "syslog"
173 | relabel_configs:
174 | - source_labels: ['__syslog_message_hostname']
175 | target_label: 'host'
176 |
177 | ## Contributing
178 |
179 | Contributions make the open source community such a fantastic place to learn, inspire, and create. Any contributions you make are greatly appreciated.
180 |
181 | - Fork the Project
182 | - Create your Feature Branch (git checkout -b feature/AmazingFeature)
183 | - Commit your Changes (git commit -m 'Add some AmazingFeature')
184 | - Push to the Branch (git push origin feature/AmazingFeature)
185 | - Open a Pull Request
186 |
187 | ## Contact
188 |
189 | Dave Schmid - [@lux4rd0](https://twitter.com/lux4rd0) - dave@pulpfree.org
190 |
191 | Project Link: https://github.com/lux4rd0/grafana-loki-syslog-aio
192 |
193 | ## Acknowledgements
194 |
195 | - Grafana Labs - https://grafana.com/
196 | - Grafana Loki - https://grafana.com/oss/loki/
197 | - Grafana - https://grafana.com/oss/grafana/
198 | - syslog-ng - https://www.syslog-ng.com/
199 | - Random Logger - https://github.com/chentex/random-logger
200 | - Grafana Dashboard Community (Performance Overviews) - https://grafana.com/grafana/dashboards
201 |
--------------------------------------------------------------------------------
/config/grafana/dashboards/no_folder/loki_syslog_aio_overview.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 | "target": {
12 | "limit": 100,
13 | "matchAny": false,
14 | "tags": [],
15 | "type": "dashboard"
16 | },
17 | "type": "dashboard"
18 | },
19 | {
20 | "datasource": "Loki",
21 | "enable": false,
22 | "expr": "{job=\"syslog\"} |=\"DNS request timed out\"",
23 | "hide": false,
24 | "iconColor": "#C4162A",
25 | "limit": 100,
26 | "name": "DNS Timeout",
27 | "showIn": 0,
28 | "tags": [],
29 | "target": {},
30 | "type": "tags"
31 | }
32 | ]
33 | },
34 | "editable": true,
35 | "gnetId": null,
36 | "graphTooltip": 0,
37 | "id": 9,
38 | "iteration": 1629593809615,
39 | "links": [
40 | {
41 | "asDropdown": true,
42 | "icon": "external link",
43 | "keepTime": true,
44 | "tags": [
45 | "performance_overview"
46 | ],
47 | "title": "Performance Overview",
48 | "type": "dashboards"
49 | }
50 | ],
51 | "panels": [
52 | {
53 | "datasource": "Loki",
54 | "fieldConfig": {
55 | "defaults": {
56 | "color": {
57 | "mode": "palette-classic"
58 | },
59 | "custom": {
60 | "axisLabel": "",
61 | "axisPlacement": "auto",
62 | "barAlignment": 0,
63 | "drawStyle": "line",
64 | "fillOpacity": 30,
65 | "gradientMode": "opacity",
66 | "hideFrom": {
67 | "legend": false,
68 | "tooltip": false,
69 | "viz": false
70 | },
71 | "lineInterpolation": "smooth",
72 | "lineWidth": 1,
73 | "pointSize": 5,
74 | "scaleDistribution": {
75 | "type": "linear"
76 | },
77 | "showPoints": "never",
78 | "spanNulls": true,
79 | "stacking": {
80 | "group": "A",
81 | "mode": "normal"
82 | },
83 | "thresholdsStyle": {
84 | "mode": "off"
85 | }
86 | },
87 | "mappings": [],
88 | "thresholds": {
89 | "mode": "absolute",
90 | "steps": [
91 | {
92 | "color": "green",
93 | "value": null
94 | },
95 | {
96 | "color": "red",
97 | "value": 80
98 | }
99 | ]
100 | },
101 | "unit": "short"
102 | },
103 | "overrides": []
104 | },
105 | "gridPos": {
106 | "h": 9,
107 | "w": 24,
108 | "x": 0,
109 | "y": 0
110 | },
111 | "id": 3,
112 | "interval": "$smooth",
113 | "options": {
114 | "legend": {
115 | "calcs": [
116 | "mean",
117 | "sum"
118 | ],
119 | "displayMode": "table",
120 | "placement": "right"
121 | },
122 | "tooltip": {
123 | "mode": "single"
124 | }
125 | },
126 | "pluginVersion": "8.1.2",
127 | "targets": [
128 | {
129 | "expr": "count_over_time({job=\"syslog\"}[$__interval])",
130 | "legendFormat": "{{host}}",
131 | "refId": "A"
132 | }
133 | ],
134 | "timeFrom": null,
135 | "timeShift": null,
136 | "title": "Log Line Counts By Host (Unfiltered)",
137 | "transformations": [],
138 | "type": "timeseries"
139 | },
140 | {
141 | "datasource": "Loki",
142 | "description": "",
143 | "fieldConfig": {
144 | "defaults": {
145 | "mappings": [],
146 | "thresholds": {
147 | "mode": "absolute",
148 | "steps": [
149 | {
150 | "color": "semi-dark-orange",
151 | "value": null
152 | }
153 | ]
154 | },
155 | "unit": "short"
156 | },
157 | "overrides": []
158 | },
159 | "gridPos": {
160 | "h": 12,
161 | "w": 24,
162 | "x": 0,
163 | "y": 9
164 | },
165 | "id": 4,
166 | "interval": "$smooth",
167 | "options": {
168 | "colorMode": "value",
169 | "graphMode": "area",
170 | "justifyMode": "center",
171 | "orientation": "auto",
172 | "reduceOptions": {
173 | "calcs": [
174 | "sum"
175 | ],
176 | "fields": "",
177 | "values": false
178 | },
179 | "text": {},
180 | "textMode": "auto"
181 | },
182 | "pluginVersion": "8.1.2",
183 | "targets": [
184 | {
185 | "expr": "count_over_time({host=~\"$host\", job=\"syslog\"} [$__interval] |~ \"$free_form_filter\" |~ \"$filter\")",
186 | "legendFormat": "{{host}}",
187 | "refId": "A"
188 | }
189 | ],
190 | "timeFrom": null,
191 | "timeShift": null,
192 | "title": "Counts By Host ($host) - \"$filter\" - \"$free_form_filter\" (Filtered)",
193 | "transformations": [],
194 | "type": "stat"
195 | },
196 | {
197 | "datasource": "Loki",
198 | "description": "",
199 | "gridPos": {
200 | "h": 10,
201 | "w": 24,
202 | "x": 0,
203 | "y": 21
204 | },
205 | "id": 5,
206 | "options": {
207 | "dedupStrategy": "none",
208 | "enableLogDetails": true,
209 | "prettifyLogMessage": false,
210 | "showCommonLabels": false,
211 | "showLabels": true,
212 | "showTime": true,
213 | "sortOrder": "Descending",
214 | "wrapLogMessage": true
215 | },
216 | "pluginVersion": "7.3.6",
217 | "targets": [
218 | {
219 | "expr": "{job=\"syslog\", host=~\"$host\"} |~ \"$free_form_filter\" |~ \"$filter\"",
220 | "legendFormat": "",
221 | "refId": "A"
222 | }
223 | ],
224 | "timeFrom": null,
225 | "timeShift": null,
226 | "title": "Logs By Host - \"$filter\" - \"$free_form_filter\" (Filtered)",
227 | "type": "logs"
228 | }
229 | ],
230 | "refresh": "30s",
231 | "schemaVersion": 30,
232 | "style": "dark",
233 | "tags": [
234 | "syslog"
235 | ],
236 | "templating": {
237 | "list": [
238 | {
239 | "allValue": null,
240 | "current": {
241 | "selected": true,
242 | "text": [
243 | "All"
244 | ],
245 | "value": [
246 | "$__all"
247 | ]
248 | },
249 | "datasource": "Loki",
250 | "definition": "label_values({job=\"syslog\"}, host)",
251 | "description": null,
252 | "error": null,
253 | "hide": 0,
254 | "includeAll": true,
255 | "label": "Host",
256 | "multi": true,
257 | "name": "host",
258 | "options": [],
259 | "query": "label_values({job=\"syslog\"}, host)",
260 | "refresh": 1,
261 | "regex": "",
262 | "skipUrlSync": false,
263 | "sort": 5,
264 | "tagValuesQuery": "",
265 | "type": "query"
266 | },
267 | {
268 | "allValue": null,
269 | "current": {
270 | "selected": true,
271 | "text": [
272 | "All"
273 | ],
274 | "value": [
275 | "$__all"
276 | ]
277 | },
278 | "description": null,
279 | "error": null,
280 | "hide": 0,
281 | "includeAll": true,
282 | "label": "Filter",
283 | "multi": true,
284 | "name": "filter",
285 | "options": [
286 | {
287 | "selected": true,
288 | "text": "All",
289 | "value": "$__all"
290 | },
291 | {
292 | "selected": false,
293 | "text": "info",
294 | "value": "info"
295 | },
296 | {
297 | "selected": false,
298 | "text": "debug",
299 | "value": "debug"
300 | },
301 | {
302 | "selected": false,
303 | "text": "warn",
304 | "value": "warn"
305 | },
306 | {
307 | "selected": false,
308 | "text": "error",
309 | "value": "error"
310 | },
311 | {
312 | "selected": false,
313 | "text": "ERR",
314 | "value": "ERR"
315 | },
316 | {
317 | "selected": false,
318 | "text": "DNS",
319 | "value": "DNS"
320 | },
321 | {
322 | "selected": false,
323 | "text": "auth_failures",
324 | "value": "auth_failures"
325 | },
326 | {
327 | "selected": false,
328 | "text": "wpa_auth_failures",
329 | "value": "wpa_auth_failures"
330 | }
331 | ],
332 | "query": "info,debug,warn,error,ERR,DNS,auth_failures,wpa_auth_failures",
333 | "queryValue": "",
334 | "skipUrlSync": false,
335 | "type": "custom"
336 | },
337 | {
338 | "current": {
339 | "selected": true,
340 | "text": "",
341 | "value": ""
342 | },
343 | "description": null,
344 | "error": null,
345 | "hide": 0,
346 | "label": "Free Form Filter",
347 | "name": "free_form_filter",
348 | "options": [
349 | {
350 | "selected": true,
351 | "text": "",
352 | "value": ""
353 | }
354 | ],
355 | "query": "",
356 | "skipUrlSync": false,
357 | "type": "textbox"
358 | },
359 | {
360 | "allValue": null,
361 | "current": {
362 | "selected": false,
363 | "text": "1m",
364 | "value": "1m"
365 | },
366 | "description": null,
367 | "error": null,
368 | "hide": 0,
369 | "includeAll": false,
370 | "label": "Smooth",
371 | "multi": false,
372 | "name": "smooth",
373 | "options": [
374 | {
375 | "selected": false,
376 | "text": "30s",
377 | "value": "30s"
378 | },
379 | {
380 | "selected": true,
381 | "text": "1m",
382 | "value": "1m"
383 | },
384 | {
385 | "selected": false,
386 | "text": "2m",
387 | "value": "2m"
388 | },
389 | {
390 | "selected": false,
391 | "text": "5m",
392 | "value": "5m"
393 | },
394 | {
395 | "selected": false,
396 | "text": "10m",
397 | "value": "10m"
398 | },
399 | {
400 | "selected": false,
401 | "text": "15m",
402 | "value": "15m"
403 | },
404 | {
405 | "selected": false,
406 | "text": "30m",
407 | "value": "30m"
408 | },
409 | {
410 | "selected": false,
411 | "text": "1h",
412 | "value": "1h"
413 | },
414 | {
415 | "selected": false,
416 | "text": "2h",
417 | "value": "2h"
418 | }
419 | ],
420 | "query": "30s,1m,2m,5m,10m,15m,30m,1h,2h",
421 | "queryValue": "",
422 | "skipUrlSync": false,
423 | "type": "custom"
424 | }
425 | ]
426 | },
427 | "time": {
428 | "from": "now-6h",
429 | "to": "now"
430 | },
431 | "timepicker": {},
432 | "timezone": "",
433 | "title": "Loki Syslog AIO - Overview",
434 | "uid": "lux4rd0labs_loki_syslog_aio_01",
435 | "version": 4
436 | }
--------------------------------------------------------------------------------
/config/grafana/dashboards/performance_overview/performance_overview_minio.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 | "target": {
12 | "limit": 100,
13 | "matchAny": false,
14 | "tags": [],
15 | "type": "dashboard"
16 | },
17 | "type": "dashboard"
18 | }
19 | ]
20 | },
21 | "description": "MinIO dashboard - https://min.io/",
22 | "editable": true,
23 | "gnetId": 13502,
24 | "graphTooltip": 0,
25 | "id": 14,
26 | "iteration": 1629593641926,
27 | "links": [
28 | {
29 | "asDropdown": true,
30 | "icon": "external link",
31 | "keepTime": true,
32 | "tags": [
33 | "performance_overview"
34 | ],
35 | "title": "Performance Overview",
36 | "type": "dashboards"
37 | },
38 | {
39 | "asDropdown": false,
40 | "icon": "external link",
41 | "includeVars": false,
42 | "keepTime": true,
43 | "tags": [
44 | "syslog"
45 | ],
46 | "title": "Syslog Overview",
47 | "type": "dashboards"
48 | }
49 | ],
50 | "panels": [
51 | {
52 | "collapsed": false,
53 | "datasource": "Prometheus",
54 | "gridPos": {
55 | "h": 1,
56 | "w": 24,
57 | "x": 0,
58 | "y": 0
59 | },
60 | "id": 24,
61 | "panels": [],
62 | "title": "Overview",
63 | "type": "row"
64 | },
65 | {
66 | "cacheTimeout": null,
67 | "datasource": "Prometheus",
68 | "description": "",
69 | "fieldConfig": {
70 | "defaults": {
71 | "mappings": [
72 | {
73 | "options": {
74 | "match": "null",
75 | "result": {
76 | "text": "N/A"
77 | }
78 | },
79 | "type": "special"
80 | }
81 | ],
82 | "thresholds": {
83 | "mode": "percentage",
84 | "steps": [
85 | {
86 | "color": "green",
87 | "value": null
88 | }
89 | ]
90 | },
91 | "unit": "dtdurations"
92 | },
93 | "overrides": []
94 | },
95 | "gridPos": {
96 | "h": 6,
97 | "w": 3,
98 | "x": 0,
99 | "y": 1
100 | },
101 | "id": 1,
102 | "interval": null,
103 | "links": [],
104 | "maxDataPoints": 100,
105 | "options": {
106 | "colorMode": "value",
107 | "graphMode": "none",
108 | "justifyMode": "auto",
109 | "orientation": "auto",
110 | "reduceOptions": {
111 | "calcs": [
112 | "mean"
113 | ],
114 | "fields": "",
115 | "values": false
116 | },
117 | "text": {},
118 | "textMode": "auto"
119 | },
120 | "pluginVersion": "8.1.2",
121 | "targets": [
122 | {
123 | "expr": "time() - max(process_start_time_seconds)",
124 | "format": "time_series",
125 | "instant": true,
126 | "interval": "",
127 | "intervalFactor": 1,
128 | "legendFormat": "{{instance}}",
129 | "metric": "process_start_time_seconds",
130 | "refId": "A",
131 | "step": 60
132 | }
133 | ],
134 | "timeFrom": null,
135 | "timeShift": null,
136 | "title": "Uptime",
137 | "type": "stat"
138 | },
139 | {
140 | "cacheTimeout": null,
141 | "datasource": "Prometheus",
142 | "description": "",
143 | "fieldConfig": {
144 | "defaults": {
145 | "mappings": [
146 | {
147 | "options": {
148 | "match": "null",
149 | "result": {
150 | "text": "N/A"
151 | }
152 | },
153 | "type": "special"
154 | }
155 | ],
156 | "thresholds": {
157 | "mode": "absolute",
158 | "steps": [
159 | {
160 | "color": "green",
161 | "value": null
162 | },
163 | {
164 | "color": "red",
165 | "value": 80
166 | }
167 | ]
168 | },
169 | "unit": "short"
170 | },
171 | "overrides": []
172 | },
173 | "gridPos": {
174 | "h": 3,
175 | "w": 3,
176 | "x": 3,
177 | "y": 1
178 | },
179 | "id": 9,
180 | "interval": null,
181 | "links": [],
182 | "maxDataPoints": 100,
183 | "options": {
184 | "colorMode": "value",
185 | "graphMode": "area",
186 | "justifyMode": "auto",
187 | "orientation": "auto",
188 | "reduceOptions": {
189 | "calcs": [
190 | "mean"
191 | ],
192 | "fields": "",
193 | "values": false
194 | },
195 | "text": {},
196 | "textMode": "auto"
197 | },
198 | "pluginVersion": "8.1.2",
199 | "targets": [
200 | {
201 | "expr": "sum(minio_disks_total)",
202 | "format": "table",
203 | "hide": false,
204 | "instant": true,
205 | "interval": "",
206 | "intervalFactor": 1,
207 | "legendFormat": "Total online disks in MinIO Cluster",
208 | "metric": "process_start_time_seconds",
209 | "refId": "A",
210 | "step": 60
211 | }
212 | ],
213 | "timeFrom": null,
214 | "timeShift": null,
215 | "title": "Total Online disks",
216 | "type": "stat"
217 | },
218 | {
219 | "cacheTimeout": null,
220 | "datasource": "Prometheus",
221 | "fieldConfig": {
222 | "defaults": {
223 | "mappings": [
224 | {
225 | "options": {
226 | "match": "null",
227 | "result": {
228 | "text": "N/A"
229 | }
230 | },
231 | "type": "special"
232 | }
233 | ],
234 | "thresholds": {
235 | "mode": "absolute",
236 | "steps": [
237 | {
238 | "color": "rgba(255, 255, 255, 0.97)",
239 | "value": null
240 | }
241 | ]
242 | },
243 | "unit": "decbytes"
244 | },
245 | "overrides": []
246 | },
247 | "gridPos": {
248 | "h": 6,
249 | "w": 3,
250 | "x": 6,
251 | "y": 1
252 | },
253 | "id": 50,
254 | "interval": "1m",
255 | "links": [],
256 | "maxDataPoints": 100,
257 | "options": {
258 | "orientation": "horizontal",
259 | "reduceOptions": {
260 | "calcs": [
261 | "lastNotNull"
262 | ],
263 | "fields": "",
264 | "values": false
265 | },
266 | "showThresholdLabels": false,
267 | "showThresholdMarkers": true,
268 | "text": {}
269 | },
270 | "pluginVersion": "8.1.2",
271 | "targets": [
272 | {
273 | "expr": "sum without (bucket,instance) (bucket_usage_size)",
274 | "format": "time_series",
275 | "instant": false,
276 | "interval": "1m",
277 | "intervalFactor": 1,
278 | "legendFormat": "",
279 | "refId": "A",
280 | "step": 300
281 | }
282 | ],
283 | "timeFrom": null,
284 | "timeShift": null,
285 | "title": "Total Data",
286 | "type": "gauge"
287 | },
288 | {
289 | "datasource": "Prometheus",
290 | "fieldConfig": {
291 | "defaults": {
292 | "color": {
293 | "mode": "palette-classic"
294 | },
295 | "custom": {
296 | "axisLabel": "",
297 | "axisPlacement": "auto",
298 | "barAlignment": 0,
299 | "drawStyle": "line",
300 | "fillOpacity": 30,
301 | "gradientMode": "opacity",
302 | "hideFrom": {
303 | "legend": false,
304 | "tooltip": false,
305 | "viz": false
306 | },
307 | "lineInterpolation": "smooth",
308 | "lineWidth": 1,
309 | "pointSize": 5,
310 | "scaleDistribution": {
311 | "type": "linear"
312 | },
313 | "showPoints": "never",
314 | "spanNulls": true,
315 | "stacking": {
316 | "group": "A",
317 | "mode": "none"
318 | },
319 | "thresholdsStyle": {
320 | "mode": "off"
321 | }
322 | },
323 | "mappings": [],
324 | "thresholds": {
325 | "mode": "absolute",
326 | "steps": [
327 | {
328 | "color": "green",
329 | "value": null
330 | }
331 | ]
332 | },
333 | "unit": "decbytes"
334 | },
335 | "overrides": []
336 | },
337 | "gridPos": {
338 | "h": 6,
339 | "w": 7,
340 | "x": 9,
341 | "y": 1
342 | },
343 | "id": 68,
344 | "options": {
345 | "legend": {
346 | "calcs": [
347 | "max",
348 | "min"
349 | ],
350 | "displayMode": "list",
351 | "placement": "bottom"
352 | },
353 | "tooltip": {
354 | "mode": "multi"
355 | }
356 | },
357 | "pluginVersion": "8.1.2",
358 | "targets": [
359 | {
360 | "expr": "sum without (bucket,instance) (bucket_usage_size)",
361 | "interval": "",
362 | "legendFormat": "Total Storage Used",
363 | "refId": "A"
364 | }
365 | ],
366 | "timeFrom": null,
367 | "timeShift": null,
368 | "title": "Data Growth",
369 | "type": "timeseries"
370 | },
371 | {
372 | "datasource": "Prometheus",
373 | "fieldConfig": {
374 | "defaults": {
375 | "color": {
376 | "mode": "continuous-GrYlRd"
377 | },
378 | "mappings": [],
379 | "thresholds": {
380 | "mode": "absolute",
381 | "steps": [
382 | {
383 | "color": "green",
384 | "value": null
385 | }
386 | ]
387 | }
388 | },
389 | "overrides": []
390 | },
391 | "gridPos": {
392 | "h": 6,
393 | "w": 8,
394 | "x": 16,
395 | "y": 1
396 | },
397 | "id": 52,
398 | "links": [],
399 | "options": {
400 | "displayMode": "gradient",
401 | "orientation": "horizontal",
402 | "reduceOptions": {
403 | "calcs": [
404 | "mean"
405 | ],
406 | "fields": "",
407 | "values": false
408 | },
409 | "showUnfilled": true,
410 | "text": {}
411 | },
412 | "pluginVersion": "8.1.2",
413 | "targets": [
414 | {
415 | "expr": "sum without (instance,bucket) (bucket_objects_histogram)",
416 | "format": "time_series",
417 | "instant": false,
418 | "interval": "",
419 | "intervalFactor": 1,
420 | "legendFormat": "{{object_size}}",
421 | "refId": "A",
422 | "step": 300
423 | }
424 | ],
425 | "timeFrom": null,
426 | "timeShift": null,
427 | "title": "Object size distribution",
428 | "type": "bargauge"
429 | },
430 | {
431 | "cacheTimeout": null,
432 | "datasource": "Prometheus",
433 | "description": "",
434 | "fieldConfig": {
435 | "defaults": {
436 | "color": {
437 | "mode": "thresholds"
438 | },
439 | "mappings": [
440 | {
441 | "options": {
442 | "match": "null",
443 | "result": {
444 | "text": "N/A"
445 | }
446 | },
447 | "type": "special"
448 | }
449 | ],
450 | "thresholds": {
451 | "mode": "absolute",
452 | "steps": [
453 | {
454 | "color": "rgba(50, 172, 45, 0.97)",
455 | "value": null
456 | },
457 | {
458 | "color": "rgba(237, 129, 40, 0.89)",
459 | "value": 1
460 | },
461 | {
462 | "color": "rgba(245, 54, 54, 0.9)",
463 | "value": 2
464 | }
465 | ]
466 | },
467 | "unit": "short"
468 | },
469 | "overrides": []
470 | },
471 | "gridPos": {
472 | "h": 3,
473 | "w": 3,
474 | "x": 3,
475 | "y": 4
476 | },
477 | "id": 10,
478 | "interval": null,
479 | "links": [],
480 | "maxDataPoints": 100,
481 | "options": {
482 | "colorMode": "value",
483 | "graphMode": "area",
484 | "justifyMode": "auto",
485 | "orientation": "horizontal",
486 | "reduceOptions": {
487 | "calcs": [
488 | "mean"
489 | ],
490 | "fields": "",
491 | "values": false
492 | },
493 | "text": {},
494 | "textMode": "auto"
495 | },
496 | "pluginVersion": "8.1.2",
497 | "targets": [
498 | {
499 | "expr": "sum(minio_disks_offline)",
500 | "format": "time_series",
501 | "instant": true,
502 | "interval": "",
503 | "intervalFactor": 2,
504 | "legendFormat": "Total offline disks in MinIO Cluster",
505 | "metric": "process_start_time_seconds",
506 | "refId": "A",
507 | "step": 60
508 | }
509 | ],
510 | "title": "Total Offline disks",
511 | "type": "stat"
512 | },
513 | {
514 | "cacheTimeout": null,
515 | "datasource": "Prometheus",
516 | "description": "",
517 | "fieldConfig": {
518 | "defaults": {
519 | "mappings": [
520 | {
521 | "options": {
522 | "match": "null",
523 | "result": {
524 | "text": "N/A"
525 | }
526 | },
527 | "type": "special"
528 | }
529 | ],
530 | "thresholds": {
531 | "mode": "absolute",
532 | "steps": [
533 | {
534 | "color": "green",
535 | "value": null
536 | },
537 | {
538 | "color": "red",
539 | "value": 80
540 | }
541 | ]
542 | },
543 | "unit": "short"
544 | },
545 | "overrides": []
546 | },
547 | "gridPos": {
548 | "h": 3,
549 | "w": 3,
550 | "x": 0,
551 | "y": 7
552 | },
553 | "id": 53,
554 | "interval": null,
555 | "links": [],
556 | "maxDataPoints": 100,
557 | "options": {
558 | "colorMode": "value",
559 | "graphMode": "area",
560 | "justifyMode": "auto",
561 | "orientation": "auto",
562 | "reduceOptions": {
563 | "calcs": [
564 | "mean"
565 | ],
566 | "fields": "",
567 | "values": false
568 | },
569 | "text": {},
570 | "textMode": "auto"
571 | },
572 | "pluginVersion": "8.1.2",
573 | "targets": [
574 | {
575 | "expr": "count(count by (instances) (minio_version_info))",
576 | "format": "table",
577 | "hide": false,
578 | "instant": true,
579 | "interval": "",
580 | "intervalFactor": 1,
581 | "legendFormat": "",
582 | "metric": "process_start_time_seconds",
583 | "refId": "A",
584 | "step": 60
585 | }
586 | ],
587 | "timeFrom": null,
588 | "timeShift": null,
589 | "title": "Total Online Servers",
590 | "type": "stat"
591 | },
592 | {
593 | "cacheTimeout": null,
594 | "datasource": "Prometheus",
595 | "description": "",
596 | "fieldConfig": {
597 | "defaults": {
598 | "mappings": [
599 | {
600 | "options": {
601 | "match": "null",
602 | "result": {
603 | "text": "N/A"
604 | }
605 | },
606 | "type": "special"
607 | }
608 | ],
609 | "thresholds": {
610 | "mode": "absolute",
611 | "steps": [
612 | {
613 | "color": "green",
614 | "value": null
615 | }
616 | ]
617 | },
618 | "unit": "decbytes"
619 | },
620 | "overrides": []
621 | },
622 | "gridPos": {
623 | "h": 3,
624 | "w": 3,
625 | "x": 3,
626 | "y": 7
627 | },
628 | "id": 65,
629 | "interval": null,
630 | "links": [],
631 | "maxDataPoints": 100,
632 | "options": {
633 | "colorMode": "value",
634 | "graphMode": "area",
635 | "justifyMode": "auto",
636 | "orientation": "auto",
637 | "reduceOptions": {
638 | "calcs": [
639 | "mean"
640 | ],
641 | "fields": "",
642 | "values": false
643 | },
644 | "text": {},
645 | "textMode": "auto"
646 | },
647 | "pluginVersion": "8.1.2",
648 | "targets": [
649 | {
650 | "expr": "sum without (instance) (s3_rx_bytes_total)",
651 | "format": "table",
652 | "hide": false,
653 | "instant": false,
654 | "interval": "",
655 | "intervalFactor": 1,
656 | "legendFormat": "",
657 | "metric": "process_start_time_seconds",
658 | "refId": "A",
659 | "step": 60
660 | }
661 | ],
662 | "timeFrom": null,
663 | "timeShift": null,
664 | "title": "Total S3 Traffic Inbound",
665 | "type": "stat"
666 | },
667 | {
668 | "cacheTimeout": null,
669 | "datasource": "Prometheus",
670 | "fieldConfig": {
671 | "defaults": {
672 | "mappings": [
673 | {
674 | "options": {
675 | "match": "null",
676 | "result": {
677 | "text": "N/A"
678 | }
679 | },
680 | "type": "special"
681 | }
682 | ],
683 | "thresholds": {
684 | "mode": "absolute",
685 | "steps": [
686 | {
687 | "color": "green",
688 | "value": null
689 | },
690 | {
691 | "color": "dark-yellow",
692 | "value": 75000000
693 | },
694 | {
695 | "color": "dark-red",
696 | "value": 100000000
697 | }
698 | ]
699 | },
700 | "unit": "short"
701 | },
702 | "overrides": []
703 | },
704 | "gridPos": {
705 | "h": 3,
706 | "w": 3,
707 | "x": 6,
708 | "y": 7
709 | },
710 | "id": 66,
711 | "interval": null,
712 | "links": [],
713 | "maxDataPoints": 100,
714 | "options": {
715 | "colorMode": "value",
716 | "graphMode": "area",
717 | "justifyMode": "auto",
718 | "orientation": "horizontal",
719 | "reduceOptions": {
720 | "calcs": [
721 | "lastNotNull"
722 | ],
723 | "fields": "",
724 | "values": false
725 | },
726 | "text": {},
727 | "textMode": "auto"
728 | },
729 | "pluginVersion": "8.1.2",
730 | "targets": [
731 | {
732 | "expr": "count(count by (bucket) (bucket_objects_count))",
733 | "format": "time_series",
734 | "instant": false,
735 | "interval": "1m",
736 | "intervalFactor": 1,
737 | "legendFormat": "",
738 | "refId": "A"
739 | }
740 | ],
741 | "title": "Number of Buckets",
742 | "type": "stat"
743 | },
744 | {
745 | "datasource": "Prometheus",
746 | "fieldConfig": {
747 | "defaults": {
748 | "color": {
749 | "mode": "palette-classic"
750 | },
751 | "custom": {
752 | "axisLabel": "",
753 | "axisPlacement": "auto",
754 | "barAlignment": 0,
755 | "drawStyle": "line",
756 | "fillOpacity": 30,
757 | "gradientMode": "opacity",
758 | "hideFrom": {
759 | "legend": false,
760 | "tooltip": false,
761 | "viz": false
762 | },
763 | "lineInterpolation": "smooth",
764 | "lineWidth": 1,
765 | "pointSize": 5,
766 | "scaleDistribution": {
767 | "type": "linear"
768 | },
769 | "showPoints": "never",
770 | "spanNulls": false,
771 | "stacking": {
772 | "group": "A",
773 | "mode": "none"
774 | },
775 | "thresholdsStyle": {
776 | "mode": "off"
777 | }
778 | },
779 | "mappings": [],
780 | "thresholds": {
781 | "mode": "absolute",
782 | "steps": [
783 | {
784 | "color": "green",
785 | "value": null
786 | },
787 | {
788 | "color": "red",
789 | "value": 80
790 | }
791 | ]
792 | },
793 | "unit": "short"
794 | },
795 | "overrides": [
796 | {
797 | "matcher": {
798 | "id": "byName",
799 | "options": "S3 Errors"
800 | },
801 | "properties": [
802 | {
803 | "id": "color",
804 | "value": {
805 | "fixedColor": "light-red",
806 | "mode": "fixed"
807 | }
808 | }
809 | ]
810 | },
811 | {
812 | "matcher": {
813 | "id": "byName",
814 | "options": "S3 Requests"
815 | },
816 | "properties": [
817 | {
818 | "id": "color",
819 | "value": {
820 | "fixedColor": "light-green",
821 | "mode": "fixed"
822 | }
823 | }
824 | ]
825 | }
826 | ]
827 | },
828 | "gridPos": {
829 | "h": 6,
830 | "w": 12,
831 | "x": 9,
832 | "y": 7
833 | },
834 | "id": 60,
835 | "options": {
836 | "legend": {
837 | "calcs": [],
838 | "displayMode": "list",
839 | "placement": "bottom"
840 | },
841 | "tooltip": {
842 | "mode": "multi"
843 | }
844 | },
845 | "pluginVersion": "8.1.2",
846 | "targets": [
847 | {
848 | "expr": "sum without (instance,api)(rate(s3_requests_total[10m]))",
849 | "interval": "1m",
850 | "intervalFactor": 2,
851 | "legendFormat": "S3 Requests",
852 | "refId": "A"
853 | },
854 | {
855 | "expr": "sum without (instance,api)(rate(s3_errors_total[10m]))",
856 | "interval": "1m",
857 | "intervalFactor": 2,
858 | "legendFormat": "S3 Errors",
859 | "refId": "B"
860 | }
861 | ],
862 | "timeFrom": null,
863 | "timeShift": null,
864 | "title": "S3 API Request & Error Rate",
865 | "type": "timeseries"
866 | },
867 | {
868 | "cacheTimeout": null,
869 | "datasource": "Prometheus",
870 | "description": "",
871 | "fieldConfig": {
872 | "defaults": {
873 | "mappings": [
874 | {
875 | "options": {
876 | "match": "null",
877 | "result": {
878 | "text": "N/A"
879 | }
880 | },
881 | "type": "special"
882 | }
883 | ],
884 | "thresholds": {
885 | "mode": "absolute",
886 | "steps": [
887 | {
888 | "color": "green",
889 | "value": null
890 | },
891 | {
892 | "color": "red",
893 | "value": 80
894 | }
895 | ]
896 | },
897 | "unit": "short"
898 | },
899 | "overrides": []
900 | },
901 | "gridPos": {
902 | "h": 3,
903 | "w": 3,
904 | "x": 21,
905 | "y": 7
906 | },
907 | "id": 61,
908 | "interval": null,
909 | "links": [],
910 | "maxDataPoints": 100,
911 | "options": {
912 | "colorMode": "value",
913 | "graphMode": "none",
914 | "justifyMode": "auto",
915 | "orientation": "auto",
916 | "reduceOptions": {
917 | "calcs": [
918 | "mean"
919 | ],
920 | "fields": "",
921 | "values": false
922 | },
923 | "text": {},
924 | "textMode": "auto"
925 | },
926 | "pluginVersion": "8.1.2",
927 | "targets": [
928 | {
929 | "expr": "sum without (instance)(process_open_fds)",
930 | "format": "table",
931 | "hide": false,
932 | "instant": false,
933 | "interval": "",
934 | "intervalFactor": 1,
935 | "legendFormat": "",
936 | "metric": "process_start_time_seconds",
937 | "refId": "A",
938 | "step": 60
939 | }
940 | ],
941 | "timeFrom": null,
942 | "timeShift": null,
943 | "title": "Total Open FDs",
944 | "type": "stat"
945 | },
946 | {
947 | "cacheTimeout": null,
948 | "datasource": "Prometheus",
949 | "description": "",
950 | "fieldConfig": {
951 | "defaults": {
952 | "mappings": [
953 | {
954 | "options": {
955 | "match": "null",
956 | "result": {
957 | "text": "N/A"
958 | }
959 | },
960 | "type": "special"
961 | }
962 | ],
963 | "thresholds": {
964 | "mode": "absolute",
965 | "steps": [
966 | {
967 | "color": "green",
968 | "value": null
969 | },
970 | {
971 | "color": "red",
972 | "value": 80
973 | }
974 | ]
975 | },
976 | "unit": "short"
977 | },
978 | "overrides": []
979 | },
980 | "gridPos": {
981 | "h": 3,
982 | "w": 3,
983 | "x": 0,
984 | "y": 10
985 | },
986 | "id": 57,
987 | "interval": null,
988 | "links": [],
989 | "maxDataPoints": 100,
990 | "options": {
991 | "colorMode": "value",
992 | "graphMode": "none",
993 | "justifyMode": "auto",
994 | "orientation": "auto",
995 | "reduceOptions": {
996 | "calcs": [
997 | "last"
998 | ],
999 | "fields": "",
1000 | "values": false
1001 | },
1002 | "text": {},
1003 | "textMode": "auto"
1004 | },
1005 | "pluginVersion": "8.1.2",
1006 | "targets": [
1007 | {
1008 | "expr": "",
1009 | "format": "table",
1010 | "hide": false,
1011 | "instant": false,
1012 | "interval": "",
1013 | "intervalFactor": 1,
1014 | "legendFormat": "",
1015 | "metric": "process_start_time_seconds",
1016 | "refId": "A",
1017 | "step": 60
1018 | }
1019 | ],
1020 | "timeFrom": null,
1021 | "timeShift": null,
1022 | "title": "Total Offline Servers",
1023 | "type": "stat"
1024 | },
1025 | {
1026 | "cacheTimeout": null,
1027 | "datasource": "Prometheus",
1028 | "description": "",
1029 | "fieldConfig": {
1030 | "defaults": {
1031 | "mappings": [
1032 | {
1033 | "options": {
1034 | "match": "null",
1035 | "result": {
1036 | "text": "N/A"
1037 | }
1038 | },
1039 | "type": "special"
1040 | }
1041 | ],
1042 | "thresholds": {
1043 | "mode": "absolute",
1044 | "steps": [
1045 | {
1046 | "color": "green",
1047 | "value": null
1048 | }
1049 | ]
1050 | },
1051 | "unit": "decbytes"
1052 | },
1053 | "overrides": []
1054 | },
1055 | "gridPos": {
1056 | "h": 3,
1057 | "w": 3,
1058 | "x": 3,
1059 | "y": 10
1060 | },
1061 | "id": 64,
1062 | "interval": null,
1063 | "links": [],
1064 | "maxDataPoints": 100,
1065 | "options": {
1066 | "colorMode": "value",
1067 | "graphMode": "area",
1068 | "justifyMode": "auto",
1069 | "orientation": "auto",
1070 | "reduceOptions": {
1071 | "calcs": [
1072 | "mean"
1073 | ],
1074 | "fields": "",
1075 | "values": false
1076 | },
1077 | "text": {},
1078 | "textMode": "auto"
1079 | },
1080 | "pluginVersion": "8.1.2",
1081 | "targets": [
1082 | {
1083 | "expr": "sum without (instance)(s3_tx_bytes_total)",
1084 | "format": "table",
1085 | "hide": false,
1086 | "instant": false,
1087 | "interval": "",
1088 | "intervalFactor": 1,
1089 | "legendFormat": "",
1090 | "metric": "process_start_time_seconds",
1091 | "refId": "A",
1092 | "step": 60
1093 | }
1094 | ],
1095 | "timeFrom": null,
1096 | "timeShift": null,
1097 | "title": "Total S3 Traffic Outbound",
1098 | "type": "stat"
1099 | },
1100 | {
1101 | "cacheTimeout": null,
1102 | "datasource": "Prometheus",
1103 | "fieldConfig": {
1104 | "defaults": {
1105 | "mappings": [
1106 | {
1107 | "options": {
1108 | "match": "null",
1109 | "result": {
1110 | "text": "N/A"
1111 | }
1112 | },
1113 | "type": "special"
1114 | }
1115 | ],
1116 | "thresholds": {
1117 | "mode": "absolute",
1118 | "steps": [
1119 | {
1120 | "color": "green",
1121 | "value": null
1122 | },
1123 | {
1124 | "color": "dark-yellow",
1125 | "value": 75000000
1126 | },
1127 | {
1128 | "color": "dark-red",
1129 | "value": 100000000
1130 | }
1131 | ]
1132 | },
1133 | "unit": "short"
1134 | },
1135 | "overrides": []
1136 | },
1137 | "gridPos": {
1138 | "h": 3,
1139 | "w": 3,
1140 | "x": 6,
1141 | "y": 10
1142 | },
1143 | "id": 44,
1144 | "interval": null,
1145 | "links": [],
1146 | "maxDataPoints": 100,
1147 | "options": {
1148 | "colorMode": "value",
1149 | "graphMode": "area",
1150 | "justifyMode": "auto",
1151 | "orientation": "horizontal",
1152 | "reduceOptions": {
1153 | "calcs": [
1154 | "lastNotNull"
1155 | ],
1156 | "fields": "",
1157 | "values": false
1158 | },
1159 | "text": {},
1160 | "textMode": "auto"
1161 | },
1162 | "pluginVersion": "8.1.2",
1163 | "targets": [
1164 | {
1165 | "expr": "sum(bucket_objects_count)",
1166 | "format": "time_series",
1167 | "instant": false,
1168 | "interval": "1m",
1169 | "intervalFactor": 1,
1170 | "legendFormat": "",
1171 | "refId": "A"
1172 | }
1173 | ],
1174 | "title": "Number of Objects",
1175 | "type": "stat"
1176 | },
1177 | {
1178 | "cacheTimeout": null,
1179 | "datasource": "Prometheus",
1180 | "description": "",
1181 | "fieldConfig": {
1182 | "defaults": {
1183 | "mappings": [
1184 | {
1185 | "options": {
1186 | "match": "null",
1187 | "result": {
1188 | "text": "N/A"
1189 | }
1190 | },
1191 | "type": "special"
1192 | }
1193 | ],
1194 | "thresholds": {
1195 | "mode": "absolute",
1196 | "steps": [
1197 | {
1198 | "color": "green",
1199 | "value": null
1200 | },
1201 | {
1202 | "color": "red",
1203 | "value": 80
1204 | }
1205 | ]
1206 | },
1207 | "unit": "short"
1208 | },
1209 | "overrides": []
1210 | },
1211 | "gridPos": {
1212 | "h": 3,
1213 | "w": 3,
1214 | "x": 21,
1215 | "y": 10
1216 | },
1217 | "id": 62,
1218 | "interval": null,
1219 | "links": [],
1220 | "maxDataPoints": 100,
1221 | "options": {
1222 | "colorMode": "value",
1223 | "graphMode": "none",
1224 | "justifyMode": "auto",
1225 | "orientation": "auto",
1226 | "reduceOptions": {
1227 | "calcs": [
1228 | "mean"
1229 | ],
1230 | "fields": "",
1231 | "values": false
1232 | },
1233 | "text": {},
1234 | "textMode": "auto"
1235 | },
1236 | "pluginVersion": "8.1.2",
1237 | "targets": [
1238 | {
1239 | "expr": "sum without (instance) (go_goroutines)",
1240 | "format": "table",
1241 | "hide": false,
1242 | "instant": false,
1243 | "interval": "",
1244 | "intervalFactor": 1,
1245 | "legendFormat": "",
1246 | "metric": "process_start_time_seconds",
1247 | "refId": "A",
1248 | "step": 60
1249 | }
1250 | ],
1251 | "timeFrom": null,
1252 | "timeShift": null,
1253 | "title": "Total Goroutines",
1254 | "type": "stat"
1255 | },
1256 | {
1257 | "datasource": "Prometheus",
1258 | "fieldConfig": {
1259 | "defaults": {
1260 | "color": {
1261 | "mode": "palette-classic"
1262 | },
1263 | "custom": {
1264 | "axisLabel": "",
1265 | "axisPlacement": "auto",
1266 | "barAlignment": 0,
1267 | "drawStyle": "line",
1268 | "fillOpacity": 30,
1269 | "gradientMode": "opacity",
1270 | "hideFrom": {
1271 | "legend": false,
1272 | "tooltip": false,
1273 | "viz": false
1274 | },
1275 | "lineInterpolation": "smooth",
1276 | "lineWidth": 1,
1277 | "pointSize": 5,
1278 | "scaleDistribution": {
1279 | "type": "linear"
1280 | },
1281 | "showPoints": "never",
1282 | "spanNulls": true,
1283 | "stacking": {
1284 | "group": "A",
1285 | "mode": "none"
1286 | },
1287 | "thresholdsStyle": {
1288 | "mode": "off"
1289 | }
1290 | },
1291 | "mappings": [],
1292 | "thresholds": {
1293 | "mode": "absolute",
1294 | "steps": [
1295 | {
1296 | "color": "green",
1297 | "value": null
1298 | },
1299 | {
1300 | "color": "red",
1301 | "value": 80
1302 | }
1303 | ]
1304 | },
1305 | "unit": "bytes"
1306 | },
1307 | "overrides": [
1308 | {
1309 | "matcher": {
1310 | "id": "byName",
1311 | "options": "S3 Errors"
1312 | },
1313 | "properties": [
1314 | {
1315 | "id": "color",
1316 | "value": {
1317 | "fixedColor": "light-red",
1318 | "mode": "fixed"
1319 | }
1320 | }
1321 | ]
1322 | },
1323 | {
1324 | "matcher": {
1325 | "id": "byName",
1326 | "options": "S3 Requests"
1327 | },
1328 | "properties": [
1329 | {
1330 | "id": "color",
1331 | "value": {
1332 | "fixedColor": "light-green",
1333 | "mode": "fixed"
1334 | }
1335 | }
1336 | ]
1337 | }
1338 | ]
1339 | },
1340 | "gridPos": {
1341 | "h": 6,
1342 | "w": 24,
1343 | "x": 0,
1344 | "y": 13
1345 | },
1346 | "id": 63,
1347 | "options": {
1348 | "legend": {
1349 | "calcs": [],
1350 | "displayMode": "list",
1351 | "placement": "bottom"
1352 | },
1353 | "tooltip": {
1354 | "mode": "multi"
1355 | }
1356 | },
1357 | "pluginVersion": "8.1.2",
1358 | "targets": [
1359 | {
1360 | "expr": "sum without (instance,api)(rate(s3_tx_bytes_total[5m]))",
1361 | "interval": "1m",
1362 | "intervalFactor": 2,
1363 | "legendFormat": "S3 Data Sent",
1364 | "refId": "A"
1365 | },
1366 | {
1367 | "expr": "sum without (instance,api)(rate(s3_rx_bytes_total[5m]))",
1368 | "interval": "1m",
1369 | "intervalFactor": 2,
1370 | "legendFormat": "S3 Data Received",
1371 | "refId": "B"
1372 | }
1373 | ],
1374 | "timeFrom": null,
1375 | "timeShift": null,
1376 | "title": "S3 API Data Transfer",
1377 | "type": "timeseries"
1378 | },
1379 | {
1380 | "collapsed": false,
1381 | "datasource": "Prometheus",
1382 | "gridPos": {
1383 | "h": 1,
1384 | "w": 24,
1385 | "x": 0,
1386 | "y": 19
1387 | },
1388 | "id": 34,
1389 | "panels": [],
1390 | "title": "API ",
1391 | "type": "row"
1392 | },
1393 | {
1394 | "datasource": "Prometheus",
1395 | "description": "Total number of s3 bytes received and sent per MinIO server instance",
1396 | "fieldConfig": {
1397 | "defaults": {
1398 | "color": {
1399 | "mode": "palette-classic"
1400 | },
1401 | "custom": {
1402 | "axisLabel": "",
1403 | "axisPlacement": "auto",
1404 | "barAlignment": 0,
1405 | "drawStyle": "line",
1406 | "fillOpacity": 30,
1407 | "gradientMode": "opacity",
1408 | "hideFrom": {
1409 | "legend": false,
1410 | "tooltip": false,
1411 | "viz": false
1412 | },
1413 | "lineInterpolation": "smooth",
1414 | "lineWidth": 1,
1415 | "pointSize": 5,
1416 | "scaleDistribution": {
1417 | "type": "linear"
1418 | },
1419 | "showPoints": "never",
1420 | "spanNulls": true,
1421 | "stacking": {
1422 | "group": "A",
1423 | "mode": "none"
1424 | },
1425 | "thresholdsStyle": {
1426 | "mode": "off"
1427 | }
1428 | },
1429 | "links": [],
1430 | "mappings": [],
1431 | "thresholds": {
1432 | "mode": "absolute",
1433 | "steps": [
1434 | {
1435 | "color": "green",
1436 | "value": null
1437 | },
1438 | {
1439 | "color": "red",
1440 | "value": 80
1441 | }
1442 | ]
1443 | },
1444 | "unit": "bytes"
1445 | },
1446 | "overrides": [
1447 | {
1448 | "matcher": {
1449 | "id": "byName",
1450 | "options": "10.13.1.25:9000 DELETE"
1451 | },
1452 | "properties": [
1453 | {
1454 | "id": "color",
1455 | "value": {
1456 | "fixedColor": "red",
1457 | "mode": "fixed"
1458 | }
1459 | }
1460 | ]
1461 | },
1462 | {
1463 | "matcher": {
1464 | "id": "byName",
1465 | "options": "10.13.1.25:9000 GET"
1466 | },
1467 | "properties": [
1468 | {
1469 | "id": "color",
1470 | "value": {
1471 | "fixedColor": "green",
1472 | "mode": "fixed"
1473 | }
1474 | }
1475 | ]
1476 | },
1477 | {
1478 | "matcher": {
1479 | "id": "byName",
1480 | "options": "10.13.1.25:9000 POST"
1481 | },
1482 | "properties": [
1483 | {
1484 | "id": "color",
1485 | "value": {
1486 | "fixedColor": "blue",
1487 | "mode": "fixed"
1488 | }
1489 | }
1490 | ]
1491 | }
1492 | ]
1493 | },
1494 | "gridPos": {
1495 | "h": 8,
1496 | "w": 12,
1497 | "x": 0,
1498 | "y": 20
1499 | },
1500 | "id": 7,
1501 | "links": [],
1502 | "options": {
1503 | "legend": {
1504 | "calcs": [],
1505 | "displayMode": "list",
1506 | "placement": "bottom"
1507 | },
1508 | "tooltip": {
1509 | "mode": "multi"
1510 | }
1511 | },
1512 | "pluginVersion": "8.1.2",
1513 | "targets": [
1514 | {
1515 | "expr": "sum without (instance) (s3_rx_bytes_total)",
1516 | "format": "time_series",
1517 | "interval": "",
1518 | "intervalFactor": 2,
1519 | "legendFormat": "S3 Bytes Received {{instance}}",
1520 | "metric": "minio_http_requests_duration_seconds_count",
1521 | "refId": "A",
1522 | "step": 4
1523 | },
1524 | {
1525 | "expr": "sum without (instance) (s3_tx_bytes_total)",
1526 | "interval": "",
1527 | "legendFormat": "S3 Bytes Sent {{instance}}",
1528 | "refId": "B"
1529 | }
1530 | ],
1531 | "timeFrom": null,
1532 | "timeShift": null,
1533 | "title": "Total S3 API Data Transfer",
1534 | "type": "timeseries"
1535 | },
1536 | {
1537 | "datasource": "Prometheus",
1538 | "description": "Total number of active s3 requests in current MinIO instance",
1539 | "fieldConfig": {
1540 | "defaults": {
1541 | "color": {
1542 | "mode": "palette-classic"
1543 | },
1544 | "custom": {
1545 | "axisLabel": "",
1546 | "axisPlacement": "auto",
1547 | "barAlignment": 0,
1548 | "drawStyle": "line",
1549 | "fillOpacity": 30,
1550 | "gradientMode": "opacity",
1551 | "hideFrom": {
1552 | "legend": false,
1553 | "tooltip": false,
1554 | "viz": false
1555 | },
1556 | "lineInterpolation": "smooth",
1557 | "lineWidth": 1,
1558 | "pointSize": 5,
1559 | "scaleDistribution": {
1560 | "type": "linear"
1561 | },
1562 | "showPoints": "never",
1563 | "spanNulls": true,
1564 | "stacking": {
1565 | "group": "A",
1566 | "mode": "none"
1567 | },
1568 | "thresholdsStyle": {
1569 | "mode": "off"
1570 | }
1571 | },
1572 | "links": [],
1573 | "mappings": [],
1574 | "thresholds": {
1575 | "mode": "absolute",
1576 | "steps": [
1577 | {
1578 | "color": "green",
1579 | "value": null
1580 | },
1581 | {
1582 | "color": "red",
1583 | "value": 80
1584 | }
1585 | ]
1586 | },
1587 | "unit": "short"
1588 | },
1589 | "overrides": [
1590 | {
1591 | "matcher": {
1592 | "id": "byName",
1593 | "options": "Received 10.13.1.25:9000"
1594 | },
1595 | "properties": [
1596 | {
1597 | "id": "color",
1598 | "value": {
1599 | "fixedColor": "blue",
1600 | "mode": "fixed"
1601 | }
1602 | }
1603 | ]
1604 | }
1605 | ]
1606 | },
1607 | "gridPos": {
1608 | "h": 8,
1609 | "w": 12,
1610 | "x": 12,
1611 | "y": 20
1612 | },
1613 | "id": 4,
1614 | "interval": "1s",
1615 | "links": [],
1616 | "options": {
1617 | "legend": {
1618 | "calcs": [],
1619 | "displayMode": "list",
1620 | "placement": "bottom"
1621 | },
1622 | "tooltip": {
1623 | "mode": "multi"
1624 | }
1625 | },
1626 | "pluginVersion": "8.1.2",
1627 | "targets": [
1628 | {
1629 | "expr": "s3_requests_current{instance=~\"$instance\"}",
1630 | "format": "time_series",
1631 | "instant": false,
1632 | "interval": "",
1633 | "intervalFactor": 1,
1634 | "legendFormat": "Instance {{instance}} function {{api}}",
1635 | "metric": "minio_network_sent_bytes_total",
1636 | "refId": "A",
1637 | "step": 10
1638 | }
1639 | ],
1640 | "timeFrom": null,
1641 | "timeShift": null,
1642 | "title": "Active S3 Requests",
1643 | "type": "timeseries"
1644 | },
1645 | {
1646 | "collapsed": false,
1647 | "datasource": "Prometheus",
1648 | "gridPos": {
1649 | "h": 1,
1650 | "w": 24,
1651 | "x": 0,
1652 | "y": 28
1653 | },
1654 | "id": 36,
1655 | "panels": [],
1656 | "title": "Disks",
1657 | "type": "row"
1658 | },
1659 | {
1660 | "datasource": "Prometheus",
1661 | "description": "Total number of bytes received and sent among all MinIO server instances",
1662 | "fieldConfig": {
1663 | "defaults": {
1664 | "color": {
1665 | "mode": "palette-classic"
1666 | },
1667 | "custom": {
1668 | "axisLabel": "",
1669 | "axisPlacement": "auto",
1670 | "barAlignment": 0,
1671 | "drawStyle": "line",
1672 | "fillOpacity": 30,
1673 | "gradientMode": "opacity",
1674 | "hideFrom": {
1675 | "legend": false,
1676 | "tooltip": false,
1677 | "viz": false
1678 | },
1679 | "lineInterpolation": "smooth",
1680 | "lineWidth": 1,
1681 | "pointSize": 5,
1682 | "scaleDistribution": {
1683 | "type": "linear"
1684 | },
1685 | "showPoints": "never",
1686 | "spanNulls": true,
1687 | "stacking": {
1688 | "group": "A",
1689 | "mode": "none"
1690 | },
1691 | "thresholdsStyle": {
1692 | "mode": "off"
1693 | }
1694 | },
1695 | "links": [],
1696 | "mappings": [],
1697 | "thresholds": {
1698 | "mode": "absolute",
1699 | "steps": [
1700 | {
1701 | "color": "green",
1702 | "value": null
1703 | },
1704 | {
1705 | "color": "red",
1706 | "value": 80
1707 | }
1708 | ]
1709 | },
1710 | "unit": "bytes"
1711 | },
1712 | "overrides": [
1713 | {
1714 | "matcher": {
1715 | "id": "byName",
1716 | "options": "10.13.1.25:9000 DELETE"
1717 | },
1718 | "properties": [
1719 | {
1720 | "id": "color",
1721 | "value": {
1722 | "fixedColor": "red",
1723 | "mode": "fixed"
1724 | }
1725 | }
1726 | ]
1727 | },
1728 | {
1729 | "matcher": {
1730 | "id": "byName",
1731 | "options": "10.13.1.25:9000 GET"
1732 | },
1733 | "properties": [
1734 | {
1735 | "id": "color",
1736 | "value": {
1737 | "fixedColor": "green",
1738 | "mode": "fixed"
1739 | }
1740 | }
1741 | ]
1742 | },
1743 | {
1744 | "matcher": {
1745 | "id": "byName",
1746 | "options": "10.13.1.25:9000 POST"
1747 | },
1748 | "properties": [
1749 | {
1750 | "id": "color",
1751 | "value": {
1752 | "fixedColor": "blue",
1753 | "mode": "fixed"
1754 | }
1755 | }
1756 | ]
1757 | }
1758 | ]
1759 | },
1760 | "gridPos": {
1761 | "h": 8,
1762 | "w": 12,
1763 | "x": 0,
1764 | "y": 29
1765 | },
1766 | "id": 17,
1767 | "links": [],
1768 | "options": {
1769 | "legend": {
1770 | "calcs": [],
1771 | "displayMode": "list",
1772 | "placement": "bottom"
1773 | },
1774 | "tooltip": {
1775 | "mode": "multi"
1776 | }
1777 | },
1778 | "pluginVersion": "8.1.2",
1779 | "targets": [
1780 | {
1781 | "expr": "internode_rx_bytes_total{instance=~\"$instance\"}",
1782 | "format": "time_series",
1783 | "interval": "",
1784 | "intervalFactor": 2,
1785 | "legendFormat": "Internode Bytes Received {{instance}}",
1786 | "metric": "minio_http_requests_duration_seconds_count",
1787 | "refId": "A",
1788 | "step": 4
1789 | },
1790 | {
1791 | "expr": "internode_tx_bytes_total{instance=~\"$instance\"}",
1792 | "interval": "",
1793 | "legendFormat": "Internode Bytes Sent {{instance}}",
1794 | "refId": "B"
1795 | }
1796 | ],
1797 | "timeFrom": null,
1798 | "timeShift": null,
1799 | "title": "Internode Data Transfer",
1800 | "type": "timeseries"
1801 | },
1802 | {
1803 | "cacheTimeout": null,
1804 | "datasource": "Prometheus",
1805 | "description": "Number of online disks per MinIO Server",
1806 | "fieldConfig": {
1807 | "defaults": {
1808 | "color": {
1809 | "mode": "palette-classic"
1810 | },
1811 | "custom": {
1812 | "axisLabel": "",
1813 | "axisPlacement": "auto",
1814 | "barAlignment": 0,
1815 | "drawStyle": "line",
1816 | "fillOpacity": 30,
1817 | "gradientMode": "opacity",
1818 | "hideFrom": {
1819 | "legend": false,
1820 | "tooltip": false,
1821 | "viz": false
1822 | },
1823 | "lineInterpolation": "smooth",
1824 | "lineWidth": 1,
1825 | "pointSize": 5,
1826 | "scaleDistribution": {
1827 | "type": "linear"
1828 | },
1829 | "showPoints": "never",
1830 | "spanNulls": true,
1831 | "stacking": {
1832 | "group": "A",
1833 | "mode": "none"
1834 | },
1835 | "thresholdsStyle": {
1836 | "mode": "off"
1837 | }
1838 | },
1839 | "decimals": 0,
1840 | "links": [],
1841 | "mappings": [],
1842 | "min": 0,
1843 | "thresholds": {
1844 | "mode": "absolute",
1845 | "steps": [
1846 | {
1847 | "color": "green",
1848 | "value": null
1849 | },
1850 | {
1851 | "color": "red",
1852 | "value": 80
1853 | }
1854 | ]
1855 | },
1856 | "unit": "short"
1857 | },
1858 | "overrides": [
1859 | {
1860 | "matcher": {
1861 | "id": "byName",
1862 | "options": "Offline 10.13.1.25:9000"
1863 | },
1864 | "properties": [
1865 | {
1866 | "id": "color",
1867 | "value": {
1868 | "fixedColor": "dark-red",
1869 | "mode": "fixed"
1870 | }
1871 | }
1872 | ]
1873 | },
1874 | {
1875 | "matcher": {
1876 | "id": "byName",
1877 | "options": "Total 10.13.1.25:9000"
1878 | },
1879 | "properties": [
1880 | {
1881 | "id": "color",
1882 | "value": {
1883 | "fixedColor": "blue",
1884 | "mode": "fixed"
1885 | }
1886 | }
1887 | ]
1888 | }
1889 | ]
1890 | },
1891 | "gridPos": {
1892 | "h": 8,
1893 | "w": 12,
1894 | "x": 12,
1895 | "y": 29
1896 | },
1897 | "id": 11,
1898 | "links": [],
1899 | "options": {
1900 | "legend": {
1901 | "calcs": [],
1902 | "displayMode": "list",
1903 | "placement": "bottom"
1904 | },
1905 | "tooltip": {
1906 | "mode": "multi"
1907 | }
1908 | },
1909 | "pluginVersion": "8.1.2",
1910 | "targets": [
1911 | {
1912 | "expr": "minio_disks_total{instance=~\"$instance\"} - minio_disks_offline{instance=~\"$instance\"}",
1913 | "format": "time_series",
1914 | "interval": "",
1915 | "intervalFactor": 2,
1916 | "legendFormat": "Online Disks {{instance}}",
1917 | "metric": "process_start_time_seconds",
1918 | "refId": "A",
1919 | "step": 60
1920 | }
1921 | ],
1922 | "timeFrom": null,
1923 | "timeShift": null,
1924 | "title": "Online Disks",
1925 | "type": "timeseries"
1926 | },
1927 | {
1928 | "cacheTimeout": null,
1929 | "datasource": "Prometheus",
1930 | "description": "Disk capacity used per MinIO Server",
1931 | "fieldConfig": {
1932 | "defaults": {
1933 | "color": {
1934 | "mode": "palette-classic"
1935 | },
1936 | "custom": {
1937 | "axisLabel": "",
1938 | "axisPlacement": "auto",
1939 | "barAlignment": 0,
1940 | "drawStyle": "line",
1941 | "fillOpacity": 30,
1942 | "gradientMode": "opacity",
1943 | "hideFrom": {
1944 | "legend": false,
1945 | "tooltip": false,
1946 | "viz": false
1947 | },
1948 | "lineInterpolation": "smooth",
1949 | "lineWidth": 1,
1950 | "pointSize": 5,
1951 | "scaleDistribution": {
1952 | "type": "linear"
1953 | },
1954 | "showPoints": "never",
1955 | "spanNulls": true,
1956 | "stacking": {
1957 | "group": "A",
1958 | "mode": "none"
1959 | },
1960 | "thresholdsStyle": {
1961 | "mode": "off"
1962 | }
1963 | },
1964 | "links": [],
1965 | "mappings": [],
1966 | "min": 0,
1967 | "thresholds": {
1968 | "mode": "absolute",
1969 | "steps": [
1970 | {
1971 | "color": "green",
1972 | "value": null
1973 | },
1974 | {
1975 | "color": "red",
1976 | "value": 80
1977 | }
1978 | ]
1979 | },
1980 | "unit": "decbytes"
1981 | },
1982 | "overrides": [
1983 | {
1984 | "matcher": {
1985 | "id": "byName",
1986 | "options": "available 10.13.1.25:9000"
1987 | },
1988 | "properties": [
1989 | {
1990 | "id": "color",
1991 | "value": {
1992 | "fixedColor": "green",
1993 | "mode": "fixed"
1994 | }
1995 | }
1996 | ]
1997 | },
1998 | {
1999 | "matcher": {
2000 | "id": "byName",
2001 | "options": "used 10.13.1.25:9000"
2002 | },
2003 | "properties": [
2004 | {
2005 | "id": "color",
2006 | "value": {
2007 | "fixedColor": "blue",
2008 | "mode": "fixed"
2009 | }
2010 | }
2011 | ]
2012 | }
2013 | ]
2014 | },
2015 | "gridPos": {
2016 | "h": 8,
2017 | "w": 24,
2018 | "x": 0,
2019 | "y": 37
2020 | },
2021 | "id": 8,
2022 | "links": [],
2023 | "options": {
2024 | "legend": {
2025 | "calcs": [],
2026 | "displayMode": "list",
2027 | "placement": "bottom"
2028 | },
2029 | "tooltip": {
2030 | "mode": "multi"
2031 | }
2032 | },
2033 | "pluginVersion": "8.1.2",
2034 | "targets": [
2035 | {
2036 | "expr": "disk_storage_used{disk=~\"$disk\",instance=~\"$instance\"}",
2037 | "interval": "",
2038 | "legendFormat": "Used Capacity {{instance}} {{disk}}",
2039 | "refId": "B"
2040 | }
2041 | ],
2042 | "timeFrom": null,
2043 | "timeShift": null,
2044 | "title": "Disk Usage",
2045 | "type": "timeseries"
2046 | }
2047 | ],
2048 | "refresh": false,
2049 | "schemaVersion": 30,
2050 | "style": "dark",
2051 | "tags": [
2052 | "minio",
2053 | "prometheus",
2054 | "performance_overview"
2055 | ],
2056 | "templating": {
2057 | "list": [
2058 | {
2059 | "allValue": null,
2060 | "current": {
2061 | "selected": false,
2062 | "text": "All",
2063 | "value": "$__all"
2064 | },
2065 | "datasource": "Prometheus",
2066 | "definition": "label_values(minio_version_info,instance)",
2067 | "description": null,
2068 | "error": null,
2069 | "hide": 0,
2070 | "includeAll": true,
2071 | "label": "MinIO Host",
2072 | "multi": true,
2073 | "name": "instance",
2074 | "options": [],
2075 | "query": {
2076 | "query": "label_values(minio_version_info,instance)",
2077 | "refId": "Prometheus-instance-Variable-Query"
2078 | },
2079 | "refresh": 1,
2080 | "regex": "",
2081 | "skipUrlSync": false,
2082 | "sort": 1,
2083 | "tagValuesQuery": "",
2084 | "tagsQuery": "",
2085 | "type": "query",
2086 | "useTags": false
2087 | },
2088 | {
2089 | "allValue": null,
2090 | "current": {
2091 | "selected": false,
2092 | "text": "All",
2093 | "value": "$__all"
2094 | },
2095 | "datasource": "Prometheus",
2096 | "definition": "label_values(disk_storage_total,disk)",
2097 | "description": null,
2098 | "error": null,
2099 | "hide": 0,
2100 | "includeAll": true,
2101 | "label": "Drive",
2102 | "multi": false,
2103 | "name": "disk",
2104 | "options": [],
2105 | "query": {
2106 | "query": "label_values(disk_storage_total,disk)",
2107 | "refId": "Prometheus-disk-Variable-Query"
2108 | },
2109 | "refresh": 1,
2110 | "regex": "",
2111 | "skipUrlSync": false,
2112 | "sort": 0,
2113 | "tagValuesQuery": "",
2114 | "tagsQuery": "",
2115 | "type": "query",
2116 | "useTags": false
2117 | }
2118 | ]
2119 | },
2120 | "time": {
2121 | "from": "now-6h",
2122 | "to": "now"
2123 | },
2124 | "timepicker": {
2125 | "refresh_intervals": [
2126 | "10s",
2127 | "30s",
2128 | "1m",
2129 | "5m",
2130 | "15m",
2131 | "30m",
2132 | "1h",
2133 | "2h",
2134 | "1d"
2135 | ],
2136 | "time_options": [
2137 | "5m",
2138 | "15m",
2139 | "1h",
2140 | "6h",
2141 | "12h",
2142 | "24h",
2143 | "2d",
2144 | "7d",
2145 | "30d"
2146 | ]
2147 | },
2148 | "timezone": "",
2149 | "title": "Performance Overview - MinIO",
2150 | "uid": "K-rdv87nk",
2151 | "version": 2
2152 | }
--------------------------------------------------------------------------------
/config/grafana/dashboards/performance_overview/performance_overview_prometheus.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 | "target": {
12 | "limit": 100,
13 | "matchAny": false,
14 | "tags": [],
15 | "type": "dashboard"
16 | },
17 | "type": "dashboard"
18 | }
19 | ]
20 | },
21 | "editable": true,
22 | "gnetId": null,
23 | "graphTooltip": 0,
24 | "id": 15,
25 | "links": [
26 | {
27 | "asDropdown": true,
28 | "icon": "external link",
29 | "keepTime": true,
30 | "tags": [
31 | "performance_overview"
32 | ],
33 | "title": "Performance Overview",
34 | "type": "dashboards"
35 | },
36 | {
37 | "asDropdown": false,
38 | "icon": "external link",
39 | "includeVars": false,
40 | "keepTime": true,
41 | "tags": [
42 | "syslog"
43 | ],
44 | "title": "Syslog Overview",
45 | "type": "dashboards"
46 | }
47 | ],
48 | "panels": [
49 | {
50 | "datasource": "Prometheus",
51 | "fieldConfig": {
52 | "defaults": {
53 | "color": {
54 | "mode": "palette-classic"
55 | },
56 | "custom": {
57 | "axisLabel": "",
58 | "axisPlacement": "auto",
59 | "barAlignment": 0,
60 | "drawStyle": "line",
61 | "fillOpacity": 30,
62 | "gradientMode": "opacity",
63 | "hideFrom": {
64 | "legend": false,
65 | "tooltip": false,
66 | "viz": false
67 | },
68 | "lineInterpolation": "smooth",
69 | "lineWidth": 1,
70 | "pointSize": 5,
71 | "scaleDistribution": {
72 | "type": "linear"
73 | },
74 | "showPoints": "never",
75 | "spanNulls": false,
76 | "stacking": {
77 | "group": "A",
78 | "mode": "normal"
79 | },
80 | "thresholdsStyle": {
81 | "mode": "off"
82 | }
83 | },
84 | "mappings": [],
85 | "min": 0,
86 | "thresholds": {
87 | "mode": "absolute",
88 | "steps": [
89 | {
90 | "color": "green",
91 | "value": null
92 | }
93 | ]
94 | },
95 | "unit": "short"
96 | },
97 | "overrides": []
98 | },
99 | "gridPos": {
100 | "h": 7,
101 | "w": 12,
102 | "x": 0,
103 | "y": 0
104 | },
105 | "id": 41,
106 | "options": {
107 | "legend": {
108 | "calcs": [
109 | "mean"
110 | ],
111 | "displayMode": "list",
112 | "placement": "bottom"
113 | },
114 | "tooltip": {
115 | "mode": "multi"
116 | }
117 | },
118 | "pluginVersion": "8.1.2",
119 | "targets": [
120 | {
121 | "expr": "topk(30, count by (job)({__name__=~\".+\"}))",
122 | "interval": "",
123 | "intervalFactor": 10,
124 | "legendFormat": "{{job}}",
125 | "refId": "A"
126 | }
127 | ],
128 | "timeFrom": "1d",
129 | "timeShift": null,
130 | "title": "Metrics By Job (Stacked)",
131 | "type": "timeseries"
132 | },
133 | {
134 | "datasource": "Prometheus",
135 | "description": "",
136 | "fieldConfig": {
137 | "defaults": {
138 | "color": {
139 | "mode": "palette-classic"
140 | },
141 | "custom": {
142 | "axisLabel": "",
143 | "axisPlacement": "auto",
144 | "barAlignment": 0,
145 | "drawStyle": "line",
146 | "fillOpacity": 30,
147 | "gradientMode": "opacity",
148 | "hideFrom": {
149 | "legend": false,
150 | "tooltip": false,
151 | "viz": false
152 | },
153 | "lineInterpolation": "smooth",
154 | "lineWidth": 1,
155 | "pointSize": 5,
156 | "scaleDistribution": {
157 | "type": "linear"
158 | },
159 | "showPoints": "never",
160 | "spanNulls": true,
161 | "stacking": {
162 | "group": "A",
163 | "mode": "none"
164 | },
165 | "thresholdsStyle": {
166 | "mode": "off"
167 | }
168 | },
169 | "links": [],
170 | "mappings": [],
171 | "min": 0,
172 | "thresholds": {
173 | "mode": "absolute",
174 | "steps": [
175 | {
176 | "color": "green",
177 | "value": null
178 | },
179 | {
180 | "color": "red",
181 | "value": 80
182 | }
183 | ]
184 | },
185 | "unit": "bytes"
186 | },
187 | "overrides": []
188 | },
189 | "gridPos": {
190 | "h": 7,
191 | "w": 6,
192 | "x": 12,
193 | "y": 0
194 | },
195 | "id": 16,
196 | "links": [],
197 | "options": {
198 | "legend": {
199 | "calcs": [],
200 | "displayMode": "list",
201 | "placement": "bottom"
202 | },
203 | "tooltip": {
204 | "mode": "multi"
205 | }
206 | },
207 | "pluginVersion": "8.1.2",
208 | "targets": [
209 | {
210 | "expr": "sum(process_resident_memory_bytes{job=\"prometheus\"})",
211 | "format": "time_series",
212 | "hide": false,
213 | "interval": "",
214 | "intervalFactor": 2,
215 | "legendFormat": "p8s process resident memory",
216 | "refId": "D",
217 | "step": 20
218 | },
219 | {
220 | "expr": "process_virtual_memory_bytes{job=\"prometheus\"}",
221 | "format": "time_series",
222 | "hide": false,
223 | "intervalFactor": 2,
224 | "legendFormat": "virtual memory",
225 | "refId": "C",
226 | "step": 20
227 | }
228 | ],
229 | "timeFrom": null,
230 | "timeShift": null,
231 | "title": "Memory Profile",
232 | "type": "timeseries"
233 | },
234 | {
235 | "cacheTimeout": null,
236 | "datasource": "Prometheus",
237 | "fieldConfig": {
238 | "defaults": {
239 | "color": {
240 | "mode": "thresholds"
241 | },
242 | "mappings": [
243 | {
244 | "options": {
245 | "0": {
246 | "text": "None"
247 | }
248 | },
249 | "type": "value"
250 | }
251 | ],
252 | "thresholds": {
253 | "mode": "absolute",
254 | "steps": [
255 | {
256 | "color": "green",
257 | "value": null
258 | },
259 | {
260 | "color": "orange",
261 | "value": 0.1
262 | },
263 | {
264 | "color": "red",
265 | "value": 1
266 | }
267 | ]
268 | },
269 | "unit": "none"
270 | },
271 | "overrides": []
272 | },
273 | "gridPos": {
274 | "h": 7,
275 | "w": 6,
276 | "x": 18,
277 | "y": 0
278 | },
279 | "id": 37,
280 | "interval": null,
281 | "links": [],
282 | "maxDataPoints": 100,
283 | "options": {
284 | "colorMode": "value",
285 | "graphMode": "none",
286 | "justifyMode": "auto",
287 | "orientation": "horizontal",
288 | "reduceOptions": {
289 | "calcs": [
290 | "max"
291 | ],
292 | "fields": "",
293 | "values": false
294 | },
295 | "text": {},
296 | "textMode": "auto"
297 | },
298 | "pluginVersion": "8.1.2",
299 | "targets": [
300 | {
301 | "expr": "prometheus_tsdb_wal_corruptions_total{job=\"prometheus\"}",
302 | "format": "time_series",
303 | "intervalFactor": 2,
304 | "legendFormat": "",
305 | "refId": "A",
306 | "step": 60
307 | }
308 | ],
309 | "title": "WAL Corruptions",
310 | "type": "stat"
311 | },
312 | {
313 | "datasource": "Prometheus",
314 | "fieldConfig": {
315 | "defaults": {
316 | "color": {
317 | "mode": "palette-classic"
318 | },
319 | "custom": {
320 | "axisLabel": "",
321 | "axisPlacement": "auto",
322 | "barAlignment": 0,
323 | "drawStyle": "line",
324 | "fillOpacity": 30,
325 | "gradientMode": "opacity",
326 | "hideFrom": {
327 | "legend": false,
328 | "tooltip": false,
329 | "viz": false
330 | },
331 | "lineInterpolation": "smooth",
332 | "lineWidth": 1,
333 | "pointSize": 5,
334 | "scaleDistribution": {
335 | "type": "linear"
336 | },
337 | "showPoints": "never",
338 | "spanNulls": false,
339 | "stacking": {
340 | "group": "A",
341 | "mode": "none"
342 | },
343 | "thresholdsStyle": {
344 | "mode": "off"
345 | }
346 | },
347 | "links": [],
348 | "mappings": [],
349 | "min": 0,
350 | "thresholds": {
351 | "mode": "absolute",
352 | "steps": [
353 | {
354 | "color": "green",
355 | "value": null
356 | },
357 | {
358 | "color": "red",
359 | "value": 80
360 | }
361 | ]
362 | },
363 | "unit": "short"
364 | },
365 | "overrides": [
366 | {
367 | "matcher": {
368 | "id": "byName",
369 | "options": "prometheus"
370 | },
371 | "properties": [
372 | {
373 | "id": "color",
374 | "value": {
375 | "fixedColor": "#C15C17",
376 | "mode": "fixed"
377 | }
378 | }
379 | ]
380 | },
381 | {
382 | "matcher": {
383 | "id": "byName",
384 | "options": "{instance=\"localhost:9090\",job=\"prometheus\"}"
385 | },
386 | "properties": [
387 | {
388 | "id": "color",
389 | "value": {
390 | "fixedColor": "#CCA300",
391 | "mode": "fixed"
392 | }
393 | }
394 | ]
395 | }
396 | ]
397 | },
398 | "gridPos": {
399 | "h": 7,
400 | "w": 6,
401 | "x": 0,
402 | "y": 7
403 | },
404 | "id": 3,
405 | "links": [],
406 | "options": {
407 | "legend": {
408 | "calcs": [],
409 | "displayMode": "list",
410 | "placement": "bottom"
411 | },
412 | "tooltip": {
413 | "mode": "multi"
414 | }
415 | },
416 | "pluginVersion": "8.1.2",
417 | "targets": [
418 | {
419 | "expr": "sum(irate(prometheus_tsdb_head_samples_appended_total{job=\"prometheus\"}[5m]))",
420 | "format": "time_series",
421 | "hide": false,
422 | "interval": "",
423 | "intervalFactor": 2,
424 | "legendFormat": "samples",
425 | "metric": "",
426 | "refId": "A",
427 | "step": 20
428 | }
429 | ],
430 | "timeFrom": null,
431 | "timeShift": null,
432 | "title": "Samples Appended",
433 | "type": "timeseries"
434 | },
435 | {
436 | "datasource": "Prometheus",
437 | "fieldConfig": {
438 | "defaults": {
439 | "color": {
440 | "mode": "palette-classic"
441 | },
442 | "custom": {
443 | "axisLabel": "",
444 | "axisPlacement": "auto",
445 | "barAlignment": 0,
446 | "drawStyle": "line",
447 | "fillOpacity": 30,
448 | "gradientMode": "opacity",
449 | "hideFrom": {
450 | "legend": false,
451 | "tooltip": false,
452 | "viz": false
453 | },
454 | "lineInterpolation": "smooth",
455 | "lineWidth": 1,
456 | "pointSize": 5,
457 | "scaleDistribution": {
458 | "type": "linear"
459 | },
460 | "showPoints": "never",
461 | "spanNulls": false,
462 | "stacking": {
463 | "group": "A",
464 | "mode": "none"
465 | },
466 | "thresholdsStyle": {
467 | "mode": "off"
468 | }
469 | },
470 | "links": [],
471 | "mappings": [],
472 | "thresholds": {
473 | "mode": "absolute",
474 | "steps": [
475 | {
476 | "color": "green",
477 | "value": null
478 | },
479 | {
480 | "color": "red",
481 | "value": 80
482 | }
483 | ]
484 | },
485 | "unit": "s"
486 | },
487 | "overrides": []
488 | },
489 | "gridPos": {
490 | "h": 7,
491 | "w": 6,
492 | "x": 6,
493 | "y": 7
494 | },
495 | "id": 14,
496 | "links": [],
497 | "options": {
498 | "legend": {
499 | "calcs": [],
500 | "displayMode": "list",
501 | "placement": "bottom"
502 | },
503 | "tooltip": {
504 | "mode": "multi"
505 | }
506 | },
507 | "pluginVersion": "8.1.2",
508 | "targets": [
509 | {
510 | "expr": "topk(30, max(scrape_duration_seconds) by (job))",
511 | "format": "time_series",
512 | "interval": "",
513 | "intervalFactor": 2,
514 | "legendFormat": "{{job}}",
515 | "metric": "",
516 | "refId": "A",
517 | "step": 20
518 | }
519 | ],
520 | "timeFrom": null,
521 | "timeShift": null,
522 | "title": "Scrape Duration",
523 | "type": "timeseries"
524 | },
525 | {
526 | "datasource": "Prometheus",
527 | "description": "",
528 | "fieldConfig": {
529 | "defaults": {
530 | "color": {
531 | "mode": "palette-classic"
532 | },
533 | "custom": {
534 | "axisLabel": "",
535 | "axisPlacement": "auto",
536 | "barAlignment": 0,
537 | "drawStyle": "line",
538 | "fillOpacity": 30,
539 | "gradientMode": "opacity",
540 | "hideFrom": {
541 | "legend": false,
542 | "tooltip": false,
543 | "viz": false
544 | },
545 | "lineInterpolation": "smooth",
546 | "lineWidth": 1,
547 | "pointSize": 5,
548 | "scaleDistribution": {
549 | "type": "linear"
550 | },
551 | "showPoints": "never",
552 | "spanNulls": false,
553 | "stacking": {
554 | "group": "A",
555 | "mode": "none"
556 | },
557 | "thresholdsStyle": {
558 | "mode": "off"
559 | }
560 | },
561 | "links": [],
562 | "mappings": [],
563 | "min": 0,
564 | "thresholds": {
565 | "mode": "absolute",
566 | "steps": [
567 | {
568 | "color": "green",
569 | "value": null
570 | },
571 | {
572 | "color": "red",
573 | "value": 80
574 | }
575 | ]
576 | },
577 | "unit": "short"
578 | },
579 | "overrides": []
580 | },
581 | "gridPos": {
582 | "h": 7,
583 | "w": 6,
584 | "x": 12,
585 | "y": 7
586 | },
587 | "id": 33,
588 | "links": [],
589 | "options": {
590 | "legend": {
591 | "calcs": [],
592 | "displayMode": "list",
593 | "placement": "bottom"
594 | },
595 | "tooltip": {
596 | "mode": "multi"
597 | }
598 | },
599 | "pluginVersion": "8.1.2",
600 | "targets": [
601 | {
602 | "expr": "prometheus_tsdb_head_chunks{job=\"prometheus\"}",
603 | "format": "time_series",
604 | "interval": "",
605 | "intervalFactor": 2,
606 | "legendFormat": "chunks",
607 | "refId": "A",
608 | "step": 20
609 | }
610 | ],
611 | "timeFrom": null,
612 | "timeShift": null,
613 | "title": "Head Chunks",
614 | "type": "timeseries"
615 | },
616 | {
617 | "datasource": "Prometheus",
618 | "fieldConfig": {
619 | "defaults": {
620 | "color": {
621 | "mode": "palette-classic"
622 | },
623 | "custom": {
624 | "axisLabel": "",
625 | "axisPlacement": "auto",
626 | "barAlignment": 0,
627 | "drawStyle": "line",
628 | "fillOpacity": 30,
629 | "gradientMode": "opacity",
630 | "hideFrom": {
631 | "legend": false,
632 | "tooltip": false,
633 | "viz": false
634 | },
635 | "lineInterpolation": "smooth",
636 | "lineWidth": 1,
637 | "pointSize": 5,
638 | "scaleDistribution": {
639 | "type": "linear"
640 | },
641 | "showPoints": "never",
642 | "spanNulls": true,
643 | "stacking": {
644 | "group": "A",
645 | "mode": "none"
646 | },
647 | "thresholdsStyle": {
648 | "mode": "off"
649 | }
650 | },
651 | "links": [],
652 | "mappings": [],
653 | "min": 0,
654 | "thresholds": {
655 | "mode": "absolute",
656 | "steps": [
657 | {
658 | "color": "green",
659 | "value": null
660 | },
661 | {
662 | "color": "red",
663 | "value": 80
664 | }
665 | ]
666 | },
667 | "unit": "short"
668 | },
669 | "overrides": [
670 | {
671 | "matcher": {
672 | "id": "byName",
673 | "options": "duration-p99"
674 | },
675 | "properties": [
676 | {
677 | "id": "unit",
678 | "value": "s"
679 | }
680 | ]
681 | }
682 | ]
683 | },
684 | "gridPos": {
685 | "h": 7,
686 | "w": 6,
687 | "x": 18,
688 | "y": 7
689 | },
690 | "id": 36,
691 | "links": [],
692 | "options": {
693 | "legend": {
694 | "calcs": [],
695 | "displayMode": "list",
696 | "placement": "bottom"
697 | },
698 | "tooltip": {
699 | "mode": "multi"
700 | }
701 | },
702 | "pluginVersion": "8.1.2",
703 | "targets": [
704 | {
705 | "expr": "prometheus_tsdb_head_gc_duration_seconds{job=\"prometheus\",quantile=\"0.99\"}",
706 | "format": "time_series",
707 | "intervalFactor": 2,
708 | "legendFormat": "duration-p99",
709 | "refId": "A",
710 | "step": 20
711 | },
712 | {
713 | "expr": "irate(prometheus_tsdb_head_gc_duration_seconds_count{job=\"prometheus\"}[5m])",
714 | "format": "time_series",
715 | "intervalFactor": 2,
716 | "legendFormat": "collections",
717 | "refId": "B",
718 | "step": 20
719 | }
720 | ],
721 | "timeFrom": null,
722 | "timeShift": null,
723 | "title": "Head Block GC Activity",
724 | "type": "timeseries"
725 | },
726 | {
727 | "datasource": "Prometheus",
728 | "fieldConfig": {
729 | "defaults": {
730 | "color": {
731 | "mode": "palette-classic"
732 | },
733 | "custom": {
734 | "axisLabel": "",
735 | "axisPlacement": "auto",
736 | "barAlignment": 0,
737 | "drawStyle": "line",
738 | "fillOpacity": 30,
739 | "gradientMode": "opacity",
740 | "hideFrom": {
741 | "legend": false,
742 | "tooltip": false,
743 | "viz": false
744 | },
745 | "lineInterpolation": "smooth",
746 | "lineWidth": 1,
747 | "pointSize": 5,
748 | "scaleDistribution": {
749 | "type": "linear"
750 | },
751 | "showPoints": "never",
752 | "spanNulls": true,
753 | "stacking": {
754 | "group": "A",
755 | "mode": "none"
756 | },
757 | "thresholdsStyle": {
758 | "mode": "off"
759 | }
760 | },
761 | "links": [],
762 | "mappings": [],
763 | "thresholds": {
764 | "mode": "absolute",
765 | "steps": [
766 | {
767 | "color": "green",
768 | "value": null
769 | },
770 | {
771 | "color": "red",
772 | "value": 80
773 | }
774 | ]
775 | },
776 | "unit": "short"
777 | },
778 | "overrides": []
779 | },
780 | "gridPos": {
781 | "h": 7,
782 | "w": 6,
783 | "x": 0,
784 | "y": 14
785 | },
786 | "id": 29,
787 | "links": [],
788 | "options": {
789 | "legend": {
790 | "calcs": [],
791 | "displayMode": "list",
792 | "placement": "bottom"
793 | },
794 | "tooltip": {
795 | "mode": "multi"
796 | }
797 | },
798 | "pluginVersion": "8.1.2",
799 | "targets": [
800 | {
801 | "expr": "sum(prometheus_tsdb_head_active_appenders{job=\"prometheus\"})",
802 | "format": "time_series",
803 | "interval": "",
804 | "intervalFactor": 2,
805 | "legendFormat": "active_appenders",
806 | "metric": "",
807 | "refId": "A",
808 | "step": 20
809 | },
810 | {
811 | "expr": "sum(process_open_fds{job=\"prometheus\"})",
812 | "format": "time_series",
813 | "interval": "",
814 | "intervalFactor": 2,
815 | "legendFormat": "open_fds",
816 | "refId": "B",
817 | "step": 20
818 | }
819 | ],
820 | "timeFrom": null,
821 | "timeShift": null,
822 | "title": "Active Appenders",
823 | "type": "timeseries"
824 | },
825 | {
826 | "datasource": "Prometheus",
827 | "fieldConfig": {
828 | "defaults": {
829 | "color": {
830 | "mode": "palette-classic"
831 | },
832 | "custom": {
833 | "axisLabel": "",
834 | "axisPlacement": "auto",
835 | "barAlignment": 0,
836 | "drawStyle": "line",
837 | "fillOpacity": 30,
838 | "gradientMode": "opacity",
839 | "hideFrom": {
840 | "legend": false,
841 | "tooltip": false,
842 | "viz": false
843 | },
844 | "lineInterpolation": "smooth",
845 | "lineWidth": 1,
846 | "pointSize": 5,
847 | "scaleDistribution": {
848 | "type": "linear"
849 | },
850 | "showPoints": "never",
851 | "spanNulls": false,
852 | "stacking": {
853 | "group": "A",
854 | "mode": "none"
855 | },
856 | "thresholdsStyle": {
857 | "mode": "off"
858 | }
859 | },
860 | "links": [],
861 | "mappings": [],
862 | "min": 0,
863 | "thresholds": {
864 | "mode": "absolute",
865 | "steps": [
866 | {
867 | "color": "green",
868 | "value": null
869 | },
870 | {
871 | "color": "red",
872 | "value": 80
873 | }
874 | ]
875 | },
876 | "unit": "short"
877 | },
878 | "overrides": [
879 | {
880 | "matcher": {
881 | "id": "byName",
882 | "options": "prometheus"
883 | },
884 | "properties": [
885 | {
886 | "id": "color",
887 | "value": {
888 | "fixedColor": "#F9BA8F",
889 | "mode": "fixed"
890 | }
891 | }
892 | ]
893 | },
894 | {
895 | "matcher": {
896 | "id": "byName",
897 | "options": "{instance=\"localhost:9090\",interval=\"5s\",job=\"prometheus\"}"
898 | },
899 | "properties": [
900 | {
901 | "id": "color",
902 | "value": {
903 | "fixedColor": "#F9BA8F",
904 | "mode": "fixed"
905 | }
906 | }
907 | ]
908 | }
909 | ]
910 | },
911 | "gridPos": {
912 | "h": 7,
913 | "w": 6,
914 | "x": 6,
915 | "y": 14
916 | },
917 | "id": 2,
918 | "links": [],
919 | "options": {
920 | "legend": {
921 | "calcs": [],
922 | "displayMode": "list",
923 | "placement": "bottom"
924 | },
925 | "tooltip": {
926 | "mode": "multi"
927 | }
928 | },
929 | "pluginVersion": "8.1.2",
930 | "targets": [
931 | {
932 | "expr": "prometheus_tsdb_blocks_loaded{job=\"prometheus\"}",
933 | "format": "time_series",
934 | "intervalFactor": 2,
935 | "legendFormat": "blocks",
936 | "refId": "A",
937 | "step": 20
938 | }
939 | ],
940 | "timeFrom": null,
941 | "timeShift": null,
942 | "title": "Blocks Loaded",
943 | "type": "timeseries"
944 | },
945 | {
946 | "datasource": "Prometheus",
947 | "fieldConfig": {
948 | "defaults": {
949 | "color": {
950 | "mode": "palette-classic"
951 | },
952 | "custom": {
953 | "axisLabel": "",
954 | "axisPlacement": "auto",
955 | "barAlignment": 0,
956 | "drawStyle": "line",
957 | "fillOpacity": 30,
958 | "gradientMode": "opacity",
959 | "hideFrom": {
960 | "legend": false,
961 | "tooltip": false,
962 | "viz": false
963 | },
964 | "lineInterpolation": "smooth",
965 | "lineWidth": 1,
966 | "pointSize": 5,
967 | "scaleDistribution": {
968 | "type": "linear"
969 | },
970 | "showPoints": "never",
971 | "spanNulls": true,
972 | "stacking": {
973 | "group": "A",
974 | "mode": "none"
975 | },
976 | "thresholdsStyle": {
977 | "mode": "off"
978 | }
979 | },
980 | "links": [],
981 | "mappings": [],
982 | "thresholds": {
983 | "mode": "absolute",
984 | "steps": [
985 | {
986 | "color": "green",
987 | "value": null
988 | },
989 | {
990 | "color": "red",
991 | "value": 80
992 | }
993 | ]
994 | },
995 | "unit": "short"
996 | },
997 | "overrides": []
998 | },
999 | "gridPos": {
1000 | "h": 7,
1001 | "w": 6,
1002 | "x": 12,
1003 | "y": 14
1004 | },
1005 | "id": 38,
1006 | "links": [],
1007 | "options": {
1008 | "legend": {
1009 | "calcs": [],
1010 | "displayMode": "list",
1011 | "placement": "bottom"
1012 | },
1013 | "tooltip": {
1014 | "mode": "multi"
1015 | }
1016 | },
1017 | "pluginVersion": "8.1.2",
1018 | "targets": [
1019 | {
1020 | "expr": "prometheus_engine_query_duration_seconds{job=\"prometheus\", quantile=\"0.99\"}",
1021 | "format": "time_series",
1022 | "intervalFactor": 2,
1023 | "legendFormat": "{{slice}}_p99",
1024 | "refId": "A",
1025 | "step": 20
1026 | }
1027 | ],
1028 | "timeFrom": null,
1029 | "timeShift": null,
1030 | "title": "Query Durations",
1031 | "type": "timeseries"
1032 | },
1033 | {
1034 | "datasource": "Prometheus",
1035 | "description": "",
1036 | "fieldConfig": {
1037 | "defaults": {
1038 | "color": {
1039 | "mode": "palette-classic"
1040 | },
1041 | "custom": {
1042 | "axisLabel": "",
1043 | "axisPlacement": "auto",
1044 | "barAlignment": 0,
1045 | "drawStyle": "line",
1046 | "fillOpacity": 30,
1047 | "gradientMode": "opacity",
1048 | "hideFrom": {
1049 | "legend": false,
1050 | "tooltip": false,
1051 | "viz": false
1052 | },
1053 | "lineInterpolation": "smooth",
1054 | "lineWidth": 1,
1055 | "pointSize": 5,
1056 | "scaleDistribution": {
1057 | "type": "linear"
1058 | },
1059 | "showPoints": "never",
1060 | "spanNulls": false,
1061 | "stacking": {
1062 | "group": "A",
1063 | "mode": "none"
1064 | },
1065 | "thresholdsStyle": {
1066 | "mode": "off"
1067 | }
1068 | },
1069 | "links": [],
1070 | "mappings": [],
1071 | "min": 0,
1072 | "thresholds": {
1073 | "mode": "absolute",
1074 | "steps": [
1075 | {
1076 | "color": "green",
1077 | "value": null
1078 | },
1079 | {
1080 | "color": "red",
1081 | "value": 80
1082 | }
1083 | ]
1084 | },
1085 | "unit": "short"
1086 | },
1087 | "overrides": [
1088 | {
1089 | "matcher": {
1090 | "id": "byName",
1091 | "options": "duration-p99"
1092 | },
1093 | "properties": [
1094 | {
1095 | "id": "unit",
1096 | "value": "s"
1097 | }
1098 | ]
1099 | }
1100 | ]
1101 | },
1102 | "gridPos": {
1103 | "h": 7,
1104 | "w": 6,
1105 | "x": 18,
1106 | "y": 14
1107 | },
1108 | "id": 20,
1109 | "links": [],
1110 | "options": {
1111 | "legend": {
1112 | "calcs": [],
1113 | "displayMode": "list",
1114 | "placement": "bottom"
1115 | },
1116 | "tooltip": {
1117 | "mode": "multi"
1118 | }
1119 | },
1120 | "pluginVersion": "8.1.2",
1121 | "targets": [
1122 | {
1123 | "expr": "histogram_quantile(0.99, sum(rate(prometheus_tsdb_compaction_duration_bucket{job=\"prometheus\"}[5m])) by (le))",
1124 | "format": "time_series",
1125 | "hide": false,
1126 | "interval": "",
1127 | "intervalFactor": 2,
1128 | "legendFormat": "duration-{{p99}}",
1129 | "refId": "A",
1130 | "step": 20
1131 | },
1132 | {
1133 | "expr": "irate(prometheus_tsdb_compactions_total{job=\"prometheus\"}[5m])",
1134 | "format": "time_series",
1135 | "intervalFactor": 2,
1136 | "legendFormat": "compactions",
1137 | "refId": "B",
1138 | "step": 20
1139 | },
1140 | {
1141 | "expr": "irate(prometheus_tsdb_compactions_failed_total{job=\"prometheus\"}[5m])",
1142 | "format": "time_series",
1143 | "intervalFactor": 2,
1144 | "legendFormat": "failed",
1145 | "refId": "C",
1146 | "step": 20
1147 | },
1148 | {
1149 | "expr": "irate(prometheus_tsdb_compactions_triggered_total{job=\"prometheus\"}[5m])",
1150 | "format": "time_series",
1151 | "intervalFactor": 2,
1152 | "legendFormat": "triggered",
1153 | "refId": "D",
1154 | "step": 20
1155 | }
1156 | ],
1157 | "timeFrom": null,
1158 | "timeShift": null,
1159 | "title": "Compaction Activity",
1160 | "type": "timeseries"
1161 | },
1162 | {
1163 | "datasource": "Prometheus",
1164 | "fieldConfig": {
1165 | "defaults": {
1166 | "color": {
1167 | "mode": "palette-classic"
1168 | },
1169 | "custom": {
1170 | "axisLabel": "",
1171 | "axisPlacement": "auto",
1172 | "barAlignment": 0,
1173 | "drawStyle": "line",
1174 | "fillOpacity": 30,
1175 | "gradientMode": "opacity",
1176 | "hideFrom": {
1177 | "legend": false,
1178 | "tooltip": false,
1179 | "viz": false
1180 | },
1181 | "lineInterpolation": "smooth",
1182 | "lineWidth": 1,
1183 | "pointSize": 5,
1184 | "scaleDistribution": {
1185 | "type": "linear"
1186 | },
1187 | "showPoints": "never",
1188 | "spanNulls": true,
1189 | "stacking": {
1190 | "group": "A",
1191 | "mode": "none"
1192 | },
1193 | "thresholdsStyle": {
1194 | "mode": "off"
1195 | }
1196 | },
1197 | "links": [],
1198 | "mappings": [],
1199 | "min": 0,
1200 | "thresholds": {
1201 | "mode": "absolute",
1202 | "steps": [
1203 | {
1204 | "color": "green",
1205 | "value": null
1206 | },
1207 | {
1208 | "color": "red",
1209 | "value": 80
1210 | }
1211 | ]
1212 | },
1213 | "unit": "short"
1214 | },
1215 | "overrides": []
1216 | },
1217 | "gridPos": {
1218 | "h": 7,
1219 | "w": 8,
1220 | "x": 0,
1221 | "y": 21
1222 | },
1223 | "id": 32,
1224 | "links": [],
1225 | "options": {
1226 | "legend": {
1227 | "calcs": [],
1228 | "displayMode": "list",
1229 | "placement": "bottom"
1230 | },
1231 | "tooltip": {
1232 | "mode": "multi"
1233 | }
1234 | },
1235 | "pluginVersion": "8.1.2",
1236 | "targets": [
1237 | {
1238 | "expr": "rate(prometheus_tsdb_reloads_total{job=\"prometheus\"}[5m])",
1239 | "format": "time_series",
1240 | "intervalFactor": 2,
1241 | "legendFormat": "reloads",
1242 | "refId": "A",
1243 | "step": 20
1244 | },
1245 | {
1246 | "expr": "rate(prometheus_tsdb_reloads_failures_total{job=\"prometheus\"}[5m])",
1247 | "format": "time_series",
1248 | "hide": false,
1249 | "intervalFactor": 2,
1250 | "legendFormat": "failures",
1251 | "refId": "B",
1252 | "step": 20
1253 | }
1254 | ],
1255 | "timeFrom": null,
1256 | "timeShift": null,
1257 | "title": "Reload Count",
1258 | "type": "timeseries"
1259 | },
1260 | {
1261 | "datasource": "Prometheus",
1262 | "fieldConfig": {
1263 | "defaults": {
1264 | "color": {
1265 | "mode": "palette-classic"
1266 | },
1267 | "custom": {
1268 | "axisLabel": "",
1269 | "axisPlacement": "auto",
1270 | "barAlignment": 0,
1271 | "drawStyle": "line",
1272 | "fillOpacity": 30,
1273 | "gradientMode": "opacity",
1274 | "hideFrom": {
1275 | "legend": false,
1276 | "tooltip": false,
1277 | "viz": false
1278 | },
1279 | "lineInterpolation": "smooth",
1280 | "lineWidth": 1,
1281 | "pointSize": 5,
1282 | "scaleDistribution": {
1283 | "type": "linear"
1284 | },
1285 | "showPoints": "never",
1286 | "spanNulls": false,
1287 | "stacking": {
1288 | "group": "A",
1289 | "mode": "none"
1290 | },
1291 | "thresholdsStyle": {
1292 | "mode": "off"
1293 | }
1294 | },
1295 | "links": [],
1296 | "mappings": [],
1297 | "min": 0,
1298 | "thresholds": {
1299 | "mode": "absolute",
1300 | "steps": [
1301 | {
1302 | "color": "green",
1303 | "value": null
1304 | },
1305 | {
1306 | "color": "red",
1307 | "value": 80
1308 | }
1309 | ]
1310 | },
1311 | "unit": "s"
1312 | },
1313 | "overrides": []
1314 | },
1315 | "gridPos": {
1316 | "h": 7,
1317 | "w": 10,
1318 | "x": 8,
1319 | "y": 21
1320 | },
1321 | "id": 35,
1322 | "links": [],
1323 | "options": {
1324 | "legend": {
1325 | "calcs": [],
1326 | "displayMode": "list",
1327 | "placement": "bottom"
1328 | },
1329 | "tooltip": {
1330 | "mode": "multi"
1331 | }
1332 | },
1333 | "pluginVersion": "8.1.2",
1334 | "targets": [
1335 | {
1336 | "expr": "max(prometheus_rule_group_duration_seconds{job=\"prometheus\"}) by (quantile)",
1337 | "format": "time_series",
1338 | "interval": "",
1339 | "intervalFactor": 2,
1340 | "legendFormat": "{{quantile}}",
1341 | "refId": "A",
1342 | "step": 10
1343 | }
1344 | ],
1345 | "timeFrom": null,
1346 | "timeShift": null,
1347 | "title": "Rule Group Eval Duration",
1348 | "type": "timeseries"
1349 | },
1350 | {
1351 | "datasource": "Prometheus",
1352 | "fieldConfig": {
1353 | "defaults": {
1354 | "color": {
1355 | "mode": "palette-classic"
1356 | },
1357 | "custom": {
1358 | "axisLabel": "",
1359 | "axisPlacement": "auto",
1360 | "barAlignment": 0,
1361 | "drawStyle": "line",
1362 | "fillOpacity": 30,
1363 | "gradientMode": "opacity",
1364 | "hideFrom": {
1365 | "legend": false,
1366 | "tooltip": false,
1367 | "viz": false
1368 | },
1369 | "lineInterpolation": "smooth",
1370 | "lineWidth": 1,
1371 | "pointSize": 5,
1372 | "scaleDistribution": {
1373 | "type": "linear"
1374 | },
1375 | "showPoints": "never",
1376 | "spanNulls": true,
1377 | "stacking": {
1378 | "group": "A",
1379 | "mode": "normal"
1380 | },
1381 | "thresholdsStyle": {
1382 | "mode": "off"
1383 | }
1384 | },
1385 | "links": [],
1386 | "mappings": [],
1387 | "min": 0,
1388 | "thresholds": {
1389 | "mode": "absolute",
1390 | "steps": [
1391 | {
1392 | "color": "green",
1393 | "value": null
1394 | },
1395 | {
1396 | "color": "red",
1397 | "value": 80
1398 | }
1399 | ]
1400 | },
1401 | "unit": "short"
1402 | },
1403 | "overrides": []
1404 | },
1405 | "gridPos": {
1406 | "h": 7,
1407 | "w": 6,
1408 | "x": 18,
1409 | "y": 21
1410 | },
1411 | "id": 39,
1412 | "links": [],
1413 | "options": {
1414 | "legend": {
1415 | "calcs": [],
1416 | "displayMode": "list",
1417 | "placement": "bottom"
1418 | },
1419 | "tooltip": {
1420 | "mode": "single"
1421 | }
1422 | },
1423 | "pluginVersion": "8.1.2",
1424 | "targets": [
1425 | {
1426 | "expr": "rate(prometheus_rule_group_iterations_missed_total{job=\"prometheus\"}[5m])",
1427 | "format": "time_series",
1428 | "intervalFactor": 2,
1429 | "legendFormat": "missed",
1430 | "refId": "B",
1431 | "step": 10
1432 | },
1433 | {
1434 | "expr": "rate(prometheus_rule_group_iterations_total{job=\"prometheus\"}[5m])",
1435 | "format": "time_series",
1436 | "intervalFactor": 2,
1437 | "legendFormat": "iterations",
1438 | "refId": "A",
1439 | "step": 10
1440 | }
1441 | ],
1442 | "timeFrom": null,
1443 | "timeShift": null,
1444 | "title": "Rule Group Eval Activity",
1445 | "type": "timeseries"
1446 | }
1447 | ],
1448 | "refresh": false,
1449 | "revision": "1.0",
1450 | "schemaVersion": 30,
1451 | "style": "dark",
1452 | "tags": [
1453 | "prometheus",
1454 | "performance_overview"
1455 | ],
1456 | "templating": {
1457 | "list": []
1458 | },
1459 | "time": {
1460 | "from": "now-6h",
1461 | "to": "now"
1462 | },
1463 | "timepicker": {
1464 | "now": true,
1465 | "refresh_intervals": [
1466 | "5s",
1467 | "10s",
1468 | "30s",
1469 | "1m",
1470 | "5m",
1471 | "15m",
1472 | "30m",
1473 | "1h",
1474 | "2h",
1475 | "1d"
1476 | ],
1477 | "time_options": [
1478 | "5m",
1479 | "15m",
1480 | "1h",
1481 | "6h",
1482 | "12h",
1483 | "24h",
1484 | "2d",
1485 | "7d",
1486 | "30d"
1487 | ]
1488 | },
1489 | "timezone": "browser",
1490 | "title": "Performance Overview - Prometheus",
1491 | "uid": "g7Bov8n7z",
1492 | "version": 6
1493 | }
--------------------------------------------------------------------------------
/config/grafana/provisioning/dashboards/no_folder.yml:
--------------------------------------------------------------------------------
1 | apiVersion: 1
2 |
3 | providers:
4 | - name: 'NoFolderDashboards'
5 | orgId: 1
6 | folder: ''
7 | type: file
8 | disableDeletion: false
9 | editable: true
10 | updateIntervalSeconds: 10
11 | options:
12 | path: /var/lib/grafana/dashboards/no_folder
13 |
--------------------------------------------------------------------------------
/config/grafana/provisioning/dashboards/performance_overview.yml:
--------------------------------------------------------------------------------
1 | apiVersion: 1
2 |
3 | providers:
4 | - name: 'PerformanceOverviewDashboards'
5 | orgId: 1
6 | folder: 'Performance Overview'
7 | type: file
8 | disableDeletion: false
9 | editable: true
10 | updateIntervalSeconds: 10
11 | options:
12 | path: /var/lib/grafana/dashboards/performance_overview
13 |
--------------------------------------------------------------------------------
/config/grafana/provisioning/datasources/loki.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: 1
2 | datasources:
3 | -
4 | access: proxy
5 | basicAuth: false
6 | jsonData:
7 | maxLines: 1000
8 | name: Loki
9 | type: loki
10 | url: "http://loki:3100/"
11 |
--------------------------------------------------------------------------------
/config/grafana/provisioning/datasources/prometheus.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: 1
2 | datasources:
3 | -
4 | access: proxy
5 | basicAuth: false
6 | name: Prometheus
7 | type: prometheus
8 | url: "http://prometheus:9090/"
9 |
--------------------------------------------------------------------------------
/config/loki-config-filesystem.yml:
--------------------------------------------------------------------------------
1 | auth_enabled: false
2 |
3 | server:
4 | http_listen_port: 3100
5 |
6 | ingester:
7 | lifecycler:
8 | address: 127.0.0.1
9 | ring:
10 | kvstore:
11 | store: inmemory
12 | replication_factor: 1
13 | final_sleep: 0s
14 | chunk_idle_period: 1h # Any chunk not receiving new logs in this time will be flushed
15 | max_chunk_age: 1h # All chunks will be flushed when they hit this age, default is 1h
16 | chunk_target_size: 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
17 | chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
18 | max_transfer_retries: 0 # Chunk transfers disabled
19 |
20 | schema_config:
21 | configs:
22 | - from: 2020-10-24
23 | store: boltdb-shipper
24 | object_store: filesystem
25 | schema: v11
26 | index:
27 | prefix: index_
28 | period: 24h
29 |
30 | storage_config:
31 | boltdb_shipper:
32 | active_index_directory: /tmp/loki/boltdb-shipper-active
33 | cache_location: /tmp/loki/boltdb-shipper-cache
34 | cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
35 | shared_store: filesystem
36 | filesystem:
37 | directory: /tmp/loki/chunks
38 |
39 | compactor:
40 | working_directory: /tmp/loki/boltdb-shipper-compactor
41 | shared_store: filesystem
42 |
43 | limits_config:
44 | reject_old_samples: true
45 | reject_old_samples_max_age: 168h
46 |
47 | chunk_store_config:
48 | max_look_back_period: 0s
49 |
50 | table_manager:
51 | retention_deletes_enabled: false
52 | retention_period: 0s
53 |
54 | ruler:
55 | storage:
56 | type: local
57 | local:
58 | directory: /tmp/loki/rules
59 | rule_path: /tmp/loki/rules-temp
60 | alertmanager_url: http://localhost:9093
61 | ring:
62 | kvstore:
63 | store: inmemory
64 | enable_api: true
65 |
--------------------------------------------------------------------------------
/config/loki-config-s3.yml:
--------------------------------------------------------------------------------
1 | auth_enabled: false
2 |
3 | server:
4 | http_listen_port: 3100
5 |
6 | ingester:
7 | lifecycler:
8 | address: 127.0.0.1
9 | ring:
10 | kvstore:
11 | store: inmemory
12 | replication_factor: 1
13 | final_sleep: 0s
14 | chunk_idle_period: 5m # Any chunk not receiving new logs in this time will be flushed (set very low just to push data into s3 exampe)
15 | max_chunk_age: 10m # All chunks will be flushed when they hit this age, default is 1h
16 | chunk_target_size: 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
17 | chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
18 | max_transfer_retries: 0 # Chunk transfers disabled
19 |
20 | schema_config:
21 | configs:
22 | - from: 2020-10-24
23 | store: boltdb-shipper
24 | object_store: s3
25 | schema: v11
26 | index:
27 | prefix: index_
28 | period: 24h
29 |
30 | storage_config:
31 | boltdb_shipper:
32 | shared_store: s3
33 | active_index_directory: /tmp/loki/index
34 | cache_location: /tmp/loki/boltdb-cache
35 |
36 | aws:
37 | s3: s3://minio123:minio456@minio.:9000/loki
38 | s3forcepathstyle: true
39 |
40 | compactor:
41 | working_directory: /tmp/loki/compactor
42 | shared_store: s3
43 |
44 | limits_config:
45 | reject_old_samples: true
46 | reject_old_samples_max_age: 168h
47 |
48 | chunk_store_config:
49 | max_look_back_period: 336h
50 |
51 | table_manager:
52 | retention_deletes_enabled: true
53 | retention_period: 336h
54 |
55 | query_range:
56 | align_queries_with_step: true
57 | max_retries: 5
58 | split_queries_by_interval: 15m
59 | parallelise_shardable_queries: true
60 | cache_results: true
61 |
62 | results_cache:
63 | cache:
64 | enable_fifocache: true
65 | fifocache:
66 | size: 1024
67 | validity: 24h
68 |
69 | ruler:
70 | storage:
71 | type: local
72 | local:
73 | directory: /tmp/loki/rules
74 | rule_path: /tmp/loki/rules-temp
75 | alertmanager_url: http://localhost:9093
76 | ring:
77 | kvstore:
78 | store: inmemory
79 | enable_api: true
80 |
--------------------------------------------------------------------------------
/config/prometheus.yml:
--------------------------------------------------------------------------------
1 | # my global config
2 | global:
3 | scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
4 | evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
5 | external_labels:
6 | origin_prometheus: aio
7 |
8 | # Alertmanager configuration
9 | alerting:
10 | alertmanagers:
11 | - static_configs:
12 | - targets:
13 | # - alertmanager:9093
14 |
15 | # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
16 | rule_files:
17 |
18 | scrape_configs:
19 |
20 | - job_name: 'prometheus'
21 | static_configs:
22 | - targets: ['prometheus:9090']
23 |
24 | - job_name: 'grafana'
25 | static_configs:
26 | - targets: ['grafana:3000']
27 |
28 | - job_name: 'loki'
29 | static_configs:
30 | - targets: ['loki:3100']
31 |
32 | - job_name: 'promtail'
33 | static_configs:
34 | - targets: ['promtail:9080']
35 |
36 | - job_name: 'minio'
37 | metrics_path: /minio/prometheus/metrics
38 | static_configs:
39 | - targets: ['minio:9000']
40 |
41 | - job_name: 'node'
42 | static_configs:
43 | - targets: ['node-exporter:9100']
44 |
45 | - job_name: 'caadvisor'
46 | static_configs:
47 | - targets: ['cadvisor:8080']
48 |
--------------------------------------------------------------------------------
/config/promtail-config.yml:
--------------------------------------------------------------------------------
1 | server:
2 | http_listen_port: 9080
3 | grpc_listen_port: 0
4 |
5 | positions:
6 | filename: /tmp/positions.yaml
7 |
8 | clients:
9 | - url: http://loki:3100/loki/api/v1/push
10 |
11 | scrape_configs:
12 |
13 | - job_name: syslog
14 | syslog:
15 | listen_address: 0.0.0.0:1514
16 | idle_timeout: 60s
17 | label_structured_data: yes
18 | labels:
19 | job: "syslog"
20 | relabel_configs:
21 | - source_labels: ['__syslog_message_hostname']
22 | target_label: 'host'
23 |
--------------------------------------------------------------------------------
/config/syslog-ng.conf:
--------------------------------------------------------------------------------
1 | #############################################################################
2 | # Default syslog-ng.conf file which collects all local logs into a
3 | # single file called /var/log/messages tailored to container usage.
4 | #
5 | # The changes from the stock, default syslog-ng.conf file is that we've
6 | # dropped the system() source that is not needed and that we enabled network
7 | # connections using default-network-drivers(). Customize as needed and
8 | # override using the -v option to docker, such as:
9 | #
10 | # docker run ... -v "$PWD/syslog-ng.conf":/etc/syslog-ng/syslog-ng.conf
11 | #
12 |
13 | @version: 3.29
14 | @include "scl.conf"
15 |
16 | source s_local {
17 | internal();
18 | };
19 |
20 | source s_network {
21 | default-network-drivers(
22 | # NOTE: TLS support
23 | #
24 | # the default-network-drivers() source driver opens the TLS
25 | # enabled ports as well, however without an actual key/cert
26 | # pair they will not operate and syslog-ng would display a
27 | # warning at startup.
28 | #
29 | #tls(key-file("/path/to/ssl-private-key") cert-file("/path/to/ssl-cert"))
30 | );
31 | };
32 |
33 | destination d_loki {
34 | syslog("promtail" transport("tcp") port("1514"));
35 | };
36 |
37 | log {
38 | source(s_local);
39 | source(s_network);
40 | destination(d_loki);
41 | };
42 |
43 |
--------------------------------------------------------------------------------
/docker-compose-filesystem.yml:
--------------------------------------------------------------------------------
1 | networks:
2 | loki: {}
3 | services:
4 | grafana:
5 | container_name: grafana
6 | environment:
7 | GF_AUTH_ANONYMOUS_ENABLED: "true"
8 | GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
9 | GF_AUTH_BASIC_ENABLED: "false"
10 | GF_AUTH_DISABLE_LOGIN_FORM: "true"
11 | GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/no_folder/loki_syslog_aio_overview.json
12 | image: grafana/grafana:8.1.2
13 | networks:
14 | loki: null
15 | ports:
16 | - protocol: tcp
17 | published: 3000
18 | target: 3000
19 | restart: always
20 | volumes:
21 | - ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
22 | - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
23 | - ./config/grafana/dashboards:/var/lib/grafana/dashboards:ro
24 | loki:
25 | command: -config.file=/etc/loki/loki-config.yml
26 | container_name: loki
27 | image: grafana/loki:2.3.0
28 | networks:
29 | loki: null
30 | ports:
31 | - protocol: tcp
32 | published: 3100
33 | target: 3100
34 | restart: always
35 | volumes:
36 | - ./config/loki-config-filesystem.yml:/etc/loki/loki-config.yml:ro
37 | promtail:
38 | command: -config.file=/etc/promtail/promtail-config.yml
39 | container_name: promtail
40 | image: grafana/promtail:2.3.0
41 | networks:
42 | loki: null
43 | ports:
44 | - protocol: tcp
45 | published: 1514
46 | target: 1514
47 | - protocol: tcp
48 | published: 9080
49 | target: 9080
50 | restart: always
51 | volumes:
52 | - ./config/promtail-config.yml:/etc/promtail/promtail-config.yml:ro
53 | syslog-ng:
54 | command: -edv
55 | container_name: syslog-ng
56 | depends_on:
57 | - promtail
58 | image: balabit/syslog-ng:latest
59 | networks:
60 | loki: null
61 | ports:
62 | - protocol: udp
63 | published: 514
64 | target: 514
65 | - protocol: tcp
66 | published: 601
67 | target: 601
68 | restart: always
69 | volumes:
70 | - ./config/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf:ro
71 | version: '3.3'
72 |
--------------------------------------------------------------------------------
/docker-compose-with-generator.yml:
--------------------------------------------------------------------------------
1 | networks:
2 | loki: {}
3 | services:
4 | cadvisor:
5 | container_name: cadvisor
6 | image: gcr.io/cadvisor/cadvisor:latest
7 | networks:
8 | loki: null
9 | ports:
10 | - published: 8080
11 | target: 8080
12 | restart: always
13 | volumes:
14 | - /:/rootfs:ro
15 | - /var/run:/var/run:rw
16 | - /sys:/sys:ro
17 | - /var/lib/docker:/var/lib/docker:ro
18 | generator:
19 | build:
20 | context: ./generator
21 | container_name: generator
22 | depends_on:
23 | - syslog-ng
24 | networks:
25 | loki: null
26 | grafana:
27 | container_name: grafana
28 | environment:
29 | GF_AUTH_ANONYMOUS_ENABLED: "true"
30 | GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
31 | GF_AUTH_BASIC_ENABLED: "false"
32 | GF_AUTH_DISABLE_LOGIN_FORM: "true"
33 | GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/no_folder/loki_syslog_aio_overview.json
34 | image: grafana/grafana:8.1.2
35 | networks:
36 | loki: null
37 | ports:
38 | - protocol: tcp
39 | published: 3000
40 | target: 3000
41 | restart: always
42 | volumes:
43 | - ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
44 | - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
45 | - ./config/grafana/dashboards:/var/lib/grafana/dashboards:ro
46 | loki:
47 | command: -config.file=/etc/loki/loki-config.yml
48 | container_name: loki
49 | depends_on:
50 | - minio
51 | image: grafana/loki:2.3.0
52 | networks:
53 | loki: null
54 | ports:
55 | - protocol: tcp
56 | published: 3100
57 | target: 3100
58 | restart: always
59 | volumes:
60 | - ./config/loki-config-s3.yml:/etc/loki/loki-config.yml:ro
61 | minio:
62 | command: -c 'mkdir -p /data/loki && /usr/bin/docker-entrypoint.sh minio server /data'
63 | container_name: minio
64 | entrypoint: sh
65 | environment:
66 | MINIO_ACCESS_KEY: minio123
67 | MINIO_PROMETHEUS_AUTH_TYPE: public
68 | MINIO_SECRET_KEY: minio456
69 | healthcheck:
70 | interval: 30s
71 | retries: 3
72 | test:
73 | - CMD
74 | - curl
75 | - -f
76 | - http://localhost:9000/minio/health/live
77 | timeout: 20s
78 | image: minio/minio:latest
79 | networks:
80 | loki: null
81 | ports:
82 | - published: 9000
83 | target: 9000
84 | restart: always
85 | node-exporter:
86 | command: --path.rootfs=/host
87 | container_name: node-exporter
88 | image: prom/node-exporter:latest
89 | networks:
90 | loki: null
91 | pid: host
92 | ports:
93 | - published: 9100
94 | target: 9100
95 | restart: always
96 | volumes:
97 | - /:/host:ro,rslave
98 | prometheus:
99 | command:
100 | - --config.file=/etc/prometheus/prometheus.yml
101 | - --storage.tsdb.path=/prometheus
102 | - --web.enable-admin-api
103 | - --web.enable-lifecycle
104 | container_name: prometheus
105 | image: prom/prometheus:latest
106 | networks:
107 | loki: null
108 | ports:
109 | - published: 9090
110 | target: 9090
111 | restart: always
112 | volumes:
113 | - ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
114 | promtail:
115 | command: -config.file=/etc/promtail/promtail-config.yml
116 | container_name: promtail
117 | image: grafana/promtail:2.3.0
118 | networks:
119 | loki: null
120 | ports:
121 | - protocol: tcp
122 | published: 1514
123 | target: 1514
124 | - protocol: tcp
125 | published: 9080
126 | target: 9080
127 | restart: always
128 | volumes:
129 | - ./config/promtail-config.yml:/etc/promtail/promtail-config.yml:ro
130 | syslog-ng:
131 | command: -edv
132 | container_name: syslog-ng
133 | depends_on:
134 | - promtail
135 | image: balabit/syslog-ng:latest
136 | networks:
137 | loki: null
138 | ports:
139 | - protocol: udp
140 | published: 514
141 | target: 514
142 | - protocol: tcp
143 | published: 601
144 | target: 601
145 | restart: always
146 | volumes:
147 | - ./config/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf:ro
148 | version: '3.3'
149 |
--------------------------------------------------------------------------------
/docker-compose-without-monitoring.yml:
--------------------------------------------------------------------------------
1 | networks:
2 | loki: {}
3 | services:
4 | grafana:
5 | container_name: grafana
6 | environment:
7 | GF_AUTH_ANONYMOUS_ENABLED: "true"
8 | GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
9 | GF_AUTH_BASIC_ENABLED: "false"
10 | GF_AUTH_DISABLE_LOGIN_FORM: "true"
11 | GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/no_folder/loki_syslog_aio_overview.json
12 | image: grafana/grafana:8.1.2
13 | networks:
14 | loki: null
15 | ports:
16 | - protocol: tcp
17 | published: 3000
18 | target: 3000
19 | restart: always
20 | volumes:
21 | - ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
22 | - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
23 | - ./config/grafana/dashboards:/var/lib/grafana/dashboards:ro
24 | loki:
25 | command: -config.file=/etc/loki/loki-config.yml
26 | container_name: loki
27 | depends_on:
28 | - minio
29 | image: grafana/loki:2.3.0
30 | networks:
31 | loki: null
32 | ports:
33 | - protocol: tcp
34 | published: 3100
35 | target: 3100
36 | restart: always
37 | volumes:
38 | - ./config/loki-config-s3.yml:/etc/loki/loki-config.yml:ro
39 | minio:
40 | command: -c 'mkdir -p /data/loki && /usr/bin/docker-entrypoint.sh minio server /data'
41 | container_name: minio
42 | entrypoint: sh
43 | environment:
44 | MINIO_ACCESS_KEY: minio123
45 | MINIO_PROMETHEUS_AUTH_TYPE: public
46 | MINIO_SECRET_KEY: minio456
47 | healthcheck:
48 | interval: 30s
49 | retries: 3
50 | test:
51 | - CMD
52 | - curl
53 | - -f
54 | - http://localhost:9000/minio/health/live
55 | timeout: 20s
56 | image: minio/minio:latest
57 | networks:
58 | loki: null
59 | ports:
60 | - published: 9000
61 | target: 9000
62 | restart: always
63 | promtail:
64 | command: -config.file=/etc/promtail/promtail-config.yml
65 | container_name: promtail
66 | image: grafana/promtail:2.3.0
67 | networks:
68 | loki: null
69 | ports:
70 | - protocol: tcp
71 | published: 1514
72 | target: 1514
73 | - protocol: tcp
74 | published: 9080
75 | target: 9080
76 | restart: always
77 | volumes:
78 | - ./config/promtail-config.yml:/etc/promtail/promtail-config.yml:ro
79 | syslog-ng:
80 | command: -edv
81 | container_name: syslog-ng
82 | depends_on:
83 | - promtail
84 | image: balabit/syslog-ng:latest
85 | networks:
86 | loki: null
87 | ports:
88 | - protocol: udp
89 | published: 514
90 | target: 514
91 | - protocol: tcp
92 | published: 601
93 | target: 601
94 | restart: always
95 | volumes:
96 | - ./config/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf:ro
97 | version: '3.3'
98 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | networks:
2 | loki: {}
3 | services:
4 | cadvisor:
5 | container_name: cadvisor
6 | image: gcr.io/cadvisor/cadvisor:latest
7 | networks:
8 | loki: null
9 | ports:
10 | - published: 8080
11 | target: 8080
12 | restart: always
13 | volumes:
14 | - /:/rootfs:ro
15 | - /var/run:/var/run:rw
16 | - /sys:/sys:ro
17 | - /var/lib/docker:/var/lib/docker:ro
18 | grafana:
19 | container_name: grafana
20 | environment:
21 | GF_AUTH_ANONYMOUS_ENABLED: "true"
22 | GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
23 | GF_AUTH_BASIC_ENABLED: "false"
24 | GF_AUTH_DISABLE_LOGIN_FORM: "true"
25 | GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: /var/lib/grafana/dashboards/no_folder/loki_syslog_aio_overview.json
26 | image: grafana/grafana:8.1.2
27 | networks:
28 | loki: null
29 | ports:
30 | - protocol: tcp
31 | published: 3000
32 | target: 3000
33 | restart: always
34 | volumes:
35 | - ./config/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
36 | - ./config/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
37 | - ./config/grafana/dashboards:/var/lib/grafana/dashboards:ro
38 | loki:
39 | command: -config.file=/etc/loki/loki-config.yml
40 | container_name: loki
41 | depends_on:
42 | - minio
43 | image: grafana/loki:2.3.0
44 | networks:
45 | loki: null
46 | ports:
47 | - protocol: tcp
48 | published: 3100
49 | target: 3100
50 | restart: always
51 | volumes:
52 | - ./config/loki-config-s3.yml:/etc/loki/loki-config.yml:ro
53 | minio:
54 | command: -c 'mkdir -p /data/loki && /usr/bin/docker-entrypoint.sh minio server /data'
55 | container_name: minio
56 | entrypoint: sh
57 | environment:
58 | MINIO_ACCESS_KEY: minio123
59 | MINIO_PROMETHEUS_AUTH_TYPE: public
60 | MINIO_SECRET_KEY: minio456
61 | healthcheck:
62 | interval: 30s
63 | retries: 3
64 | test:
65 | - CMD
66 | - curl
67 | - -f
68 | - http://localhost:9000/minio/health/live
69 | timeout: 20s
70 | image: minio/minio:latest
71 | networks:
72 | loki: null
73 | ports:
74 | - published: 9000
75 | target: 9000
76 | restart: always
77 | node-exporter:
78 | command: --path.rootfs=/host
79 | container_name: node-exporter
80 | image: prom/node-exporter:latest
81 | networks:
82 | loki: null
83 | pid: host
84 | ports:
85 | - published: 9100
86 | target: 9100
87 | restart: always
88 | volumes:
89 | - /:/host:ro,rslave
90 | prometheus:
91 | command:
92 | - --config.file=/etc/prometheus/prometheus.yml
93 | - --storage.tsdb.path=/prometheus
94 | - --web.enable-admin-api
95 | - --web.enable-lifecycle
96 | container_name: prometheus
97 | image: prom/prometheus:latest
98 | networks:
99 | loki: null
100 | ports:
101 | - published: 9090
102 | target: 9090
103 | restart: always
104 | volumes:
105 | - ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
106 | promtail:
107 | command: -config.file=/etc/promtail/promtail-config.yml
108 | container_name: promtail
109 | image: grafana/promtail:2.3.0
110 | networks:
111 | loki: null
112 | ports:
113 | - protocol: tcp
114 | published: 1514
115 | target: 1514
116 | - protocol: tcp
117 | published: 9080
118 | target: 9080
119 | restart: always
120 | volumes:
121 | - ./config/promtail-config.yml:/etc/promtail/promtail-config.yml:ro
122 | syslog-ng:
123 | command: -edv
124 | container_name: syslog-ng
125 | depends_on:
126 | - promtail
127 | image: balabit/syslog-ng:latest
128 | networks:
129 | loki: null
130 | ports:
131 | - protocol: udp
132 | published: 514
133 | target: 514
134 | - protocol: tcp
135 | published: 601
136 | target: 601
137 | restart: always
138 | volumes:
139 | - ./config/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf:ro
140 | version: '3.3'
141 |
--------------------------------------------------------------------------------
/generator/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM grafana/promtail:2.3.0
2 |
3 | RUN apt-get update && apt-get install -y netcat bc curl dumb-init bash procps coreutils vim net-tools
4 |
5 | COPY ./entrypoint.sh /
6 | ENTRYPOINT ["/entrypoint.sh"]
7 | CMD [ "10", "500" ]
8 |
--------------------------------------------------------------------------------
/generator/build.sh:
--------------------------------------------------------------------------------
1 | docker build -t docker01.tylephony.com:5000/lux4rd0/syslog-generator:latest -f Dockerfile --no-cache .
2 |
3 | docker push docker01.tylephony.com:5000/lux4rd0/syslog-generator:latest
4 |
--------------------------------------------------------------------------------
/generator/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | n=-1
3 | c=0
4 | if [ -n "$3" ]
5 | then
6 | n=$3
7 | fi
8 |
9 | endpoint="syslog-ng"
10 |
11 | while [ "$n" -ne $c ]
12 | do
13 |
14 | arr[0]="loki.grafana.com"
15 | arr[1]="tempo.grafana.com"
16 | arr[2]="grafana.grafana.com"
17 | arr[3]="prometheus.grafana.com"
18 | arr[4]="cortex.grafana.com"
19 | arr[5]="tanka.grafana.com"
20 | rand=$[$RANDOM % ${#arr[@]}]
21 | random_host=${arr[$rand]}
22 |
23 |
24 | WAIT=$(shuf -i "$1"-"$2" -n 1)
25 | sleep $(echo "scale=4; $WAIT/1000" | bc)
26 | I=$(shuf -i 1-4 -n 1)
27 | D=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
28 | case "$I" in
29 | "1") echo "$D ${random_host} ERROR An error is usually an exception that has been caught and not handled." | nc -u -w1 ${endpoint} 514
30 | ;;
31 | "2") echo "$D ${random_host} INFO An info is often used to provide context in the current task." | nc -u -w1 ${endpoint} 514
32 | ;;
33 | "3") echo "$D ${random_host} WARN A warning that should be ignored is usually at this level and should be actionable." | nc -u -w1 ${endpoint} 514
34 | ;;
35 | "4") echo "$D ${random_host} DEBUG This is a debug log that shows a log that can be ignored." | nc -u -w1 ${endpoint} 514
36 | ;;
37 | esac
38 | c=$(( c+1 ))
39 | done
40 |
--------------------------------------------------------------------------------
/loki_syslog_aio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lux4rd0/grafana-loki-syslog-aio/2641b720e1e55f81cf86c474d05002a42ceaad0a/loki_syslog_aio.png
--------------------------------------------------------------------------------
/loki_syslog_aio_overview_generator_sized.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lux4rd0/grafana-loki-syslog-aio/2641b720e1e55f81cf86c474d05002a42ceaad0a/loki_syslog_aio_overview_generator_sized.png
--------------------------------------------------------------------------------
/loki_syslog_aio_overview_sized.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lux4rd0/grafana-loki-syslog-aio/2641b720e1e55f81cf86c474d05002a42ceaad0a/loki_syslog_aio_overview_sized.png
--------------------------------------------------------------------------------