fix
674
LICENSE.txt
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
122
README.md
Normal file
@ -0,0 +1,122 @@
|
||||
# PiCluster
|
||||
|
||||
![Pic](https://git.rage.lol/verita84/picluster/raw/branch/master/images/piclusterLogo.png)
|
||||
|
||||
PiCluster is a simple way to manage Docker containers on multiple hosts. I created this because I found Docker Swarm not that good and Kubernetes was too difficult to install currently on ARM. PiCluster will only build and run images from Dockerfile's on the host specified in the config file. This software will work on regular x86 hardware also and is not tied to ARM.
|
||||
|
||||
|
||||
|
||||
[![Build Status](https://travis-ci.org/picluster/picluster.svg?branch=master)](https://travis-ci.org/picluster/picluster) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
|
||||
|
||||
![Pic](https://git.rage.lol/verita84/picluster/raw/branch/master/images/picluster-mainscreen.png)
|
||||
|
||||
## Features
|
||||
|
||||
- Move containers to different hosts in the cluster
|
||||
- Container Load Balancer
|
||||
- Run commands in parallel across Nodes
|
||||
- Heartbeat for services
|
||||
- Easily build and orchestrate Docker images across nodes
|
||||
- Web interface
|
||||
- CLI interface
|
||||
- Monitor host metrics (Disk, CPU, Memory)
|
||||
- HTTP interface
|
||||
- Virtual Networking via Swarm
|
||||
- Virtual IP Manager
|
||||
- Rsyslog Analytics
|
||||
- Built-in web terminal to easily run commands on nodes
|
||||
- Integrate the Kibana dashboard into PiCluster
|
||||
- Integrates with Elasticsearch to store the PiCluster logs and host monitoring metrics .
|
||||
- Automatic container failover to different nodes
|
||||
- Pull container images from a registry
|
||||
- Upload Dockerfile archives to the entire cluster
|
||||
- Functions-as-a-Service (FaaS)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Docker
|
||||
- Node.js
|
||||
- OpenSSL
|
||||
- pq
|
||||
- git
|
||||
- curl
|
||||
|
||||
### Ubuntu
|
||||
```
|
||||
apt-get install openssl git node docker pq curl
|
||||
```
|
||||
|
||||
### Arch Linux
|
||||
```
|
||||
pacman -S openssl git node docker pq curl
|
||||
```
|
||||
|
||||
## Cloning this Repository
|
||||
|
||||
```
|
||||
git clone https://git.rage.lol/verita84/picluster.git picluster
|
||||
```
|
||||
|
||||
To clone the developer branch (not recommended unless you know what you're doing):
|
||||
|
||||
```
|
||||
git clone -b dev https://git.rage.lol/verita84/picluster.git picluster
|
||||
```
|
||||
|
||||
## Config file reference
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Config-Reference)
|
||||
|
||||
## Try PiCluster in Docker
|
||||
|
||||
We included a compose file to evaluate PiCluster easily on your laptop. Simply Install Docker on your laptop and do the following:
|
||||
|
||||
```
|
||||
cd picluster
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
Finally, in your web browser go to <http://127.0.0.1:3003>
|
||||
|
||||
## Installation
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Installation)
|
||||
|
||||
## Container Load Balancer
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Container-Load-Balancer)
|
||||
|
||||
## Upgrading
|
||||
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Upgrading)
|
||||
|
||||
## Functions-as-a-Service (FAAS)
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Serverless-%28FaaS%29)
|
||||
<br>
|
||||
|
||||
## Configuring and using the command-line client "pictl"
|
||||
|
||||
[See Wiki](https://github.com/picluster/picluster/wiki/Pictl)
|
||||
|
||||
## SSL/TLS
|
||||
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/SSL-Configuration)
|
||||
|
||||
## Using pm2 to init PiCluster on systemd
|
||||
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/PM2)
|
||||
|
||||
## Automatic Container failover to other hosts
|
||||
|
||||
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Automatic-Container-failover-to-other-hosts)
|
||||
|
||||
# Authors and Contributions
|
||||
|
||||
* Project created by [Verita84](https://rage.lol/verita84).
|
||||
|
||||
* [TokinRing](https://github.com/TokinRing), core developer.
|
||||
|
||||
* [AidanHarris](https://github.com/aidanharris), core developer.
|
||||
|
||||
* PiCluster Logos by chzbacon.
|
||||
|
||||
## Images
|
||||
|
||||
This work, "Raspy Whale", is a derivative of "raspberry" by Chanut is Industries from the Noun Project used under CC BY, "Sperm Whale" by Oksana Latysheva from the Noun Project used under CC BY, and "Sperm Whale" by Oksana Latysheva from the Noun Project used under CC BY. "Raspy Whale" is licensed under CC BY by Jordan Sinn.
|
23
RELEASE_NOTES.txt
Normal file
@ -0,0 +1,23 @@
|
||||
# Version 3.0.11
|
||||
|
||||
## New Features:
|
||||
* Manage Containers: Has a new option called "Commit Image" that allows you to update a Docker image with the current running image.
|
||||
* Operations: Has a new option called "Edit Hosts" which will let you modify /etc/hosts on the server and then it will be copied to each node.
|
||||
|
||||
## Enhancements:
|
||||
* Added PiCluster version to /nodes API
|
||||
* Webconsole: Displays version number from server
|
||||
* Webconsole: Removed depcreciated BodyParser constructor
|
||||
* Webconsole: Image list shows size and created time.
|
||||
* ElasticSearch: Support for SSL/TLS
|
||||
|
||||
## Removed or Deprecated:
|
||||
* None
|
||||
|
||||
## Bug Fixes:
|
||||
* Docker Swarm fix for adding nodes to existing cluster
|
||||
* Heatbeat - Was incorrectly sending restart requests to the Server instead of Agent
|
||||
* Node List - Fix for displaying the Ubuntu Logo
|
||||
* Docker-compose files functional, moved away from Alpine Linux
|
||||
* Updated Github Link to git.rage.lol on blank.html
|
||||
* Server no longer hangs when running a command when a node is offline
|
495
agent/agent.js
Normal file
@ -0,0 +1,495 @@
|
||||
const http = require('http');
|
||||
const https = require('https');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
const unzip = require('unzip-stream');
|
||||
const express = require('express');
|
||||
const diskspace = require('diskspace');
|
||||
const bodyParser = require('body-parser');
|
||||
const multer = require('multer');
|
||||
const getos = require('getos');
|
||||
const sysinfo = require('systeminformation');
|
||||
const {
|
||||
exec
|
||||
} = require('child_process');
|
||||
const superagent = require('superagent');
|
||||
let config = process.env.PICLUSTER_CONFIG ? JSON.parse(fs.readFileSync(process.env.PICLUSTER_CONFIG, 'utf8')) : JSON.parse(fs.readFileSync('../config.json', 'utf8'));
|
||||
const app = express();
|
||||
|
||||
if (config.ssl_self_signed) {
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
}
|
||||
|
||||
app.use(express.json({
|
||||
limit: '20mb'
|
||||
}));
|
||||
|
||||
const upload = multer({
|
||||
dest: '../'
|
||||
});
|
||||
|
||||
const scheme = config.ssl ? 'https://' : 'http://';
|
||||
const ssl_self_signed = config.ssl_self_signed === false;
|
||||
let server = config.web_connect;
|
||||
let {
|
||||
server_port
|
||||
} = config;
|
||||
const {
|
||||
agent_port
|
||||
} = config;
|
||||
const node = os.hostname();
|
||||
let {
|
||||
token
|
||||
} = config;
|
||||
const noop = () => {};
|
||||
let vip = '';
|
||||
let vip_slave = '';
|
||||
let ip_add_command = '';
|
||||
let ip_delete_command = '';
|
||||
let vip_ping_time = '';
|
||||
let cpu_percent = 0;
|
||||
let os_type = '';
|
||||
let disk_percentage = 0;
|
||||
let total_running_containers = 0;
|
||||
let container_uptime = '';
|
||||
let network_rx = 0;
|
||||
let network_tx = 0;
|
||||
let running_containers = '';
|
||||
let container_mem_stats = '';
|
||||
let container_cpu_stats = '';
|
||||
let cpu_cores = 0;
|
||||
let memory_buffers = 0;
|
||||
let memory_swap = 0;
|
||||
let memory_total = 0;
|
||||
let memory_used = 0;
|
||||
let memory_percentage = 0;
|
||||
let images = '';
|
||||
let network_device = '';
|
||||
|
||||
sysinfo.networkInterfaces(data => {
|
||||
network_device = data[1].iface;
|
||||
});
|
||||
|
||||
function monitoring() {
|
||||
|
||||
sysinfo.networkStats(network_device, data => {
|
||||
network_tx = Math.round(data[0].tx_sec / 1000);
|
||||
network_rx = Math.round(data[0].rx_sec / 1000);
|
||||
});
|
||||
sysinfo.mem(data => {
|
||||
memory_total = data.total;
|
||||
memory_buffers = data.buffcache;
|
||||
memory_used = data.used;
|
||||
memory_swap = data.swapused;
|
||||
const this_os = os.platform();
|
||||
|
||||
if (this_os.indexOf('linux') > -1) {
|
||||
memory_percentage = Math.round((memory_used - memory_buffers) / memory_total * 100);
|
||||
} else {
|
||||
memory_percentage = Math.round((memory_swap + memory_buffers) / memory_total * 100);
|
||||
}
|
||||
});
|
||||
|
||||
exec('docker container ps -q', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
total_running_containers = stdout.split('\n').length - 1;
|
||||
});
|
||||
|
||||
exec('docker ps --format "{{.Names}}"', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
running_containers = stdout.split('\n');
|
||||
});
|
||||
|
||||
exec('docker stats --no-stream --format "{{.CPUPerc}}"', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
container_cpu_stats = stdout.replace(/%/gi, '').split('\n');
|
||||
});
|
||||
|
||||
exec('docker stats --no-stream --format "{{.MemPerc}}"', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
container_mem_stats = stdout.replace(/%/gi, '').split('\n');
|
||||
});
|
||||
|
||||
exec('docker ps --format "{{.Status}}"', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
container_uptime = stdout.split('\n');
|
||||
});
|
||||
|
||||
exec('docker images --format "table {{.Repository}}\t{{.CreatedSince}}\t{{.Size}}"', (err, stdout) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
images = stdout.split('\n');
|
||||
for (const i in images) {
|
||||
if ((images[i].indexOf('REPOSITORY') > -1) || images[i].indexOf('<none>') > -1) {
|
||||
images[i] = '';
|
||||
}
|
||||
}
|
||||
images = images.filter((e, pos) => {
|
||||
return e.length > 0 && images.indexOf(e) === pos;
|
||||
});
|
||||
images = images.sort();
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
getos((e, os) => {
|
||||
os_type = (e) ? '' : os.dist || os.os;
|
||||
});
|
||||
|
||||
diskspace.check('/', (err, result) => {
|
||||
if (!err) {
|
||||
disk_percentage = Math.round(result.used / result.total * 100);
|
||||
}
|
||||
});
|
||||
|
||||
require('cpu-stats')(1000, (error, result) => {
|
||||
cpu_cores = 0;
|
||||
let usage = 0;
|
||||
result.forEach(e => {
|
||||
usage += e.cpu;
|
||||
cpu_cores++;
|
||||
});
|
||||
cpu_percent = usage;
|
||||
});
|
||||
monitoring();
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
function send_ping() {
|
||||
setTimeout(() => {
|
||||
superagent
|
||||
.post(`${scheme}${vip_slave}:${agent_port}/pong`)
|
||||
.send({
|
||||
token: token
|
||||
})
|
||||
.set('accept', 'json')
|
||||
.end((err, res) => {
|
||||
let found_vip = false;
|
||||
if (err) {
|
||||
const cmd = ip_add_command;
|
||||
exec(cmd, (error, stdout, stderr) => {}, err => {
|
||||
if (err) {
|
||||
console.error('error:', err);
|
||||
}
|
||||
// Console.log('output', output);
|
||||
});
|
||||
} else {
|
||||
const interfaces = require('os').networkInterfaces();
|
||||
Object.keys(interfaces).forEach(devName => {
|
||||
const iface = interfaces[devName];
|
||||
iface.forEach(alias => {
|
||||
if (alias.address === vip) {
|
||||
found_vip = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
const json_object = JSON.parse(res.text);
|
||||
|
||||
if (json_object.vip_detected === 'false' && found_vip === false) {
|
||||
console.log('\nVIP not detected on either machine. Bringing up the VIP on this host.');
|
||||
const cmd = ip_add_command;
|
||||
exec(cmd, (error, stdout, stderr) => {}, err => {
|
||||
if (err) {
|
||||
console.error('error:', err);
|
||||
}
|
||||
// Console.log('output', output);
|
||||
});
|
||||
}
|
||||
if ((json_object.vip_detected === 'true' && found_vip === true)) {
|
||||
console.log('\nVIP detected on boths hosts! Stopping the VIP on this host.');
|
||||
const cmd = ip_delete_command;
|
||||
exec(cmd, (error, stdout, stderr) => {}, err => {
|
||||
if (err) {
|
||||
console.error('error:', err);
|
||||
}
|
||||
// Console.log('output', output);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
send_ping();
|
||||
}, vip_ping_time);
|
||||
}
|
||||
|
||||
app.get('/rsyslog', (req, res) => {
|
||||
const check_token = req.query.token;
|
||||
if ((check_token !== token) || (!check_token)) {
|
||||
res.end('\nError: Invalid Credentials');
|
||||
} else {
|
||||
res.sendFile(config.rsyslog_logfile);
|
||||
}
|
||||
});
|
||||
|
||||
app.get('/node-status', (req, res) => {
|
||||
const check_token = req.query.token;
|
||||
if ((check_token !== token) || (!check_token)) {
|
||||
res.end('\nError: Invalid Credentials');
|
||||
} else {
|
||||
const json_output = JSON.stringify({
|
||||
cpu_percent,
|
||||
hostname: node,
|
||||
os_type: (os_type === '') ? os.platform() : os_type,
|
||||
disk_percentage,
|
||||
total_running_containers,
|
||||
running_containers,
|
||||
container_mem_stats,
|
||||
container_cpu_stats,
|
||||
container_uptime,
|
||||
network_rx,
|
||||
network_tx,
|
||||
images,
|
||||
cpu_cores,
|
||||
memory_percentage
|
||||
});
|
||||
res.send(json_output);
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/pong', (req, res) => {
|
||||
const check_token = req.body.token;
|
||||
if (check_token !== token) {
|
||||
return res.status(500).send('Something broke!');
|
||||
}
|
||||
|
||||
let vip_status = 'false';
|
||||
const interfaces = require('os').networkInterfaces();
|
||||
|
||||
Object.keys(interfaces).forEach(devName => {
|
||||
const iface = interfaces[devName];
|
||||
iface.forEach(alias => {
|
||||
if (alias.address === vip) {
|
||||
vip_status = 'true';
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const body = {
|
||||
vip_detected: vip_status
|
||||
};
|
||||
res.send(body);
|
||||
});
|
||||
|
||||
function unzipFile(file) {
|
||||
fs.createReadStream(file).pipe(new unzip.Extract({
|
||||
path: config.docker
|
||||
}));
|
||||
}
|
||||
|
||||
function reloadConfig() {
|
||||
try {
|
||||
config = process.env.PICLUSTER_CONFIG ? JSON.parse(fs.readFileSync(process.env.PICLUSTER_CONFIG, 'utf8')) : JSON.parse(fs.readFileSync('../config.json', 'utf8'));
|
||||
token = config.token;
|
||||
server = config.web_connect;
|
||||
server_port = config.server_port;
|
||||
} catch (error) {
|
||||
console.log(process.env.PICLUSTER_CONFIG);
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
app.post('/receive-file', upload.single('file'), (req, res) => {
|
||||
const check_token = req.body.token;
|
||||
const get_config_file = req.body.config_file;
|
||||
let data = '';
|
||||
|
||||
if ((check_token !== token) || (!check_token)) {
|
||||
res.end('\nError: Invalid Credentials');
|
||||
} else {
|
||||
let newPath = req.body.name;
|
||||
let config_file = '';
|
||||
if (get_config_file) {
|
||||
if (process.env.PICLUSTER_CONFIG) {
|
||||
config_file = process.env.PICLUSTER_CONFIG;
|
||||
} else {
|
||||
config_file = '../config.json';
|
||||
}
|
||||
newPath = config_file;
|
||||
data = req.body.data;
|
||||
} else if (req.body.name.indexOf('hosts') > -1) {
|
||||
data = req.body.data;
|
||||
newPath = req.body.name;
|
||||
} else {
|
||||
data = req.body.data.formData.file.data;
|
||||
newPath = config.docker + '/' + req.body.name;
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (req.body.name.indexOf('hosts') > -1) {
|
||||
fs.writeFile(newPath, data, err => {
|
||||
if (err) {
|
||||
console.log('Hosts Write Error:' + err);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
let buff = new Buffer.from(data, 'binary');
|
||||
fs.writeFile(newPath, buff, err => {
|
||||
if (!err) {
|
||||
if (newPath.indexOf('.zip') > -1) {
|
||||
unzipFile(newPath);
|
||||
fs.unlink(newPath, error => {
|
||||
if (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 5000);
|
||||
res.end('Done');
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/run', (req, res) => {
|
||||
const output = {
|
||||
output: "",
|
||||
node
|
||||
};
|
||||
|
||||
const check_token = req.body.token;
|
||||
|
||||
if (check_token !== token) {
|
||||
return res.status(401).json({
|
||||
output: 'Not Authorized to connect to this agent!'
|
||||
});
|
||||
}
|
||||
|
||||
exec(req.body.command, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
output.output = stderr;
|
||||
} else {
|
||||
output.output = stdout;
|
||||
}
|
||||
res.json(output);
|
||||
}, err => {
|
||||
if (err) {
|
||||
console.error('error:', err);
|
||||
}
|
||||
// Console.log('output', output);
|
||||
});
|
||||
});
|
||||
|
||||
if (config.ssl && config.ssl_cert && config.ssl_key) {
|
||||
console.log('SSL Agent API enabled');
|
||||
const ssl_options = {
|
||||
cert: fs.readFileSync(config.ssl_cert),
|
||||
key: fs.readFileSync(config.ssl_key)
|
||||
};
|
||||
const agent = https.createServer(ssl_options, app);
|
||||
agent.listen(agent_port, () => {
|
||||
console.log('Listening on port %d', agent_port);
|
||||
});
|
||||
} else {
|
||||
console.log('Non-SSL Agent API enabled');
|
||||
const agent = http.createServer(app);
|
||||
agent.listen(agent_port, () => {
|
||||
console.log('Listening on port %d', agent_port);
|
||||
});
|
||||
}
|
||||
|
||||
function bootstrapNode() {
|
||||
setTimeout(() => {
|
||||
console.log('Attempting to bootstrap node to server......');
|
||||
|
||||
try {
|
||||
superagent
|
||||
.post(`${scheme}${server}:${server_port}/bootstrap`)
|
||||
.send({
|
||||
token: token,
|
||||
host: node
|
||||
})
|
||||
.set('accept', 'json')
|
||||
.end((err, res) => {
|
||||
if (err) {
|
||||
console.log('Bootstrap failed due to an error or another bootstrap operation already in progress.\n');
|
||||
console.log(err);
|
||||
bootstrapNode();
|
||||
} else {
|
||||
try {
|
||||
const status = JSON.parse(res.text);
|
||||
if (status.output > 0) {
|
||||
console.log('Bootstrap successful.');
|
||||
additional_services();
|
||||
} else {
|
||||
console.log('\nAnother bootstrap is in progress. Will try again soon.....');
|
||||
bootstrapNode();
|
||||
}
|
||||
} catch (error2) {
|
||||
console.log('\n' + error2 + '\n' + JSON.stringify(res.text));
|
||||
bootstrapNode();
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.log('\nAn error has occurred with bootstrapping. Trying again.......' + '\n' + error);
|
||||
bootstrapNode();
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
bootstrapNode();
|
||||
|
||||
function additional_services() {
|
||||
monitoring();
|
||||
|
||||
if (config.autostart_containers) {
|
||||
console.log('Starting all the containers.....');
|
||||
|
||||
superagent
|
||||
.get(`${scheme}${server}:${server_port}/start`)
|
||||
.query({
|
||||
token: token,
|
||||
container: '*'
|
||||
})
|
||||
.end((err, res) => {
|
||||
if (err) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (config.vip_ip && config.vip) {
|
||||
vip = config.vip_ip;
|
||||
Object.keys(config.vip).forEach(i => {
|
||||
const _node = config.vip[i].node;
|
||||
Object.keys(config.vip[i]).forEach(key => {
|
||||
if (!config.vip[i].hasOwnProperty(key)) {
|
||||
return;
|
||||
}
|
||||
const interfaces = require('os').networkInterfaces();
|
||||
Object.keys(interfaces).forEach(devName => {
|
||||
const iface = interfaces[devName];
|
||||
iface.forEach(alias => {
|
||||
if (alias.address !== _node) {
|
||||
return;
|
||||
}
|
||||
vip_slave = config.vip[i].slave;
|
||||
const {
|
||||
vip_eth_device
|
||||
} = config.vip[i];
|
||||
ip_add_command = 'ip addr add ' + config.vip_ip + '/32 dev ' + vip_eth_device;
|
||||
ip_delete_command = 'ip addr del ' + config.vip_ip + '/32 dev ' + vip_eth_device;
|
||||
vip_ping_time = config.vip[i].vip_ping_time;
|
||||
exec(ip_delete_command, (error, stdout, stderr) => {
|
||||
send_ping();
|
||||
}, err => {
|
||||
if (err) {
|
||||
console.error('error:', err);
|
||||
}
|
||||
// Console.log('output', output);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
883
agent/package-lock.json
generated
Normal file
@ -0,0 +1,883 @@
|
||||
{
|
||||
"name": "picluster-agent",
|
||||
"version": "0.0.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"accepts": {
|
||||
"version": "1.3.7",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
|
||||
"integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
|
||||
"requires": {
|
||||
"mime-types": "~2.1.24",
|
||||
"negotiator": "0.6.2"
|
||||
}
|
||||
},
|
||||
"append-field": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
|
||||
"integrity": "sha1-HjRA6RXwsSA9I3SOeO3XubW0PlY="
|
||||
},
|
||||
"array-flatten": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||
"integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
|
||||
},
|
||||
"async": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz",
|
||||
"integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw=="
|
||||
},
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||
},
|
||||
"binary": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz",
|
||||
"integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=",
|
||||
"requires": {
|
||||
"buffers": "~0.1.1",
|
||||
"chainsaw": "~0.1.0"
|
||||
}
|
||||
},
|
||||
"body-parser": {
|
||||
"version": "1.19.0",
|
||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
|
||||
"integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
|
||||
"requires": {
|
||||
"bytes": "3.1.0",
|
||||
"content-type": "~1.0.4",
|
||||
"debug": "2.6.9",
|
||||
"depd": "~1.1.2",
|
||||
"http-errors": "1.7.2",
|
||||
"iconv-lite": "0.4.24",
|
||||
"on-finished": "~2.3.0",
|
||||
"qs": "6.7.0",
|
||||
"raw-body": "2.4.0",
|
||||
"type-is": "~1.6.17"
|
||||
}
|
||||
},
|
||||
"buffer-from": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
|
||||
"integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
|
||||
},
|
||||
"buffers": {
|
||||
"version": "0.1.1",
|
||||
"resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz",
|
||||
"integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s="
|
||||
},
|
||||
"busboy": {
|
||||
"version": "0.2.14",
|
||||
"resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz",
|
||||
"integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=",
|
||||
"requires": {
|
||||
"dicer": "0.2.5",
|
||||
"readable-stream": "1.1.x"
|
||||
}
|
||||
},
|
||||
"bytes": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
|
||||
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
|
||||
},
|
||||
"call-bind": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
||||
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1",
|
||||
"get-intrinsic": "^1.0.2"
|
||||
}
|
||||
},
|
||||
"chainsaw": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz",
|
||||
"integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=",
|
||||
"requires": {
|
||||
"traverse": ">=0.3.0 <0.4"
|
||||
}
|
||||
},
|
||||
"child-process-promise": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/child-process-promise/-/child-process-promise-2.2.1.tgz",
|
||||
"integrity": "sha1-RzChHvYQ+tRQuPIjx50x172tgHQ=",
|
||||
"requires": {
|
||||
"cross-spawn": "^4.0.2",
|
||||
"node-version": "^1.0.0",
|
||||
"promise-polyfill": "^6.0.1"
|
||||
}
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"requires": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"component-emitter": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
||||
"integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
|
||||
},
|
||||
"concat-stream": {
|
||||
"version": "1.6.2",
|
||||
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
|
||||
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
||||
"requires": {
|
||||
"buffer-from": "^1.0.0",
|
||||
"inherits": "^2.0.3",
|
||||
"readable-stream": "^2.2.2",
|
||||
"typedarray": "^0.0.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"isarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "2.3.7",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
||||
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.3",
|
||||
"isarray": "~1.0.0",
|
||||
"process-nextick-args": "~2.0.0",
|
||||
"safe-buffer": "~5.1.1",
|
||||
"string_decoder": "~1.1.1",
|
||||
"util-deprecate": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
||||
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
||||
"requires": {
|
||||
"safe-buffer": "~5.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"content-disposition": {
|
||||
"version": "0.5.3",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
|
||||
"integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
|
||||
"requires": {
|
||||
"safe-buffer": "5.1.2"
|
||||
}
|
||||
},
|
||||
"content-type": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
|
||||
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
|
||||
},
|
||||
"cookie": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
|
||||
"integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
|
||||
},
|
||||
"cookie-signature": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
|
||||
},
|
||||
"cookiejar": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz",
|
||||
"integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA=="
|
||||
},
|
||||
"core-util-is": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
||||
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
|
||||
},
|
||||
"cpu-stats": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/cpu-stats/-/cpu-stats-1.0.0.tgz",
|
||||
"integrity": "sha1-Mqkp1xk3nzXQ0+4MLS0T72zhX+8="
|
||||
},
|
||||
"cross-spawn": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz",
|
||||
"integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=",
|
||||
"requires": {
|
||||
"lru-cache": "^4.0.1",
|
||||
"which": "^1.2.9"
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.6.9",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||
"requires": {
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
|
||||
},
|
||||
"depd": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
||||
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
||||
},
|
||||
"destroy": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
|
||||
"integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
|
||||
},
|
||||
"dicer": {
|
||||
"version": "0.2.5",
|
||||
"resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz",
|
||||
"integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=",
|
||||
"requires": {
|
||||
"readable-stream": "1.1.x",
|
||||
"streamsearch": "0.1.2"
|
||||
}
|
||||
},
|
||||
"diskspace": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/diskspace/-/diskspace-2.0.0.tgz",
|
||||
"integrity": "sha1-/eO4jVzV4V0Je7QuVQcz4liMyRM="
|
||||
},
|
||||
"ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
||||
},
|
||||
"encodeurl": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
||||
"integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
|
||||
},
|
||||
"escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
|
||||
},
|
||||
"etag": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
||||
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
|
||||
},
|
||||
"express": {
|
||||
"version": "4.17.1",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
|
||||
"integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
|
||||
"requires": {
|
||||
"accepts": "~1.3.7",
|
||||
"array-flatten": "1.1.1",
|
||||
"body-parser": "1.19.0",
|
||||
"content-disposition": "0.5.3",
|
||||
"content-type": "~1.0.4",
|
||||
"cookie": "0.4.0",
|
||||
"cookie-signature": "1.0.6",
|
||||
"debug": "2.6.9",
|
||||
"depd": "~1.1.2",
|
||||
"encodeurl": "~1.0.2",
|
||||
"escape-html": "~1.0.3",
|
||||
"etag": "~1.8.1",
|
||||
"finalhandler": "~1.1.2",
|
||||
"fresh": "0.5.2",
|
||||
"merge-descriptors": "1.0.1",
|
||||
"methods": "~1.1.2",
|
||||
"on-finished": "~2.3.0",
|
||||
"parseurl": "~1.3.3",
|
||||
"path-to-regexp": "0.1.7",
|
||||
"proxy-addr": "~2.0.5",
|
||||
"qs": "6.7.0",
|
||||
"range-parser": "~1.2.1",
|
||||
"safe-buffer": "5.1.2",
|
||||
"send": "0.17.1",
|
||||
"serve-static": "1.14.1",
|
||||
"setprototypeof": "1.1.1",
|
||||
"statuses": "~1.5.0",
|
||||
"type-is": "~1.6.18",
|
||||
"utils-merge": "1.0.1",
|
||||
"vary": "~1.1.2"
|
||||
}
|
||||
},
|
||||
"fast-safe-stringify": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz",
|
||||
"integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA=="
|
||||
},
|
||||
"fd-diskspace": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fd-diskspace/-/fd-diskspace-1.0.0.tgz",
|
||||
"integrity": "sha1-fru4oPQm3GHG2ruiE6IqTUIh9k8="
|
||||
},
|
||||
"finalhandler": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
|
||||
"integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
"encodeurl": "~1.0.2",
|
||||
"escape-html": "~1.0.3",
|
||||
"on-finished": "~2.3.0",
|
||||
"parseurl": "~1.3.3",
|
||||
"statuses": "~1.5.0",
|
||||
"unpipe": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"form-data": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",
|
||||
"integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
|
||||
"requires": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"formidable": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.2.tgz",
|
||||
"integrity": "sha512-V8gLm+41I/8kguQ4/o1D3RIHRmhYFG4pnNyonvua+40rqcEmT4+V71yaZ3B457xbbgCsCfjSPi65u/W6vK1U5Q=="
|
||||
},
|
||||
"forwarded": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
|
||||
"integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
|
||||
},
|
||||
"fresh": {
|
||||
"version": "0.5.2",
|
||||
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
||||
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
|
||||
},
|
||||
"fs": {
|
||||
"version": "0.0.1-security",
|
||||
"resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||
"integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ="
|
||||
},
|
||||
"function-bind": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
|
||||
},
|
||||
"get-intrinsic": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
|
||||
"integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3",
|
||||
"has-symbols": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"getos": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
|
||||
"integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
|
||||
"requires": {
|
||||
"async": "^3.2.0"
|
||||
}
|
||||
},
|
||||
"graceful-fs": {
|
||||
"version": "4.2.6",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
|
||||
"integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ=="
|
||||
},
|
||||
"has": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
||||
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1"
|
||||
}
|
||||
},
|
||||
"has-symbols": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
|
||||
"integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw=="
|
||||
},
|
||||
"http-errors": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
|
||||
"integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
|
||||
"requires": {
|
||||
"depd": "~1.1.2",
|
||||
"inherits": "2.0.3",
|
||||
"setprototypeof": "1.1.1",
|
||||
"statuses": ">= 1.5.0 < 2",
|
||||
"toidentifier": "1.0.0"
|
||||
}
|
||||
},
|
||||
"iconv-lite": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
||||
"requires": {
|
||||
"safer-buffer": ">= 2.1.2 < 3"
|
||||
}
|
||||
},
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
||||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
|
||||
},
|
||||
"ipaddr.js": {
|
||||
"version": "1.9.1",
|
||||
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
||||
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
|
||||
},
|
||||
"isarray": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
|
||||
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
|
||||
},
|
||||
"isexe": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
||||
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
|
||||
},
|
||||
"line-reader": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/line-reader/-/line-reader-0.4.0.tgz",
|
||||
"integrity": "sha1-F+RIGNoKwzVnW6MAlU+U72cOZv0="
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"lru-cache": {
|
||||
"version": "4.1.5",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
|
||||
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
|
||||
"requires": {
|
||||
"pseudomap": "^1.0.2",
|
||||
"yallist": "^2.1.2"
|
||||
}
|
||||
},
|
||||
"media-typer": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
||||
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
|
||||
},
|
||||
"mem-stat": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/mem-stat/-/mem-stat-1.0.5.tgz",
|
||||
"integrity": "sha1-fWbClxhNo4usv+T5zS6aeg4ZUIY="
|
||||
},
|
||||
"merge-descriptors": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
||||
"integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
|
||||
},
|
||||
"methods": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
|
||||
},
|
||||
"mime": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
||||
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.47.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz",
|
||||
"integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.30",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz",
|
||||
"integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==",
|
||||
"requires": {
|
||||
"mime-db": "1.47.0"
|
||||
}
|
||||
},
|
||||
"minimist": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.5",
|
||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
|
||||
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
|
||||
"requires": {
|
||||
"minimist": "^1.2.5"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||
},
|
||||
"multer": {
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/multer/-/multer-1.4.2.tgz",
|
||||
"integrity": "sha512-xY8pX7V+ybyUpbYMxtjM9KAiD9ixtg5/JkeKUTD6xilfDv0vzzOFcCp4Ljb1UU3tSOM3VTZtKo63OmzOrGi3Cg==",
|
||||
"requires": {
|
||||
"append-field": "^1.0.0",
|
||||
"busboy": "^0.2.11",
|
||||
"concat-stream": "^1.5.2",
|
||||
"mkdirp": "^0.5.1",
|
||||
"object-assign": "^4.1.1",
|
||||
"on-finished": "^2.3.0",
|
||||
"type-is": "^1.6.4",
|
||||
"xtend": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"negotiator": {
|
||||
"version": "0.6.2",
|
||||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
|
||||
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
|
||||
},
|
||||
"node-version": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/node-version/-/node-version-1.2.0.tgz",
|
||||
"integrity": "sha512-ma6oU4Sk0qOoKEAymVoTvk8EdXEobdS7m/mAGhDJ8Rouugho48crHBORAmy5BoOcv8wraPM6xumapQp5hl4iIQ=="
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
|
||||
},
|
||||
"object-inspect": {
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.9.0.tgz",
|
||||
"integrity": "sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw=="
|
||||
},
|
||||
"on-finished": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
||||
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
|
||||
"requires": {
|
||||
"ee-first": "1.1.1"
|
||||
}
|
||||
},
|
||||
"os": {
|
||||
"version": "0.1.1",
|
||||
"resolved": "https://registry.npmjs.org/os/-/os-0.1.1.tgz",
|
||||
"integrity": "sha1-IIhF6J4ZOtTZcUdLk5R3NqVtE/M="
|
||||
},
|
||||
"parseurl": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
||||
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "0.1.7",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
|
||||
},
|
||||
"process-nextick-args": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
|
||||
},
|
||||
"promise-polyfill": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-6.1.0.tgz",
|
||||
"integrity": "sha1-36lpQ+qcEh/KTem1hoyznTRy4Fc="
|
||||
},
|
||||
"proxy-addr": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
|
||||
"integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==",
|
||||
"requires": {
|
||||
"forwarded": "~0.1.2",
|
||||
"ipaddr.js": "1.9.1"
|
||||
}
|
||||
},
|
||||
"pseudomap": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
|
||||
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.7.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
|
||||
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
|
||||
},
|
||||
"range-parser": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
|
||||
},
|
||||
"raw-body": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
|
||||
"integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
|
||||
"requires": {
|
||||
"bytes": "3.1.0",
|
||||
"http-errors": "1.7.2",
|
||||
"iconv-lite": "0.4.24",
|
||||
"unpipe": "1.0.0"
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "1.1.14",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
|
||||
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"isarray": "0.0.1",
|
||||
"string_decoder": "~0.10.x"
|
||||
}
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||
},
|
||||
"safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||
},
|
||||
"semver": {
|
||||
"version": "7.3.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
||||
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
||||
"requires": {
|
||||
"lru-cache": "^6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||
"requires": {
|
||||
"yallist": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"send": {
|
||||
"version": "0.17.1",
|
||||
"resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
|
||||
"integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
|
||||
"requires": {
|
||||
"debug": "2.6.9",
|
||||
"depd": "~1.1.2",
|
||||
"destroy": "~1.0.4",
|
||||
"encodeurl": "~1.0.2",
|
||||
"escape-html": "~1.0.3",
|
||||
"etag": "~1.8.1",
|
||||
"fresh": "0.5.2",
|
||||
"http-errors": "~1.7.2",
|
||||
"mime": "1.6.0",
|
||||
"ms": "2.1.1",
|
||||
"on-finished": "~2.3.0",
|
||||
"range-parser": "~1.2.1",
|
||||
"statuses": "~1.5.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ms": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve-static": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
|
||||
"integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
|
||||
"requires": {
|
||||
"encodeurl": "~1.0.2",
|
||||
"escape-html": "~1.0.3",
|
||||
"parseurl": "~1.3.3",
|
||||
"send": "0.17.1"
|
||||
}
|
||||
},
|
||||
"setprototypeof": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
|
||||
"integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
|
||||
},
|
||||
"side-channel": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
||||
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
||||
"requires": {
|
||||
"call-bind": "^1.0.0",
|
||||
"get-intrinsic": "^1.0.2",
|
||||
"object-inspect": "^1.9.0"
|
||||
}
|
||||
},
|
||||
"statuses": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
|
||||
"integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
|
||||
},
|
||||
"streamsearch": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz",
|
||||
"integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo="
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
||||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
|
||||
},
|
||||
"superagent": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-6.1.0.tgz",
|
||||
"integrity": "sha512-OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg==",
|
||||
"requires": {
|
||||
"component-emitter": "^1.3.0",
|
||||
"cookiejar": "^2.1.2",
|
||||
"debug": "^4.1.1",
|
||||
"fast-safe-stringify": "^2.0.7",
|
||||
"form-data": "^3.0.0",
|
||||
"formidable": "^1.2.2",
|
||||
"methods": "^1.1.2",
|
||||
"mime": "^2.4.6",
|
||||
"qs": "^6.9.4",
|
||||
"readable-stream": "^3.6.0",
|
||||
"semver": "^7.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "4.3.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz",
|
||||
"integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==",
|
||||
"requires": {
|
||||
"ms": "2.1.2"
|
||||
}
|
||||
},
|
||||
"mime": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz",
|
||||
"integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg=="
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.10.1",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.10.1.tgz",
|
||||
"integrity": "sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==",
|
||||
"requires": {
|
||||
"side-channel": "^1.0.4"
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
|
||||
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
|
||||
"requires": {
|
||||
"inherits": "^2.0.3",
|
||||
"string_decoder": "^1.1.1",
|
||||
"util-deprecate": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
|
||||
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
||||
"requires": {
|
||||
"safe-buffer": "~5.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sys": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/sys/-/sys-0.0.1.tgz",
|
||||
"integrity": "sha1-NIDMaVcUkFt6vOUKVaWjmFmX5hk="
|
||||
},
|
||||
"systeminformation": {
|
||||
"version": "5.6.12",
|
||||
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.6.12.tgz",
|
||||
"integrity": "sha512-prJAt+iS2ITeygjLt/FGtN1qsIQHrRePCUqWtP0hGv6JsS0LSQTR+y5hWAd4frUIM/sjG95jHFUK1gx244KwUA=="
|
||||
},
|
||||
"toidentifier": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
|
||||
"integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
|
||||
},
|
||||
"traverse": {
|
||||
"version": "0.3.9",
|
||||
"resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz",
|
||||
"integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk="
|
||||
},
|
||||
"type-is": {
|
||||
"version": "1.6.18",
|
||||
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
||||
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
||||
"requires": {
|
||||
"media-typer": "0.3.0",
|
||||
"mime-types": "~2.1.24"
|
||||
}
|
||||
},
|
||||
"typedarray": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||
},
|
||||
"unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
|
||||
},
|
||||
"unzip-stream": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/unzip-stream/-/unzip-stream-0.3.1.tgz",
|
||||
"integrity": "sha512-RzaGXLNt+CW+T41h1zl6pGz3EaeVhYlK+rdAap+7DxW5kqsqePO8kRtWPaCiVqdhZc86EctSPVYNix30YOMzmw==",
|
||||
"requires": {
|
||||
"binary": "^0.3.0",
|
||||
"mkdirp": "^0.5.1"
|
||||
}
|
||||
},
|
||||
"util-deprecate": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
|
||||
},
|
||||
"utils-merge": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||
"integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
|
||||
},
|
||||
"vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
|
||||
},
|
||||
"which": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
|
||||
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
|
||||
"requires": {
|
||||
"isexe": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"xtend": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
|
||||
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
|
||||
},
|
||||
"yallist": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
||||
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
|
||||
}
|
||||
}
|
||||
}
|
28
agent/package.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "picluster-agent",
|
||||
"version": "0.0.1",
|
||||
"config": {
|
||||
"unsafe-perm": true
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "latest",
|
||||
"body-parser": "latest",
|
||||
"child-process-promise": "",
|
||||
"cpu-stats": "latest",
|
||||
"diskspace": "latest",
|
||||
"express": "latest",
|
||||
"fd-diskspace": "latest",
|
||||
"fs": "latest",
|
||||
"getos": "latest",
|
||||
"graceful-fs": "^4.2.6",
|
||||
"line-reader": "latest",
|
||||
"lodash": "^4.17.21",
|
||||
"mem-stat": "latest",
|
||||
"multer": "latest",
|
||||
"os": "latest",
|
||||
"superagent": "latest",
|
||||
"sys": "latest",
|
||||
"systeminformation": "latest",
|
||||
"unzip-stream": "latest"
|
||||
}
|
||||
}
|
24
config-example.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"token": "1234567890ABCDEFGHJKLMNOP",
|
||||
"docker": "../docker",
|
||||
"server_port": "3000",
|
||||
"agent_port": "3001",
|
||||
"ssl": false,
|
||||
"ssl_self_signed": false,
|
||||
"ssl_cert": "",
|
||||
"ssl_key": "",
|
||||
"layout": [
|
||||
],
|
||||
"hb": [
|
||||
],
|
||||
"container_host_constraints": [{
|
||||
}],
|
||||
"automatic_heartbeat": "enabled",
|
||||
"heartbeat_interval": "10000",
|
||||
"syslog": "dmesg",
|
||||
"web_username": "admin",
|
||||
"web_password": "admin",
|
||||
"web_connect": "127.0.0.1",
|
||||
"web_port": "3003",
|
||||
"theme": "default"
|
||||
}
|
54
docker-compose-multi-node.yml
Normal file
@ -0,0 +1,54 @@
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
server:
|
||||
image: "ubuntu:rolling"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- .:/picluster
|
||||
- ./docker-compose-multinode.config.json:/picluster/config.json
|
||||
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
|
||||
ports:
|
||||
- "3003:3003"
|
||||
networks:
|
||||
- picluster
|
||||
working_dir: /picluster
|
||||
command: su -s /bin/sh -lc "export DEBIAN_FRONTEND='noninteractive';apt-get update; apt-get install -y npm nodejs build-essential containerd docker.io containerd runc git python3 make g++ docker procps supervisor; cd /picluster;npm install;cd /picluster/server;/usr/bin/dockerd&npm install;cd /picluster/agent;npm install;cd /picluster/web;npm install;cd /picluster;printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2;supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start /picluster/picluster-pm2.config.json"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
privileged: true
|
||||
|
||||
node2:
|
||||
image: "ubuntu:rolling"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- .:/picluster
|
||||
- ./docker-compose-multinode.config.json:/picluster/config.json
|
||||
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
|
||||
networks:
|
||||
- picluster
|
||||
working_dir: /picluster
|
||||
command: su -s /bin/sh -lc "export DEBIAN_FRONTEND='noninteractive';apt-get update; apt-get install -y npm nodejs build-essential containerd docker.io containerd runc git python3 make g++ docker procps supervisor; cd /picluster;npm install;cd /picluster/server;/usr/bin/dockerd&npm install;cd /picluster/agent;npm install;cd /picluster/web;npm install;cd /picluster;printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2;supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start /picluster/picluster-pm2.config.json"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
privileged: true
|
||||
|
||||
node3:
|
||||
image: "ubuntu:rolling"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- .:/picluster
|
||||
- ./docker-compose-multinode.config.json:/picluster/config.json
|
||||
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
|
||||
networks:
|
||||
- picluster
|
||||
working_dir: /picluster
|
||||
command: su -s /bin/sh -lc "export DEBIAN_FRONTEND='noninteractive';apt-get update; apt-get install -y npm nodejs build-essential containerd docker.io containerd runc git python3 make g++ docker procps supervisor; cd /picluster;npm install;cd /picluster/server;/usr/bin/dockerd&npm install;cd /picluster/agent;npm install;cd /picluster/web;npm install;cd /picluster;printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2;supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start /picluster/picluster-pm2.config.json"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
privileged: true
|
||||
|
||||
|
||||
networks:
|
||||
picluster:
|
||||
|
26
docker-compose-multinode.config.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"token": "1234567890ABCDEFGHJKLMNOP",
|
||||
"docker": "../docker",
|
||||
"doc_dir": "../docs",
|
||||
"server_port": "3000",
|
||||
"theme": "default",
|
||||
"agent_port": "3001",
|
||||
"ssl": false,
|
||||
"ssl_self_signed": false,
|
||||
"ssl_cert": "",
|
||||
"ssl_key": "",
|
||||
"layout": [
|
||||
|
||||
],
|
||||
"hb": [
|
||||
|
||||
],
|
||||
"container_host_constraints": [],
|
||||
"automatic_heartbeat": "enabled",
|
||||
"heartbeat_interval": "300000",
|
||||
"syslog": "dmesg",
|
||||
"web_username": "admin",
|
||||
"web_password": "admin",
|
||||
"web_connect": "server",
|
||||
"web_port": "3003"
|
||||
}
|
18
docker-compose-rpi.yml
Normal file
@ -0,0 +1,18 @@
|
||||
version: '3'
|
||||
services:
|
||||
server:
|
||||
image: rusher81572/alpine
|
||||
restart: "always"
|
||||
volumes:
|
||||
- .:/picluster
|
||||
- ./docker-compose.config.json:/picluster/config.json
|
||||
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3001:3001"
|
||||
- "3003:3003"
|
||||
working_dir: /picluster
|
||||
command: ["sh", "-c", "set -e; printf 'http://mirror.clarkson.edu/alpine/edge/main\nhttp://mirror.clarkson.edu/alpine/edge/community' > /etc/apk/repositories; apk update; apk add --no-cache docker py3-setuptools git g++ make nodejs-current nodejs-current-npm openrc procps python3 supervisor; printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2; supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start picluster-pm2.config.json"]
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
privileged: true
|
26
docker-compose.config.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"token": "1234567890ABCDEFGHJKLMNOP",
|
||||
"docker": "../docker",
|
||||
"doc_dir": "../docs",
|
||||
"server_port": "3000",
|
||||
"theme": "default",
|
||||
"agent_port": "3001",
|
||||
"ssl": false,
|
||||
"ssl_self_signed": false,
|
||||
"ssl_cert": "",
|
||||
"ssl_key": "",
|
||||
"layout": [
|
||||
|
||||
],
|
||||
"hb": [
|
||||
|
||||
],
|
||||
"container_host_constraints": [],
|
||||
"automatic_heartbeat": "enabled",
|
||||
"heartbeat_interval": "300000",
|
||||
"syslog": "dmesg",
|
||||
"web_username": "admin",
|
||||
"web_password": "admin",
|
||||
"web_connect": "0.0.0.0",
|
||||
"web_port": "3003"
|
||||
}
|
18
docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
server:
|
||||
image: "ubuntu:rolling"
|
||||
restart: "always"
|
||||
volumes:
|
||||
- .:/picluster
|
||||
- ./docker-compose.config.json:/picluster/config.json
|
||||
- ./picluster-pm2.config-example.json:/picluster/picluster-pm2.config.json
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3001:3001"
|
||||
- "3003:3003"
|
||||
working_dir: /picluster
|
||||
command: su -s /bin/sh -lc "export DEBIAN_FRONTEND='noninteractive';apt-get update; apt-get install -y npm nodejs build-essential containerd docker.io containerd runc git python3 make g++ docker procps supervisor; cd /picluster;npm install;cd /picluster/server;/usr/bin/dockerd&npm install;cd /picluster/agent;npm install;cd /picluster/web;npm install;cd /picluster;printf \"[supervisord]\n\n[program:dockerd]\ncommand=dockerd\" > /etc/supervisor.conf; npm install -g pm2;supervisord -c /etc/supervisor.conf; npm install --production --unsafe-perm; pm2-docker start /picluster/picluster-pm2.config.json"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
privileged: true
|
0
docker/.gitkeep
Normal file
BIN
docker/picluster_lb.zip
Normal file
12
example/arm/archlinux/mysql/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# Arch Linux ARM (Raspberry Pi 2)
|
||||
|
||||
FROM scratch AS armhf-archlinux
|
||||
|
||||
MAINTAINER TokinRing <support@gnetsolutions.net>
|
||||
LABEL Description="Arch Linux ARM (Raspberry Pi 2)" Repository="armv7/armhf-archlinux"
|
||||
|
||||
ADD http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz /
|
||||
|
||||
RUN pacman -Sy --noconfirm mariadb{-clients,} && pacman -Scc --noconfirm
|
||||
|
||||
CMD /usr/sbin/mysql
|
12
example/arm/archlinux/nginx/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# Arch Linux ARM (Raspberry Pi 2)
|
||||
|
||||
FROM scratch AS armhf-archlinux
|
||||
|
||||
MAINTAINER TokinRing <support@gnetsolutions.net>
|
||||
LABEL Description="Arch Linux ARM (Raspberry Pi 2)" Repository="armv7/armhf-archlinux"
|
||||
|
||||
ADD http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz /
|
||||
|
||||
RUN pacman -Sy --noconfirm nginx && pacman -Scc --noconfirm
|
||||
|
||||
CMD /usr/sbin/nginx -g "daemon off;"
|
BIN
example/arm/function-sample.zip
Normal file
5
example/arm/ubuntu/minio/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM armv7/armhf-ubuntu
|
||||
RUN apt-get update;apt-get install wget -y
|
||||
RUN wget https://dl.minio.io/server/minio/release/linux-amd64/minio
|
||||
RUN chmod +x minio
|
||||
CMD ./minio server /tmp
|
130
example/arm/ubuntu/mysql/50-server.cnf
Normal file
@ -0,0 +1,130 @@
|
||||
#
|
||||
# These groups are read by MariaDB server.
|
||||
# Use it for options that only the server (but not clients) should see
|
||||
#
|
||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
||||
#
|
||||
|
||||
# this is read by the standalone daemon and embedded servers
|
||||
[server]
|
||||
|
||||
# this is only for the mysqld standalone daemon
|
||||
[mysqld]
|
||||
|
||||
#
|
||||
# * Basic Settings
|
||||
#
|
||||
#user = mysql
|
||||
user = root
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
port = 3306
|
||||
basedir = /usr
|
||||
datadir = /var/lib/mysql
|
||||
tmpdir = /tmp
|
||||
lc-messages-dir = /usr/share/mysql
|
||||
skip-external-locking
|
||||
log_bin = /var/log/mysql/mysql-bin.log
|
||||
binlog_format = MIXED
|
||||
# Instead of skip-networking the default is now to listen only on
|
||||
# localhost which is more compatible and is not less secure.
|
||||
bind-address = 0.0.0.0
|
||||
|
||||
#
|
||||
# * Fine Tuning
|
||||
#
|
||||
key_buffer_size = 16M
|
||||
max_allowed_packet = 16M
|
||||
thread_stack = 192K
|
||||
thread_cache_size = 8
|
||||
# This replaces the startup script and checks MyISAM tables if needed
|
||||
# the first time they are touched
|
||||
myisam-recover = BACKUP
|
||||
#max_connections = 100
|
||||
#table_cache = 64
|
||||
#thread_concurrency = 10
|
||||
|
||||
#
|
||||
# * Query Cache Configuration
|
||||
#
|
||||
query_cache_limit = 1M
|
||||
query_cache_size = 16M
|
||||
|
||||
#
|
||||
# * Logging and Replication
|
||||
#
|
||||
# Both location gets rotated by the cronjob.
|
||||
# Be aware that this log type is a performance killer.
|
||||
# As of 5.1 you can enable the log at runtime!
|
||||
#general_log_file = /var/log/mysql/mysql.log
|
||||
#general_log = 1
|
||||
#
|
||||
# Error log - should be very few entries.
|
||||
#
|
||||
log_error = /var/log/mysql/error.log
|
||||
#
|
||||
# Enable the slow query log to see queries with especially long duration
|
||||
#slow_query_log_file = /var/log/mysql/mariadb-slow.log
|
||||
#long_query_time = 10
|
||||
#log_slow_rate_limit = 1000
|
||||
#log_slow_verbosity = query_plan
|
||||
#log-queries-not-using-indexes
|
||||
#
|
||||
# The following can be used as easy to replay backup logs or for replication.
|
||||
# note: if you are setting up a replication slave, see README.Debian about
|
||||
# other settings you may need to change.
|
||||
#server-id = 1
|
||||
#log_bin = /var/log/mysql/mysql-bin.log
|
||||
expire_logs_days = 10
|
||||
max_binlog_size = 100M
|
||||
#binlog_do_db = include_database_name
|
||||
#binlog_ignore_db = include_database_name
|
||||
|
||||
#
|
||||
# * InnoDB
|
||||
#
|
||||
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
|
||||
# Read the manual for more InnoDB related options. There are many!
|
||||
|
||||
#
|
||||
# * Security Features
|
||||
#
|
||||
# Read the manual, too, if you want chroot!
|
||||
# chroot = /var/lib/mysql/
|
||||
#
|
||||
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
|
||||
#
|
||||
# ssl-ca=/etc/mysql/cacert.pem
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
#
|
||||
# * Character sets
|
||||
#
|
||||
# MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
|
||||
# utf8 4-byte character set. See also client.cnf
|
||||
#
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_general_ci
|
||||
|
||||
#
|
||||
# * Unix socket authentication plugin is built-in since 10.0.22-6
|
||||
#
|
||||
# Needed so the root database #user can authenticate without a password but
|
||||
# only when running as the unix root #user.
|
||||
#
|
||||
# Also available for other #users if required.
|
||||
# See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
|
||||
|
||||
# this is only for embedded server
|
||||
[embedded]
|
||||
|
||||
# This group is only read by MariaDB servers, not by MySQL.
|
||||
# If you use the same .cnf file for MySQL and MariaDB,
|
||||
# you can put MariaDB-only options here
|
||||
[mariadb]
|
||||
|
||||
# This group is only read by MariaDB-10.0 servers.
|
||||
# If you use the same .cnf file for MariaDB of different versions,
|
||||
# use this group for options that older servers don't understand
|
||||
[mariadb-10.0]
|
24
example/arm/ubuntu/mysql/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM armv7/armhf-ubuntu
|
||||
ENV sql_password sql
|
||||
ENV TERM xterm
|
||||
RUN apt-get update; DEBIAN_FRONTEND=noninteractive apt-get -y install cron mariadb-client mariadb-server
|
||||
|
||||
#Cron Jobs
|
||||
RUN echo "00 23 * * 0 /sync.sh" >> /crontab
|
||||
RUN echo "00 * * * * mysqladmin flush-hosts" >> /crontab
|
||||
RUN crontab /crontab
|
||||
ADD sync.sh /
|
||||
RUN chmod +x /sync.sh
|
||||
|
||||
#MySQL Config
|
||||
ADD 50-server.cnf /etc/mysql/mariadb.conf.d/
|
||||
|
||||
RUN rm -rf /var/lib/mysql/*
|
||||
|
||||
#Startup Script
|
||||
ADD start.sh /
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
|
||||
EXPOSE 3306
|
||||
CMD /start.sh
|
17
example/arm/ubuntu/mysql/start.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
cron
|
||||
chown -R mysql:mysql /var/lib/mysql
|
||||
|
||||
if [ "$(ls -A /var/lib/mysql)" ]; then
|
||||
echo "Found existing MySQL Data......"
|
||||
mysqld_safe --max_connect_errors=10000 --user root&
|
||||
sleep infinity
|
||||
else
|
||||
echo "No existing database found......"
|
||||
mysql_install_db --user root
|
||||
mysqld_safe --max_connect_errors=10000 --user root&
|
||||
sleep 10
|
||||
mysqladmin -u root password $sql_password
|
||||
mysql -u root -p$sql_password -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '" + $sql_password + "' WITH GRANT OPTION; FLUSH PRIVILEGES;"
|
||||
sleep infinity
|
||||
fi
|
2
example/arm/ubuntu/mysql/sync.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
mysqldump -u root -p$sql_password --all-databases > /saves/database-`date +%Y-%m-%d`.sql
|
11
example/arm/ubuntu/nginx/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM armv7/armhf-ubuntu
|
||||
RUN apt-get update;apt-get install -y nginx
|
||||
|
||||
#ENV Variables
|
||||
ENV TERM xterm
|
||||
|
||||
#Run in foreground
|
||||
RUN sed -i '1s/^/daemon off; /' /etc/nginx/nginx.conf
|
||||
EXPOSE 443 80
|
||||
|
||||
CMD nginx
|
BIN
example/x86_64/ubuntu/function-sample.zip
Normal file
5
example/x86_64/ubuntu/minio/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM ubuntu
|
||||
RUN apt-get update;apt-get install wget -y
|
||||
RUN wget https://dl.minio.io/server/minio/release/linux-amd64/minio
|
||||
RUN chmod +x minio
|
||||
CMD ./minio server /tmp
|
130
example/x86_64/ubuntu/mysql/50-server.cnf
Normal file
@ -0,0 +1,130 @@
|
||||
#
|
||||
# These groups are read by MariaDB server.
|
||||
# Use it for options that only the server (but not clients) should see
|
||||
#
|
||||
# See the examples of server my.cnf files in /usr/share/mysql/
|
||||
#
|
||||
|
||||
# this is read by the standalone daemon and embedded servers
|
||||
[server]
|
||||
|
||||
# this is only for the mysqld standalone daemon
|
||||
[mysqld]
|
||||
|
||||
#
|
||||
# * Basic Settings
|
||||
#
|
||||
#user = mysql
|
||||
user = root
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
port = 3306
|
||||
basedir = /usr
|
||||
datadir = /var/lib/mysql
|
||||
tmpdir = /tmp
|
||||
lc-messages-dir = /usr/share/mysql
|
||||
skip-external-locking
|
||||
log_bin = /var/log/mysql/mysql-bin.log
|
||||
binlog_format = MIXED
|
||||
# Instead of skip-networking the default is now to listen only on
|
||||
# localhost which is more compatible and is not less secure.
|
||||
bind-address = 0.0.0.0
|
||||
|
||||
#
|
||||
# * Fine Tuning
|
||||
#
|
||||
key_buffer_size = 16M
|
||||
max_allowed_packet = 16M
|
||||
thread_stack = 192K
|
||||
thread_cache_size = 8
|
||||
# This replaces the startup script and checks MyISAM tables if needed
|
||||
# the first time they are touched
|
||||
myisam-recover = BACKUP
|
||||
#max_connections = 100
|
||||
#table_cache = 64
|
||||
#thread_concurrency = 10
|
||||
|
||||
#
|
||||
# * Query Cache Configuration
|
||||
#
|
||||
query_cache_limit = 1M
|
||||
query_cache_size = 16M
|
||||
|
||||
#
|
||||
# * Logging and Replication
|
||||
#
|
||||
# Both location gets rotated by the cronjob.
|
||||
# Be aware that this log type is a performance killer.
|
||||
# As of 5.1 you can enable the log at runtime!
|
||||
#general_log_file = /var/log/mysql/mysql.log
|
||||
#general_log = 1
|
||||
#
|
||||
# Error log - should be very few entries.
|
||||
#
|
||||
log_error = /var/log/mysql/error.log
|
||||
#
|
||||
# Enable the slow query log to see queries with especially long duration
|
||||
#slow_query_log_file = /var/log/mysql/mariadb-slow.log
|
||||
#long_query_time = 10
|
||||
#log_slow_rate_limit = 1000
|
||||
#log_slow_verbosity = query_plan
|
||||
#log-queries-not-using-indexes
|
||||
#
|
||||
# The following can be used as easy to replay backup logs or for replication.
|
||||
# note: if you are setting up a replication slave, see README.Debian about
|
||||
# other settings you may need to change.
|
||||
#server-id = 1
|
||||
#log_bin = /var/log/mysql/mysql-bin.log
|
||||
expire_logs_days = 10
|
||||
max_binlog_size = 100M
|
||||
#binlog_do_db = include_database_name
|
||||
#binlog_ignore_db = include_database_name
|
||||
|
||||
#
|
||||
# * InnoDB
|
||||
#
|
||||
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
|
||||
# Read the manual for more InnoDB related options. There are many!
|
||||
|
||||
#
|
||||
# * Security Features
|
||||
#
|
||||
# Read the manual, too, if you want chroot!
|
||||
# chroot = /var/lib/mysql/
|
||||
#
|
||||
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
|
||||
#
|
||||
# ssl-ca=/etc/mysql/cacert.pem
|
||||
# ssl-cert=/etc/mysql/server-cert.pem
|
||||
# ssl-key=/etc/mysql/server-key.pem
|
||||
|
||||
#
|
||||
# * Character sets
|
||||
#
|
||||
# MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
|
||||
# utf8 4-byte character set. See also client.cnf
|
||||
#
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_general_ci
|
||||
|
||||
#
|
||||
# * Unix socket authentication plugin is built-in since 10.0.22-6
|
||||
#
|
||||
# Needed so the root database #user can authenticate without a password but
|
||||
# only when running as the unix root #user.
|
||||
#
|
||||
# Also available for other #users if required.
|
||||
# See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
|
||||
|
||||
# this is only for embedded server
|
||||
[embedded]
|
||||
|
||||
# This group is only read by MariaDB servers, not by MySQL.
|
||||
# If you use the same .cnf file for MySQL and MariaDB,
|
||||
# you can put MariaDB-only options here
|
||||
[mariadb]
|
||||
|
||||
# This group is only read by MariaDB-10.0 servers.
|
||||
# If you use the same .cnf file for MariaDB of different versions,
|
||||
# use this group for options that older servers don't understand
|
||||
[mariadb-10.0]
|
24
example/x86_64/ubuntu/mysql/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM ubuntu
|
||||
ENV sql_password sql
|
||||
ENV TERM xterm
|
||||
RUN apt-get update; DEBIAN_FRONTEND=noninteractive apt-get -y install cron mariadb-client mariadb-server
|
||||
|
||||
#Cron Jobs
|
||||
RUN echo "00 23 * * 0 /sync.sh" >> /crontab
|
||||
RUN echo "00 * * * * mysqladmin flush-hosts" >> /crontab
|
||||
RUN crontab /crontab
|
||||
ADD sync.sh /
|
||||
RUN chmod +x /sync.sh
|
||||
|
||||
#MySQL Config
|
||||
ADD 50-server.cnf /etc/mysql/mariadb.conf.d/
|
||||
|
||||
RUN rm -rf /var/lib/mysql/*
|
||||
|
||||
#Startup Script
|
||||
ADD start.sh /
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
|
||||
EXPOSE 3306
|
||||
CMD /start.sh
|
17
example/x86_64/ubuntu/mysql/start.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
cron
|
||||
chown -R mysql:mysql /var/lib/mysql
|
||||
|
||||
if [ "$(ls -A /var/lib/mysql)" ]; then
|
||||
echo "Found existing MySQL Data......"
|
||||
mysqld_safe --max_connect_errors=10000 --user root&
|
||||
sleep infinity
|
||||
else
|
||||
echo "No existing database found......"
|
||||
mysql_install_db --user root
|
||||
mysqld_safe --max_connect_errors=10000 --user root&
|
||||
sleep 10
|
||||
mysqladmin -u root password $sql_password
|
||||
mysql -u root -p$sql_password -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '" + $sql_password + "' WITH GRANT OPTION; FLUSH PRIVILEGES;"
|
||||
sleep infinity
|
||||
fi
|
2
example/x86_64/ubuntu/mysql/sync.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
mysqldump -u root -p$sql_password --all-databases > /saves/database-`date +%Y-%m-%d`.sql
|
12
example/x86_64/ubuntu/nginx/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM ubuntu
|
||||
#FROM armv7/armhf-ubuntu
|
||||
RUN apt-get update;apt-get install -y nginx
|
||||
|
||||
#ENV Variables
|
||||
ENV TERM xterm
|
||||
|
||||
#Run in foreground
|
||||
RUN sed -i '1s/^/daemon off; /' /etc/nginx/nginx.conf
|
||||
EXPOSE 443 80
|
||||
|
||||
CMD nginx
|
857
grafana-dashboard-7.x.json
Normal file
@ -0,0 +1,857 @@
|
||||
{
|
||||
"__inputs": [
|
||||
{
|
||||
"name": "DS_ELASTICSEARCH",
|
||||
"label": "Elasticsearch",
|
||||
"description": "",
|
||||
"type": "datasource",
|
||||
"pluginId": "elasticsearch",
|
||||
"pluginName": "Elasticsearch"
|
||||
}
|
||||
],
|
||||
"__requires": [
|
||||
{
|
||||
"type": "datasource",
|
||||
"id": "elasticsearch",
|
||||
"name": "Elasticsearch",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "7.1.1"
|
||||
},
|
||||
{
|
||||
"type": "panel",
|
||||
"id": "graph",
|
||||
"name": "Graph",
|
||||
"version": ""
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:240",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 0,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:241",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:238",
|
||||
"field": "network_rx",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Network - In",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": "KB/s",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": "Date",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:581",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 0,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:582",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:579",
|
||||
"field": "network_tx",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Network - Out",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": "KB/s",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": "Date",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:416",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 0,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:417",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:414",
|
||||
"field": "cpu",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "PiCluster CPU Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 3,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:638",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 0,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:639",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:636",
|
||||
"field": "memory",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Memory Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 18
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:933",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 0,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:934",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:931",
|
||||
"field": "total_running_containers",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Running Containers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 18
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 4,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.1",
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"$$hashKey": "object:1165",
|
||||
"fake": true,
|
||||
"field": "node.keyword",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:1166",
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "1m",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"$$hashKey": "object:1163",
|
||||
"field": "disk",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Disk Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": false,
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-30m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
],
|
||||
"time_options": [
|
||||
"5m",
|
||||
"15m",
|
||||
"1h",
|
||||
"6h",
|
||||
"12h",
|
||||
"24h",
|
||||
"2d",
|
||||
"7d",
|
||||
"30d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "PiCluster Monitoring",
|
||||
"uid": "sdFDxU0ik",
|
||||
"version": 13
|
||||
}
|
779
grafana-dashboard.json
Normal file
@ -0,0 +1,779 @@
|
||||
{
|
||||
"__inputs": [
|
||||
{
|
||||
"name": "DS_ELASTICSEARCH",
|
||||
"label": "Elasticsearch",
|
||||
"description": "",
|
||||
"type": "datasource",
|
||||
"pluginId": "elasticsearch",
|
||||
"pluginName": "Elasticsearch"
|
||||
}
|
||||
],
|
||||
"__requires": [
|
||||
{
|
||||
"type": "datasource",
|
||||
"id": "elasticsearch",
|
||||
"name": "Elasticsearch",
|
||||
"version": "5.0.0"
|
||||
},
|
||||
{
|
||||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "5.3.0"
|
||||
},
|
||||
{
|
||||
"type": "panel",
|
||||
"id": "graph",
|
||||
"name": "Graph",
|
||||
"version": "5.0.0"
|
||||
}
|
||||
],
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"field": "network_rx",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Network - In",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": "KB/s",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": "Date",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "auto",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"field": "network_tx",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Network - Out",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": "KB/s",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": "Date",
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "1m",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"field": "cpu",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "PiCluster CPU Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 9
|
||||
},
|
||||
"id": 3,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "1m",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"field": "memory",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Memory Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 18
|
||||
},
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "1m",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"field": "total_running_containers",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Running Containers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "${DS_ELASTICSEARCH}",
|
||||
"fill": 1,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 18
|
||||
},
|
||||
"id": 4,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 4,
|
||||
"links": [],
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pointradius": 5,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"bucketAggs": [
|
||||
{
|
||||
"fake": true,
|
||||
"field": "node",
|
||||
"id": "3",
|
||||
"settings": {
|
||||
"min_doc_count": 1,
|
||||
"order": "desc",
|
||||
"orderBy": "_term",
|
||||
"size": "10"
|
||||
},
|
||||
"type": "terms"
|
||||
},
|
||||
{
|
||||
"field": "date",
|
||||
"id": "2",
|
||||
"settings": {
|
||||
"interval": "1m",
|
||||
"min_doc_count": 0,
|
||||
"trimEdges": 0
|
||||
},
|
||||
"type": "date_histogram"
|
||||
}
|
||||
],
|
||||
"dsType": "elasticsearch",
|
||||
"metrics": [
|
||||
{
|
||||
"field": "disk",
|
||||
"id": "1",
|
||||
"meta": {},
|
||||
"settings": {},
|
||||
"type": "max"
|
||||
}
|
||||
],
|
||||
"refId": "A",
|
||||
"timeField": "date"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "PiCluster Disk Usage",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": false,
|
||||
"schemaVersion": 16,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-30m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
],
|
||||
"time_options": [
|
||||
"5m",
|
||||
"15m",
|
||||
"1h",
|
||||
"6h",
|
||||
"12h",
|
||||
"24h",
|
||||
"2d",
|
||||
"7d",
|
||||
"30d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "PiCluster Monitoring",
|
||||
"uid": "sdFDxU0ik",
|
||||
"version": 21
|
||||
}
|
BIN
images/faas-0.png
Normal file
After Width: | Height: | Size: 139 KiB |
BIN
images/faas-1.png
Normal file
After Width: | Height: | Size: 152 KiB |
BIN
images/faas-2.png
Normal file
After Width: | Height: | Size: 131 KiB |
BIN
images/picluster-mainscreen.png
Normal file
After Width: | Height: | Size: 228 KiB |
BIN
images/piclusterLogo.png
Normal file
After Width: | Height: | Size: 104 KiB |
12
kibana-dashboards-7x.ndjson
Normal file
@ -0,0 +1,12 @@
|
||||
{"attributes":{"fields":"[{\"name\":\"_id\",\"type\":\"string\",\"esTypes\":[\"_id\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"esTypes\":[\"_index\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"esTypes\":[\"_source\"],\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"esTypes\":[\"_type\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"cpu\",\"type\":\"number\",\"esTypes\":[\"float\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"date\",\"type\":\"date\",\"esTypes\":[\"date\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"disk\",\"type\":\"number\",\"esTypes\":[\"long\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"memory\",\"type\":\"number\",\"esTypes\":[\"long\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"network_rx\",\"type\":\"number\",\"esTypes\":[\"long\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"network_tx\",\"type\":\"number\",\"esTypes\":[\"long\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"node\",\"type\":\"string\",\"esTypes\":[\"text\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"node.keyword\",\"type\":\"string\",\"esTypes\":[\"keyword\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true,\"subType\":{\"multi\":{\"parent\":\"node\"}}},{\"name\":\"total_running_containers\",\"type\":\"number\",\"esTypes\":[\"long\"],\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]","timeFieldName":"date","title":"picluster-monitoring"},"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","migrationVersion":{"index-pattern":"7.6.0"},"references":[],"type":"index-pattern","updated_at":"2020-07-08T03:31:11.746Z","version":"WzcwOSwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"Network Traffic - Outbound","uiStateJSON":"{}","version":1,"visState":"{\"type\":\"line\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"network_tx\",\"customLabel\":\"KB/s\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now/d\",\"to\":\"now/d\"},\"useNormalizedEsInterval\":true,\"scaleMetricValues\":false,\"interval\":\"auto\",\"drop_partials\":false,\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Time\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\"}}],\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"KB/s\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"KB/s\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false,\"labels\":{},\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#E7664C\"}},\"title\":\"Network Traffic - Outbound\"}"},"id":"0f34ec00-f7e8-11e8-9315-e546074942c0","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:48:32.946Z","version":"Wzc1NCwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"Disk Utilization","uiStateJSON":"{}","version":1,"visState":"{\"type\":\"line\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"disk\",\"customLabel\":\"Disk Usage\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now/d\",\"to\":\"now/d\"},\"useNormalizedEsInterval\":true,\"scaleMetricValues\":true,\"interval\":\"m\",\"drop_partials\":false,\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\"}}],\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Disk Usage\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Disk Usage\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"cardinal\",\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true,\"labels\":{},\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#E7664C\"}},\"title\":\"Disk Utilization\"}"},"id":"228389f0-fc18-11e7-8b37-0f171231376a","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:47:09.601Z","version":"Wzc1MSwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"CPU Utilization","uiStateJSON":"{\"spy\":{\"mode\":{\"fill\":false,\"name\":null}}}","version":1,"visState":"{\"type\":\"line\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"cpu\",\"customLabel\":\"CPU Usage\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now/d\",\"to\":\"now/d\"},\"useNormalizedEsInterval\":true,\"scaleMetricValues\":false,\"interval\":\"auto\",\"drop_partials\":false,\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Time\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\"}}],\"params\":{\"addLegend\":true,\"addTimeMarker\":true,\"addTooltip\":true,\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"labels\":{\"show\":true,\"truncate\":100},\"position\":\"bottom\",\"scale\":{\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{},\"type\":\"category\"}],\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"},\"valueAxis\":null},\"labels\":{},\"legendPosition\":\"right\",\"seriesParams\":[{\"data\":{\"id\":\"1\",\"label\":\"CPU Usage\"},\"drawLinesBetweenPoints\":true,\"interpolate\":\"cardinal\",\"lineWidth\":4,\"mode\":\"normal\",\"show\":\"true\",\"showCircles\":true,\"type\":\"line\",\"valueAxis\":\"ValueAxis-1\"}],\"thresholdLine\":{\"color\":\"#E7664C\",\"show\":false,\"style\":\"full\",\"value\":10,\"width\":1},\"times\":[],\"type\":\"line\",\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"labels\":{\"filter\":false,\"rotate\":0,\"show\":true,\"truncate\":100},\"name\":\"LeftAxis-1\",\"position\":\"left\",\"scale\":{\"mode\":\"normal\",\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{\"text\":\"CPU Usage\"},\"type\":\"value\"}]},\"title\":\"CPU Utilization\"}"},"id":"e2dc1150-fc17-11e7-8b37-0f171231376a","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:46:50.402Z","version":"Wzc1MCwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"Memory Utilization","uiStateJSON":"{}","version":1,"visState":"{\"type\":\"line\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"memory\",\"customLabel\":\"Memory Usasge\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now/d\",\"to\":\"now/d\"},\"useNormalizedEsInterval\":true,\"scaleMetricValues\":true,\"interval\":\"auto\",\"drop_partials\":false,\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date and TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\"}}],\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Memory Usasge\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Memory Usasge\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4,\"interpolate\":\"cardinal\"}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true,\"labels\":{},\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#E7664C\"}},\"title\":\"Memory Utilization\"}"},"id":"6852f010-fc18-11e7-8b37-0f171231376a","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:44:59.045Z","version":"Wzc0OCwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"Node Statistics Table","uiStateJSON":"{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":null,\"direction\":null}}}}","version":1,"visState":"{\"type\":\"table\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"cpu\",\"customLabel\":\"CPU %\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"disk\",\"customLabel\":\"Disk %\"}},{\"id\":\"4\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"disk\",\"customLabel\":\"Memory %\"}},{\"id\":\"5\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"total_running_containers\",\"customLabel\":\"Running Containers\"}},{\"id\":\"6\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"bucket\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"customLabel\":\"Node\"}}],\"params\":{\"perPage\":10,\"showPartialRows\":false,\"sort\":{\"columnIndex\":null,\"direction\":null},\"showTotal\":false,\"totalFunc\":\"sum\",\"showMetricsAtAllLevels\":false,\"percentageCol\":\"\"},\"title\":\"Node Statistics Table\"}"},"id":"fd1ac550-fc9b-11e7-8b37-0f171231376a","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:51:29.498Z","version":"Wzc1OSwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\n \"query\": {\n \"query\": \"\",\n \"language\": \"lucene\"\n },\n \"indexRefName\": \"kibanaSavedObjectMeta.searchSourceJSON.index\",\n \"filter\": []\n}"},"title":"Running Containers","uiStateJSON":"{\n \"spy\": {\n \"mode\": {\n \"name\": null,\n \"fill\": false\n }\n }\n}","version":1,"visState":"{\n \"type\": \"line\",\n \"aggs\": [\n {\n \"id\": \"1\",\n \"enabled\": true,\n \"type\": \"max\",\n \"schema\": \"metric\",\n \"params\": {\n \"field\": \"total_running_containers\",\n \"customLabel\": \"Running Containers\"\n }\n },\n {\n \"id\": \"2\",\n \"enabled\": true,\n \"type\": \"date_histogram\",\n \"schema\": \"segment\",\n \"params\": {\n \"field\": \"date\",\n \"timeRange\": {\n \"from\": \"now/d\",\n \"to\": \"now/d\"\n },\n \"useNormalizedEsInterval\": true,\n \"scaleMetricValues\": true,\n \"interval\": \"m\",\n \"drop_partials\": false,\n \"min_doc_count\": 1,\n \"extended_bounds\": {},\n \"customLabel\": \"Date and TIme\"\n }\n }\n ],\n \"params\": {\n \"type\": \"line\",\n \"grid\": {\n \"categoryLines\": true,\n \"style\": {\n \"color\": \"#eee\"\n },\n \"valueAxis\": null\n },\n \"categoryAxes\": [\n {\n \"id\": \"CategoryAxis-1\",\n \"type\": \"category\",\n \"position\": \"bottom\",\n \"show\": true,\n \"style\": {},\n \"scale\": {\n \"type\": \"linear\"\n },\n \"labels\": {\n \"show\": true,\n \"truncate\": 100\n },\n \"title\": {}\n }\n ],\n \"valueAxes\": [\n {\n \"id\": \"ValueAxis-1\",\n \"name\": \"LeftAxis-1\",\n \"type\": \"value\",\n \"position\": \"left\",\n \"show\": true,\n \"style\": {},\n \"scale\": {\n \"type\": \"linear\",\n \"mode\": \"normal\"\n },\n \"labels\": {\n \"show\": true,\n \"rotate\": 0,\n \"filter\": false,\n \"truncate\": 100\n },\n \"title\": {\n \"text\": \"Running Containers\"\n }\n }\n ],\n \"seriesParams\": [\n {\n \"show\": \"true\",\n \"type\": \"line\",\n \"mode\": \"normal\",\n \"data\": {\n \"label\": \"Running Containers\",\n \"id\": \"1\"\n },\n \"valueAxis\": \"ValueAxis-1\",\n \"drawLinesBetweenPoints\": true,\n \"showCircles\": true,\n \"interpolate\": \"cardinal\",\n \"lineWidth\": 4\n }\n ],\n \"addTooltip\": true,\n \"addLegend\": true,\n \"legendPosition\": \"right\",\n \"times\": [],\n \"addTimeMarker\": true,\n \"labels\": {},\n \"thresholdLine\": {\n \"show\": false,\n \"value\": 10,\n \"width\": 1,\n \"style\": \"full\",\n \"color\": \"#E7664C\"\n }\n },\n \"title\": \"Running Containers\"\n}"},"id":"a15d3b10-fe50-11e7-83ef-db4c0a03c23e","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:41:24.710Z","version":"WzczOCwyXQ=="}
|
||||
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\",\"filter\":[]}"},"title":"Network Traffic - Inbound","uiStateJSON":"{}","version":1,"visState":"{\"type\":\"line\",\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"avg\",\"schema\":\"metric\",\"params\":{\"field\":\"network_rx\",\"customLabel\":\"KB/s\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now/d\",\"to\":\"now/d\"},\"useNormalizedEsInterval\":true,\"scaleMetricValues\":false,\"interval\":\"auto\",\"drop_partials\":false,\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Time\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node.keyword\",\"orderBy\":\"1\",\"order\":\"desc\",\"size\":10,\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"customLabel\":\"\"}}],\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"KB/s\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"KB/s\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false,\"labels\":{},\"thresholdLine\":{\"show\":false,\"value\":10,\"width\":1,\"style\":\"full\",\"color\":\"#E7664C\"}},\"title\":\"Network Traffic - Inbound\"}"},"id":"63094ca0-f7e7-11e8-9315-e546074942c0","migrationVersion":{"visualization":"7.8.0"},"references":[{"id":"779acff0-c0cb-11ea-8cd5-0350424f6261","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"visualization","updated_at":"2020-07-08T03:47:37.811Z","version":"Wzc1MiwyXQ=="}
|
||||
{"attributes":{"description":"","hits":0,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"highlightAll\":true,\"version\":true,\"filter\":[]}"},"optionsJSON":"{\"darkTheme\":false,\"hidePanelTitles\":false,\"useMargins\":true}","panelsJSON":"[{\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":12,\"i\":\"1\"},\"panelIndex\":\"1\",\"version\":\"7.3.0\",\"panelRefName\":\"panel_0\"},{\"gridData\":{\"x\":24,\"y\":0,\"w\":24,\"h\":12,\"i\":\"2\"},\"panelIndex\":\"2\",\"version\":\"7.3.0\",\"panelRefName\":\"panel_1\"},{\"gridData\":{\"x\":0,\"y\":12,\"w\":24,\"h\":12,\"i\":\"3\"},\"panelIndex\":\"3\",\"version\":\"7.3.0\",\"panelRefName\":\"panel_2\"},{\"embeddableConfig\":{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":null,\"direction\":null}}}},\"gridData\":{\"x\":0,\"y\":39,\"w\":24,\"h\":12,\"i\":\"4\"},\"panelIndex\":\"4\",\"version\":\"7.3.0\",\"panelRefName\":\"panel_3\"},{\"gridData\":{\"x\":24,\"y\":12,\"w\":24,\"h\":12,\"i\":\"5\"},\"panelIndex\":\"5\",\"version\":\"7.3.0\",\"panelRefName\":\"panel_4\"},{\"gridData\":{\"x\":24,\"y\":24,\"w\":24,\"h\":15,\"i\":\"6\"},\"version\":\"7.3.0\",\"panelIndex\":\"6\",\"embeddableConfig\":{},\"panelRefName\":\"panel_5\"},{\"gridData\":{\"x\":0,\"y\":24,\"w\":24,\"h\":15,\"i\":\"7\"},\"version\":\"7.3.0\",\"panelIndex\":\"7\",\"embeddableConfig\":{},\"panelRefName\":\"panel_6\"}]","timeRestore":false,"title":"PiCluster Monitoring","version":1},"id":"2f297a00-fe22-11e7-91c4-8b295d0944b0","migrationVersion":{"dashboard":"7.3.0"},"references":[{"id":"e2dc1150-fc17-11e7-8b37-0f171231376a","name":"panel_0","type":"visualization"},{"id":"228389f0-fc18-11e7-8b37-0f171231376a","name":"panel_1","type":"visualization"},{"id":"6852f010-fc18-11e7-8b37-0f171231376a","name":"panel_2","type":"visualization"},{"id":"fd1ac550-fc9b-11e7-8b37-0f171231376a","name":"panel_3","type":"visualization"},{"id":"a15d3b10-fe50-11e7-83ef-db4c0a03c23e","name":"panel_4","type":"visualization"},{"id":"63094ca0-f7e7-11e8-9315-e546074942c0","name":"panel_5","type":"visualization"},{"id":"0f34ec00-f7e8-11e8-9315-e546074942c0","name":"panel_6","type":"visualization"}],"type":"dashboard","updated_at":"2020-07-08T03:27:39.188Z","version":"WzY5MCwyXQ=="}
|
||||
{"attributes":{"buildNum":31997,"defaultIndex":"ea8cdbc0-f81d-11e8-9bed-e1397b7d7416"},"id":"7.8.0","references":[],"type":"config","updated_at":"2020-07-08T03:30:58.587Z","version":"WzcwNywyXQ=="}
|
||||
{"attributes":{"fields":"[{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"data\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"date\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]","timeFieldName":"date","title":"picluster-logging"},"id":"ea8cdbc0-f81d-11e8-9bed-e1397b7d7416","migrationVersion":{"index-pattern":"7.6.0"},"references":[],"type":"index-pattern","updated_at":"2020-07-08T03:27:39.188Z","version":"WzY5MiwyXQ=="}
|
||||
{"exportedCount":11,"missingRefCount":0,"missingReferences":[]}
|
170
kibana-graphs.json
Normal file
@ -0,0 +1,170 @@
|
||||
[
|
||||
{
|
||||
"_id": "2614d680-f81d-11e8-9bed-e1397b7d7416",
|
||||
"_type": "index-pattern",
|
||||
"_source": {
|
||||
"title": "picluster-monitoring",
|
||||
"timeFieldName": "date",
|
||||
"fields": "[{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"cpu\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"date\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"disk\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"memory\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"network_rx\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"network_tx\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"node\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"total_running_containers\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]"
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
},
|
||||
"_migrationVersion": {
|
||||
"index-pattern": "6.5.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "a15d3b10-fe50-11e7-83ef-db4c0a03c23e",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Running Containers",
|
||||
"visState": "{\"title\":\"Running Containers\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"},\"valueAxis\":null},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Running Containers\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Running Containers\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"cardinal\",\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"total_running_containers\",\"customLabel\":\"Running Containers\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"interval\":\"m\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date and TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"size\":5,\"order\":\"desc\",\"orderBy\":\"1\"}}]}",
|
||||
"uiStateJSON": "{\"spy\":{\"mode\":{\"name\":null,\"fill\":false}}}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "6852f010-fc18-11e7-8b37-0f171231376a",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Memory Utilization",
|
||||
"visState": "{\"title\":\"Memory Utilization\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Memory Utilization %\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Memory Utilization %\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4,\"interpolate\":\"cardinal\"}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"memory\",\"customLabel\":\"Memory Utilization %\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"interval\":\"m\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date and TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"size\":5,\"order\":\"desc\",\"orderBy\":\"1\"}}]}",
|
||||
"uiStateJSON": "{}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "e2dc1150-fc17-11e7-8b37-0f171231376a",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "CPU Utilization",
|
||||
"visState": "{\"title\":\"CPU Utilization\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"},\"valueAxis\":null},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"CPU %\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"CPU %\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"cardinal\",\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"cpu\",\"customLabel\":\"CPU %\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"interval\":\"m\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date and TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"size\":5,\"order\":\"desc\",\"orderBy\":\"1\"}}]}",
|
||||
"uiStateJSON": "{\"spy\":{\"mode\":{\"name\":null,\"fill\":false}}}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "fd1ac550-fc9b-11e7-8b37-0f171231376a",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Node Statistics Table",
|
||||
"visState": "{\"title\":\"Node Statistics Table\",\"type\":\"table\",\"params\":{\"perPage\":10,\"showPartialRows\":false,\"showMeticsAtAllLevels\":false,\"sort\":{\"columnIndex\":null,\"direction\":null},\"showTotal\":false,\"totalFunc\":\"sum\"},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"cpu\",\"customLabel\":\"CPU %\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"bucket\",\"params\":{\"field\":\"node\",\"size\":10,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"Node Statistics Table\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"disk\",\"customLabel\":\"Disk %\"}},{\"id\":\"4\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"memory\",\"customLabel\":\"Memory %\"}},{\"id\":\"5\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"total_running_containers\",\"customLabel\":\"Running Containers\"}}]}",
|
||||
"uiStateJSON": "{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":null,\"direction\":null}}}}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "228389f0-fc18-11e7-8b37-0f171231376a",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Disk Utilization",
|
||||
"visState": "{\"title\":\"Disk Utilization\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":true,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"DIsk Utilization %\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"DIsk Utilization %\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"interpolate\":\"cardinal\",\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":true},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"disk\",\"customLabel\":\"DIsk Utilization %\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"interval\":\"m\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date and TIme\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"size\":5,\"order\":\"desc\",\"orderBy\":\"1\"}}]}",
|
||||
"uiStateJSON": "{}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "2f297a00-fe22-11e7-91c4-8b295d0944b0",
|
||||
"_type": "dashboard",
|
||||
"_source": {
|
||||
"title": "PiCluster Monitoring",
|
||||
"hits": 0,
|
||||
"description": "",
|
||||
"panelsJSON": "[{\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":12,\"i\":\"1\"},\"id\":\"e2dc1150-fc17-11e7-8b37-0f171231376a\",\"panelIndex\":\"1\",\"type\":\"visualization\",\"version\":\"6.5.1\"},{\"gridData\":{\"x\":24,\"y\":0,\"w\":24,\"h\":12,\"i\":\"2\"},\"id\":\"228389f0-fc18-11e7-8b37-0f171231376a\",\"panelIndex\":\"2\",\"type\":\"visualization\",\"version\":\"6.5.1\"},{\"gridData\":{\"x\":0,\"y\":12,\"w\":24,\"h\":12,\"i\":\"3\"},\"id\":\"6852f010-fc18-11e7-8b37-0f171231376a\",\"panelIndex\":\"3\",\"type\":\"visualization\",\"version\":\"6.5.1\"},{\"embeddableConfig\":{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":null,\"direction\":null}}}},\"gridData\":{\"x\":0,\"y\":39,\"w\":24,\"h\":12,\"i\":\"4\"},\"id\":\"fd1ac550-fc9b-11e7-8b37-0f171231376a\",\"panelIndex\":\"4\",\"type\":\"visualization\",\"version\":\"6.5.1\"},{\"gridData\":{\"x\":24,\"y\":12,\"w\":24,\"h\":12,\"i\":\"5\"},\"id\":\"a15d3b10-fe50-11e7-83ef-db4c0a03c23e\",\"panelIndex\":\"5\",\"type\":\"visualization\",\"version\":\"6.5.1\"},{\"gridData\":{\"x\":24,\"y\":24,\"w\":24,\"h\":15,\"i\":\"6\"},\"version\":\"6.5.1\",\"panelIndex\":\"6\",\"type\":\"visualization\",\"id\":\"63094ca0-f7e7-11e8-9315-e546074942c0\",\"embeddableConfig\":{}},{\"gridData\":{\"x\":0,\"y\":24,\"w\":24,\"h\":15,\"i\":\"7\"},\"version\":\"6.5.1\",\"panelIndex\":\"7\",\"type\":\"visualization\",\"id\":\"0f34ec00-f7e8-11e8-9315-e546074942c0\",\"embeddableConfig\":{}}]",
|
||||
"optionsJSON": "{\"darkTheme\":false,\"hidePanelTitles\":false,\"useMargins\":true}",
|
||||
"version": 1,
|
||||
"timeRestore": false,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"filter\":[],\"highlightAll\":true,\"version\":true}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "63094ca0-f7e7-11e8-9315-e546074942c0",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Network Traffic - Inbound",
|
||||
"visState": "{\"title\":\"Network Traffic - Inbound\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"KB/s\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"KB/s\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"network_rx\",\"customLabel\":\"KB/s\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now-15m\",\"to\":\"now\",\"mode\":\"quick\"},\"useNormalizedEsInterval\":true,\"interval\":\"auto\",\"time_zone\":\"America/Los_Angeles\",\"drop_partials\":false,\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"size\":10,\"order\":\"desc\",\"orderBy\":\"1\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\",\"customLabel\":\"Date\"}}]}",
|
||||
"uiStateJSON": "{}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[]}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "0f34ec00-f7e8-11e8-9315-e546074942c0",
|
||||
"_type": "visualization",
|
||||
"_source": {
|
||||
"title": "Network Traffic - Outbound",
|
||||
"visState": "{\"title\":\"Network Traffic - Outbound\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"KB/s\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"KB/s\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true,\"lineWidth\":4}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"max\",\"schema\":\"metric\",\"params\":{\"field\":\"network_tx\",\"customLabel\":\"KB/s\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"date\",\"timeRange\":{\"from\":\"now-15m\",\"to\":\"now\",\"mode\":\"quick\"},\"useNormalizedEsInterval\":true,\"interval\":\"auto\",\"time_zone\":\"America/Los_Angeles\",\"drop_partials\":false,\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{},\"customLabel\":\"Date\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"node\",\"size\":10,\"order\":\"desc\",\"orderBy\":\"1\",\"otherBucket\":false,\"otherBucketLabel\":\"Other\",\"missingBucket\":false,\"missingBucketLabel\":\"Missing\"}}]}",
|
||||
"uiStateJSON": "{}",
|
||||
"description": "",
|
||||
"version": 1,
|
||||
"kibanaSavedObjectMeta": {
|
||||
"searchSourceJSON": "{\"index\":\"2614d680-f81d-11e8-9bed-e1397b7d7416\",\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"filter\":[]}"
|
||||
}
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"_id": "ea8cdbc0-f81d-11e8-9bed-e1397b7d7416",
|
||||
"_type": "index-pattern",
|
||||
"_source": {
|
||||
"title": "picluster-logging",
|
||||
"timeFieldName": "date",
|
||||
"fields": "[{\"name\":\"_id\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_index\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"_score\",\"type\":\"number\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"searchable\":false,\"aggregatable\":false,\"readFromDocValues\":false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":false},{\"name\":\"data\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true},{\"name\":\"date\",\"type\":\"date\",\"count\":0,\"scripted\":false,\"searchable\":true,\"aggregatable\":true,\"readFromDocValues\":true}]"
|
||||
},
|
||||
"_meta": {
|
||||
"savedObjectVersion": 2
|
||||
},
|
||||
"_migrationVersion": {
|
||||
"index-pattern": "6.5.0"
|
||||
}
|
||||
}
|
||||
]
|
57
launch.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Web",
|
||||
"cwd": "/home/verita84/picluster/web",
|
||||
"program": "/home/verita84/picluster/web/webconsole.js",
|
||||
"env": { "PICLUSTER_CONFIG": "/home/verita84/picluster/config.json"},
|
||||
"runtimeArgs":["--inspect=0.0.0.0:9003"]
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Agent",
|
||||
"cwd": "/home/verita84/picluster/agent",
|
||||
"program": "/home/verita84/picluster/agent/agent.js",
|
||||
"env": { "PICLUSTER_CONFIG": "/home/verita84/picluster/config.json"},
|
||||
"runtimeArgs":["--inspect=0.0.0.0:9001"]
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Server",
|
||||
"cwd": "/home/verita84/picluster/server",
|
||||
"program": "/home/verita84/picluster/server/server.js",
|
||||
"runtimeArgs":["--inspect=0.0.0.0:9000"]
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"name": "Debug-Server",
|
||||
"port": 9000,
|
||||
"restart": true,
|
||||
"protocol": "inspector"
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"name": "Debug-Web",
|
||||
"port": 9003,
|
||||
"restart": true,
|
||||
"protocol": "inspector"
|
||||
}, {
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"name": "Debug-Agent",
|
||||
"port": 9001,
|
||||
"restart": true,
|
||||
"protocol": "inspector"
|
||||
}
|
||||
]
|
||||
}
|
5797
package-lock.json
generated
Normal file
45
package.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "picluster",
|
||||
"config": {
|
||||
"unsafe-perm": true
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo",
|
||||
"install": "cd server && npm install && cd ../agent && npm install && cd ../web && npm install && cd .."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.rage.lol/verita84/picluster/picluster.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "GPL-3.0",
|
||||
"bugs": {
|
||||
"url": "https://git.rage.lol/verita84/picluster/picluster/issues"
|
||||
},
|
||||
"homepage": "https://git.rage.lol/verita84/picluster/picluster",
|
||||
"xo": {
|
||||
"space": 2,
|
||||
"envs": [
|
||||
"node",
|
||||
"es6"
|
||||
],
|
||||
"ignores": [
|
||||
"web/assets/**"
|
||||
],
|
||||
"rules": {
|
||||
"camelcase": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"radix": "off",
|
||||
"max-nested-callbacks": "warn",
|
||||
"no-path-concat": "warn"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"xo": "^0.32.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"eslint": "^7.24.0",
|
||||
"yargs-parser": "^20.2.7"
|
||||
}
|
||||
}
|
29
picluster-pm2.config-example.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"name" : "server",
|
||||
"script" : "server.js",
|
||||
"cwd" : "/picluster/server",
|
||||
"watch" : true,
|
||||
"env": {
|
||||
"PICLUSTER_CONFIG": "/picluster/config.json"
|
||||
}
|
||||
},{
|
||||
"name" : "agent",
|
||||
"script" : "agent.js",
|
||||
"cwd" : "/picluster/agent",
|
||||
"watch" : true,
|
||||
"env": {
|
||||
"PICLUSTER_CONFIG": "/picluster/config.json"
|
||||
}
|
||||
},{
|
||||
"name" : "webconsole",
|
||||
"script" : "webconsole.js",
|
||||
"cwd" : "/picluster/web",
|
||||
"watch" : true,
|
||||
"env": {
|
||||
"PICLUSTER_CONFIG": "/picluster/config.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
0
picluster-pm2.config.json
Executable file
177
pictl
Executable file
@ -0,0 +1,177 @@
|
||||
#!/usr/bin/env bash
|
||||
clear
|
||||
|
||||
# Test if jq is installed
|
||||
if type jq &>/dev/null; then
|
||||
# Config file
|
||||
config="config.json"
|
||||
|
||||
# Set config parameters to assign to variables
|
||||
config_token=$(jq .token $config | sed -e 's/\"//g')
|
||||
config_server_port=$(jq .server_port $config | sed -e 's/\"//g')
|
||||
config_ssl=$(jq .ssl $config | sed -e 's/\"//g')
|
||||
config_web_connect=$(jq .web_connect $config | sed -e 's/\"//g')
|
||||
|
||||
hb(){
|
||||
clear
|
||||
echo "Heartbeat is now checking....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s "https://${config_web_connect}:${config_server_port}/hb?token=${config_token}"
|
||||
else curl -s "http://${config_web_connect}:${config_server_port}/hb?token=${config_token}"
|
||||
fi
|
||||
logs
|
||||
}
|
||||
|
||||
nodes(){
|
||||
clear
|
||||
echo "Active Nodes:"
|
||||
if [ "${config_ssl}" == "true" ]; then echo;curl -s "https://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname)"';echo
|
||||
else echo;curl -s "http://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname)"';echo
|
||||
fi
|
||||
}
|
||||
|
||||
metrics(){
|
||||
clear
|
||||
echo "Nodes Metrics"
|
||||
if [ "${config_ssl}" == "true" ]; then echo;curl -s "https://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname) CPU: \(.cpu_percent) Memory: \(.memory_percentage) Disk: \(.disk_percentage) Running: \(.total_running_containers) "'
|
||||
else echo;curl -s "http://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname) CPU: \(.cpu_percent) Memory: \(.memory_percentage) Disk: \(.disk_percentage) Running: \(.total_running_containers) Network In : \(.network_rx) Network Out : \(.network_tx)"';echo
|
||||
fi
|
||||
}
|
||||
|
||||
stop(){
|
||||
clear
|
||||
echo "Stopping the container(s)....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&operation=stop" "https://${config_web_connect}:${config_server_port}/manage"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&operation=stop" "http://${config_web_connect}:${config_server_port}/manage"
|
||||
fi
|
||||
}
|
||||
|
||||
images(){
|
||||
clear
|
||||
echo "Gathering a list of images....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s "https://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname) \(.images)"'
|
||||
else curl -s "http://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname) \(.images)"'
|
||||
fi
|
||||
}
|
||||
|
||||
addimage(){
|
||||
clear
|
||||
if [ "${config_ssl}" == "true" ]; then
|
||||
echo "Uploading container zip file to Server......."
|
||||
curl -X POST -F "file=@$1" -F "token=${config_token}" "https://${config_web_connect}:${config_server_port}/receive-file"
|
||||
echo
|
||||
else
|
||||
echo "Uploading container Zip file to Server......."
|
||||
curl -X POST -F "file=@$1" -F "token=${config_token}" "http://${config_web_connect}:${config_server_port}/receive-file"
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
shell(){
|
||||
clear
|
||||
echo "Running the command....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -H "Content-Type: application/json" -X POST -d '{"command":"'"$1"'","token":"'"${config_token}"'"}' "https://${config_web_connect}:${config_server_port}/exec"
|
||||
else curl -H "Content-Type: application/json" -X POST -d '{"command":"'"$1"'","token":"'"${config_token}"'"}' "http://${config_web_connect}:${config_server_port}/exec"
|
||||
fi
|
||||
}
|
||||
|
||||
clean(){
|
||||
clear
|
||||
echo "Cleaning stale Docker images and containers...."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s "https://${config_web_connect}:${config_server_port}/prune?token=${config_token}"
|
||||
else curl -H "Content-Type: application/json" -X POST -d '{"token":"'"${config_token}"'"}' "http://${config_web_connect}:${config_server_port}/prune"
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
clear
|
||||
echo "Building the container(s). This may take a while......"
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&no_cache=1&operation=build" "https://${config_web_connect}:${config_server_port}/manage-image"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&no_cache=1&operation=build" "http://${config_web_connect}:${config_server_port}/manage-image"
|
||||
fi
|
||||
}
|
||||
|
||||
logs(){
|
||||
sleep 5
|
||||
clear
|
||||
echo "Checking the logs....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s "https://${config_web_connect}:${config_server_port}/log?token=${config_token}"
|
||||
else curl -s "http://${config_web_connect}:${config_server_port}/log?token=${config_token}"
|
||||
fi
|
||||
}
|
||||
|
||||
create() {
|
||||
clear
|
||||
echo "Running the container(s)....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&operation=create" "https://${config_web_connect}:${config_server_port}/manage"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&operation=create" "http://${config_web_connect}:${config_server_port}/manage"
|
||||
fi
|
||||
}
|
||||
|
||||
start(){
|
||||
clear
|
||||
echo "Starting the container(s)....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&operation=start" "https://${config_web_connect}:${config_server_port}/manage"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&operation=start" "http://${config_web_connect}:${config_server_port}/manage"
|
||||
fi
|
||||
}
|
||||
|
||||
restart(){
|
||||
clear
|
||||
echo "Restarting the container(s)....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&operation=restart" "https://${config_web_connect}:${config_server_port}/manage"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&operation=restart" "http://${config_web_connect}:${config_server_port}/manage"
|
||||
fi
|
||||
}
|
||||
|
||||
changehost(){
|
||||
clear
|
||||
echo "Changing the host....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&newhost=$2&container=$1" "https://${config_web_connect}:${config_server_port}/changehost"
|
||||
else curl -s -G -d "token=${config_token}&newhost=$2&container=$1" "http://${config_web_connect}:${config_server_port}/changehost"
|
||||
fi
|
||||
}
|
||||
|
||||
delete(){
|
||||
clear
|
||||
echo "Deleting the container(s)....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s -G -d "token=${config_token}&container=$1&operation=rm" "https://${config_web_connect}:${config_server_port}/manage"
|
||||
else curl -s -G -d "token=${config_token}&container=$1&operation=rm" "http://${config_web_connect}:${config_server_port}/manage"
|
||||
fi
|
||||
}
|
||||
|
||||
status() {
|
||||
clear
|
||||
echo "Checking the status....."
|
||||
if [ "${config_ssl}" == "true" ]; then curl -s "http://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq ".data[].running_containers"
|
||||
else curl -s "http://${config_web_connect}:${config_server_port}/nodes?token=${config_token}" | jq -r '.data[] | "\(.hostname) \(.running_containers)"'
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Error, no args specified!"
|
||||
echo
|
||||
arguments="build metrics addimage nodes images start create status exec start stop clean "
|
||||
echo "Valid arguments are: $arguments"
|
||||
echo
|
||||
exit
|
||||
fi;
|
||||
|
||||
if [ "$1" = "hb" ]; then hb;exit; fi;
|
||||
if [ "$1" = "exec" ]; then shell "$2";exit; fi;
|
||||
if [ "$1" = "metrics" ]; then metrics "$2";exit; fi;
|
||||
if [ "$1" = "status" ]; then echo "Gathering Cluster Status....";status;exit; fi;
|
||||
if [ "$1" = "nodes" ]; then nodes;exit; fi;
|
||||
if [ "$1" = "addimage" ]; then addimage "$2";exit; fi;
|
||||
if [ "$1" = "clean" ]; then clean;exit; fi;
|
||||
if [ "$1" = "images" ]; then images;exit; fi;
|
||||
if [ "$1" = "log" ]; then echo "Gathering Logs....";logs;exit; fi;
|
||||
if [ "$1" = "restart" ]; then restart "$2";exit; fi;
|
||||
if [ "$1" = "changehost" ]; then changehost "$2" "$3";exit; fi;
|
||||
if [ "$1" = "delete" ]; then delete "$2";exit; fi;
|
||||
if [ "$1" = "build" ]; then echo "Building Images....";build "$2"; fi;
|
||||
if [ "$1" = "start" ]; then echo "Running container(s)....";start "$2"; fi;
|
||||
if [ "$1" = "stop" ]; then echo "Stopping container(s)....";stop "$2"; fi;
|
||||
if [ "$1" = "create" ]; then echo "Creating container(s)....";create "$2"; fi;
|
||||
else
|
||||
echo "Please install jq"
|
||||
fi
|
1576
server/package-lock.json
generated
Normal file
21
server/package.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "picluster-server",
|
||||
"version": "0.0.1",
|
||||
"config": {
|
||||
"unsafe-perm": true
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "latest",
|
||||
"body-parser": "latest",
|
||||
"eslint": "^7.24.0",
|
||||
"express": "",
|
||||
"fs": "0.0.2",
|
||||
"line-reader": "",
|
||||
"lodash": "^4.17.21",
|
||||
"moment": "",
|
||||
"multer": "latest",
|
||||
"superagent": "^5.3.1",
|
||||
"sys": "",
|
||||
"uuid": "^8.3.2"
|
||||
}
|
||||
}
|
3
server/picluster.conf
Normal file
@ -0,0 +1,3 @@
|
||||
stream {
|
||||
|
||||
}
|
2145
server/server.js
Normal file
0
ssl/.gitkeep
Normal file
1065
web/assets/circle.css
Executable file
127
web/assets/distLogo.js
Normal file
@ -0,0 +1,127 @@
|
||||
function distLogo(dist) {
|
||||
var logo = document.createElement('span');
|
||||
|
||||
switch (dist) {
|
||||
case 'alpine linux':
|
||||
logo.className = "fl-alpine";
|
||||
logo.style.color = "#0d597f";
|
||||
break;
|
||||
case 'centos':
|
||||
logo.className = "fl-centos";
|
||||
break;
|
||||
case 'rhel':
|
||||
break;
|
||||
case 'rhas':
|
||||
break;
|
||||
case 'red hat linux':
|
||||
logo.className = "fl-redhat";
|
||||
logo.style.color = "#e93442";
|
||||
break;
|
||||
case 'elementary os':
|
||||
logo.className = "fl-elementary";
|
||||
break;
|
||||
case 'gentoo linux':
|
||||
logo.className = "fl-gentoo";
|
||||
logo.style.color = "#514575";
|
||||
break;
|
||||
case 'mandriva linux':
|
||||
logo.className = "fl-mandriva";
|
||||
break;
|
||||
case 'raspbian':
|
||||
logo.className = "fl-raspberry-pi";
|
||||
logo.style.color = "#d6264f";
|
||||
break;
|
||||
case 'slackware':
|
||||
logo.className = "fl-slackware";
|
||||
break;
|
||||
case 'aosc':
|
||||
logo.className = "fl-aosc";
|
||||
break;
|
||||
case 'coreos':
|
||||
logo.className = "fl-coreos";
|
||||
break;
|
||||
case 'fedora':
|
||||
logo.className = "fl-fedora";
|
||||
logo.style.color = "#294172";
|
||||
break;
|
||||
case 'linux mint':
|
||||
logo.className = "fl-linuxmint";
|
||||
logo.style.color = "#86ce3e";
|
||||
break;
|
||||
case 'manjaro':
|
||||
logo.className = "fl-manjaro";
|
||||
logo.style.color = "#37bf5d";
|
||||
break;
|
||||
case 'apple':
|
||||
break;
|
||||
case 'osx':
|
||||
break;
|
||||
case 'macos':
|
||||
break;
|
||||
case 'darwin':
|
||||
logo.className = "fl-apple";
|
||||
break;
|
||||
case 'nixos':
|
||||
logo.className = "fl-nixos";
|
||||
break;
|
||||
case 'sabayon':
|
||||
logo.className = "fl-sabayon";
|
||||
break;
|
||||
case 'debian':
|
||||
logo.className = "fl-debian";
|
||||
logo.style.color = "#d70751";
|
||||
break;
|
||||
case 'ubuntu':
|
||||
logo.className = "fl-ubuntu-inverse";
|
||||
logo.style.color = "#dd4814";
|
||||
|
||||
break;
|
||||
case 'ubuntu linux':
|
||||
logo.className = "fl-ubuntu-inverse";
|
||||
logo.style.color = "#dd4814";
|
||||
break;
|
||||
case 'arch linux':
|
||||
logo.className = "fl-archlinux";
|
||||
logo.style.color = "#1793d1";
|
||||
break;
|
||||
case 'freebsd':
|
||||
logo.className = "fl-freebsd";
|
||||
logo.style.color = "#eb0028";
|
||||
break;
|
||||
case 'mageia':
|
||||
logo.className = "fl-mageia";
|
||||
break;
|
||||
case 'opensuse':
|
||||
logo.className = "fl-opensuse";
|
||||
logo.style.color = "#73ba25";
|
||||
break;
|
||||
default:
|
||||
logo.className = "fl-tux";
|
||||
break;
|
||||
}
|
||||
|
||||
logo.className += " node_status_logo fl-72";
|
||||
|
||||
return logo.outerHTML;
|
||||
}
|
||||
|
||||
function getDists(arr) {
|
||||
var dists = arr.filter(function(e, i) {
|
||||
var pred = e.startsWith('Dist: ');
|
||||
if (pred) {
|
||||
arr[i] = "";
|
||||
}
|
||||
return pred;
|
||||
});
|
||||
dists = dists.map(function(e) {
|
||||
return e.replace("Dist: ","").toLowerCase();
|
||||
});
|
||||
return dists;
|
||||
}
|
||||
|
||||
function addFontLinux() {
|
||||
var fontLinux = document.createElement("link");
|
||||
fontLinux.rel="stylesheet";
|
||||
fontLinux.href="/node_modules/font-logos/assets/font-logos.css";
|
||||
document.head.appendChild(fontLinux);
|
||||
}
|
2052
web/assets/dropzone.js
Normal file
BIN
web/assets/images/Debug-Bug-icon.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
web/assets/images/GitHub-Mark-120px-plus.png
Normal file
After Width: | Height: | Size: 73 KiB |
2385
web/assets/images/PiCluster_1A.ai
Normal file
370
web/assets/images/PiCluster_1A.svg
Normal file
@ -0,0 +1,370 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="428.978px" height="572.971px" viewBox="0 0 428.978 572.971" enable-background="new 0 0 428.978 572.971"
|
||||
xml:space="preserve">
|
||||
<g>
|
||||
<path fill="#C9003A" d="M44.15,475.119v23.448H28.221V430.15h27.771c8.113,0,14.551,2.076,19.313,6.227
|
||||
c4.761,4.15,7.142,9.578,7.142,16.281c0,6.736-2.381,12.164-7.142,16.282c-4.762,4.12-11.2,6.179-19.313,6.179H44.15z
|
||||
M44.15,462.902h11.841c3.446,0,6.069-0.947,7.871-2.843c1.801-1.896,2.702-4.331,2.702-7.308c0-3.037-0.901-5.527-2.702-7.471
|
||||
c-1.802-1.941-4.425-2.913-7.871-2.913H44.15V462.902z"/>
|
||||
<path fill="#C9003A" d="M107.163,435.93H91.234v-10.667h15.929V435.93z M107.163,498.567H91.234v-50.843h15.929V498.567z"/>
|
||||
<path fill="#C9003A" d="M167.451,477.609l0.094,0.283c0.125,7.018-1.997,12.381-6.367,16.094
|
||||
c-4.37,3.712-10.126,5.568-17.269,5.568c-7.487,0-13.486-2.765-17.997-8.294c-4.511-5.528-6.767-12.788-6.767-21.78v-10.243
|
||||
c0-8.959,2.255-16.212,6.767-21.757c4.511-5.544,10.509-8.316,17.997-8.316c7.143,0,12.899,1.864,17.269,5.592
|
||||
c4.37,3.729,6.492,9.053,6.367,15.977l-0.094,0.281h-2.162c0-6.171-1.919-10.932-5.756-14.285
|
||||
c-3.837-3.352-9.045-5.027-15.624-5.027c-6.672,0-12.045,2.521-16.117,7.565c-4.073,5.044-6.109,11.669-6.109,19.876v10.338
|
||||
c0,8.303,2.036,14.967,6.109,19.994c4.072,5.028,9.445,7.542,16.117,7.542c6.579,0,11.787-1.612,15.624-4.84
|
||||
c3.837-3.226,5.756-8.082,5.756-14.567H167.451z"/>
|
||||
<path fill="#C9003A" d="M185.965,498.567h-2.538v-73.304h2.538V498.567z"/>
|
||||
<path fill="#C9003A" d="M236.807,489.451c-1.598,3.227-3.877,5.718-6.836,7.472c-2.961,1.754-6.556,2.632-10.785,2.632
|
||||
c-5.231,0-9.327-1.856-12.287-5.568c-2.96-3.713-4.441-9.469-4.441-17.27v-28.992h2.538v29.086c0,6.893,1.269,11.982,3.806,15.272
|
||||
c2.538,3.289,5.968,4.934,10.291,4.934c5.294,0,9.358-1.3,12.193-3.899c2.834-2.601,4.645-6.046,5.428-10.338v-35.055h2.584v50.843
|
||||
h-2.115L236.807,489.451z"/>
|
||||
<path fill="#C9003A" d="M286.475,486.115c0-2.693-1.15-5.146-3.453-7.354c-2.303-2.209-6.32-3.939-12.053-5.193
|
||||
c-6.047-1.283-10.424-2.936-13.135-4.957c-2.709-2.021-4.064-5.02-4.064-8.998c0-3.634,1.535-6.68,4.605-9.14
|
||||
c3.07-2.459,7.205-3.688,12.406-3.688c5.605,0,10.023,1.315,13.25,3.947c3.227,2.631,4.762,6.062,4.605,10.291l-0.094,0.281h-2.162
|
||||
c0-3.32-1.402-6.147-4.205-8.481c-2.805-2.333-6.602-3.501-11.395-3.501c-4.764,0-8.365,1.026-10.809,3.078
|
||||
s-3.664,4.425-3.664,7.119c0,2.662,1.033,4.934,3.1,6.812c2.068,1.881,6.172,3.525,12.312,4.935
|
||||
c5.67,1.315,9.969,3.109,12.898,5.38c2.928,2.271,4.393,5.443,4.393,9.516c0,3.979-1.629,7.205-4.887,9.68
|
||||
s-7.58,3.713-12.969,3.713c-5.92,0-10.564-1.324-13.932-3.971c-3.369-2.647-4.943-5.866-4.723-9.656l0.094-0.282h2.068
|
||||
c0.25,4.011,1.973,6.907,5.168,8.692c3.195,1.786,6.971,2.679,11.324,2.679c4.699,0,8.426-1.097,11.184-3.289
|
||||
C285.096,491.535,286.475,488.998,286.475,486.115z"/>
|
||||
<path fill="#C9003A" d="M308.465,434.003v13.721h12.5v2.584h-12.5v35.148c0,4.167,0.705,7.135,2.115,8.904
|
||||
c1.41,1.771,3.273,2.655,5.592,2.655c0.846,0,1.598-0.03,2.256-0.094c0.658-0.062,1.566-0.172,2.725-0.329l0.471,2.303
|
||||
c-0.783,0.25-1.598,0.423-2.443,0.517c-0.846,0.095-1.803,0.142-2.867,0.142c-3.414,0-6.008-1.112-7.777-3.337
|
||||
c-1.77-2.224-2.654-5.811-2.654-10.761v-35.148h-9.398v-2.584h9.398v-13.721H308.465z"/>
|
||||
<path fill="#C9003A" d="M350.286,499.554c-5.795,0-10.799-2.342-15.012-7.025c-4.215-4.683-6.32-10.502-6.32-17.457v-3.007
|
||||
c0-7.299,2.035-13.337,6.107-18.114s9.102-7.166,15.084-7.166c5.732,0,10.408,1.879,14.027,5.639
|
||||
c3.617,3.76,5.428,8.803,5.428,15.131v3.9h-38.109v0.61v3.007c0,6.141,1.801,11.333,5.404,15.577
|
||||
c3.602,4.245,8.066,6.367,13.391,6.367c3.791,0,6.963-0.517,9.516-1.55c2.553-1.035,4.738-2.585,6.557-4.652l1.361,1.973
|
||||
c-2.004,2.225-4.439,3.908-7.307,5.052C357.547,498.982,354.17,499.554,350.286,499.554z M350.145,449.322
|
||||
c-5.043,0-9.24,1.841-12.592,5.521c-3.354,3.682-5.248,8.278-5.688,13.791l0.143,0.282h35.053v-1.551
|
||||
c0-5.169-1.566-9.468-4.697-12.898C359.229,451.037,355.157,449.322,350.145,449.322z"/>
|
||||
<path fill="#C9003A" d="M403.854,449.556l-3.289-0.281c-4.543,0-8.23,1.465-11.066,4.394c-2.834,2.93-4.674,6.79-5.521,11.583
|
||||
v33.315h-2.537v-50.843h2.068l0.469,8.834v1.738c1.41-3.633,3.51-6.461,6.297-8.48c2.789-2.021,6.219-3.031,10.291-3.031
|
||||
c0.721,0,1.387,0.055,1.998,0.164c0.609,0.11,1.135,0.229,1.574,0.353L403.854,449.556z"/>
|
||||
</g>
|
||||
<g>
|
||||
<g>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.843,29.947 124.193,52.61 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="154.41,150.815 124.193,52.61 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="41.097,150.815 124.193,52.61 154.41,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.844,150.815 275.278,90.381 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="350.82,90.381 275.278,37.501 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.843,29.947 275.278,37.501 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="33.542,211.249 93.977,150.815 41.097,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.844,90.381 93.977,211.249 154.41,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.843,211.249 154.41,211.249 214.844,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,150.815 124.193,181.032 154.41,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,211.249 93.977,150.815 124.193,181.032 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="33.542,211.249 93.977,150.815 93.977,271.683
|
||||
93.977,309.454 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="154.41,241.466 93.977,271.683 93.977,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.843,211.249 93.977,211.249 124.193,256.574 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="275.278,90.381 335.711,211.249 214.844,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="350.82,90.381 335.711,211.249 275.278,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,271.683 154.41,332.117 214.844,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.844,362.333 214.844,211.249 154.41,332.117 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,309.454 41.097,271.683 56.205,249.02 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="33.542,211.249 56.205,249.02 41.097,271.683 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,309.454 154.411,384.996 154.41,332.117 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="93.977,347.225 41.097,271.683 93.977,309.454 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="154.411,384.996 93.977,309.454 93.977,347.225 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="214.844,271.683 335.711,211.249 275.278,211.249 "/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="275.278" y1="181.031" x2="214.844" y2="271.683"/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="335.711,211.249 388.591,271.683 396.145,196.14 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="350.82,90.381 365.928,150.815 335.711,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="388.591,150.815 350.82,90.381 365.928,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="275.278,271.683 350.82,332.117 358.375,233.912 "/>
|
||||
<polyline fill="none" stroke="#C9003A" stroke-miterlimit="10" points="396.145,196.14 388.591,150.815 335.711,211.249
|
||||
358.375,233.912 275.278,241.466 214.844,362.333 275.278,271.683 275.278,332.117 350.82,332.117 313.049,362.333
|
||||
275.278,332.117 214.844,362.333 "/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="214.844" y1="317.008" x2="252.615" y2="286.791"/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="388.591" y1="271.683" x2="350.82" y2="332.117"/>
|
||||
<polyline fill="none" stroke="#C9003A" stroke-miterlimit="10" points="267.723,384.996 313.049,362.333 214.844,362.333
|
||||
154.411,384.996 214.843,392.55 214.844,362.333 267.723,384.996 214.843,392.55 "/>
|
||||
</g>
|
||||
<g>
|
||||
<circle fill="#C9003A" cx="41.097" cy="150.815" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="93.976" cy="150.815" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="33.541" cy="211.249" r="7.555"/>
|
||||
<circle fill="#C9003A" cx="93.977" cy="211.249" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="124.193" cy="181.031" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="154.41" cy="150.814" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="150.814" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="335.711" cy="211.249" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="358.374" cy="233.911" r="4.533"/>
|
||||
<circle fill="#C9003A" cx="275.277" cy="211.249" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="275.278" cy="181.031" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="365.928" cy="150.815" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="388.591" cy="150.814" r="4.533"/>
|
||||
<circle fill="#C9003A" cx="396.146" cy="196.14" r="6.043"/>
|
||||
<circle fill="#C9003A" cx="388.591" cy="271.682" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="350.82" cy="332.117" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="275.278" cy="271.683" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="252.615" cy="286.791" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="275.278" cy="332.117" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="313.049" cy="362.333" r="9.065"/>
|
||||
<circle fill="#C9003A" cx="267.724" cy="384.996" r="3.626"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="392.55" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="362.333" r="9.669"/>
|
||||
<circle fill="#C9003A" cx="154.41" cy="384.996" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="154.41" cy="332.117" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="93.976" cy="309.454" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="41.097" cy="271.682" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="93.976" cy="347.225" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="124.193" cy="256.574" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="154.41" cy="241.466" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="211.249" r="15.109"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="271.682" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="317.008" r="5.741"/>
|
||||
<circle fill="#C9003A" cx="275.278" cy="90.381" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="350.82" cy="90.381" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="279.055" cy="41.279" r="11.332"/>
|
||||
<circle fill="#C9003A" cx="214.843" cy="29.947" r="7.555"/>
|
||||
<circle fill="#C9003A" cx="214.844" cy="90.381" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="124.193" cy="52.61" r="6.043"/>
|
||||
<circle fill="#C9003A" cx="93.976" cy="271.683" r="6.044"/>
|
||||
<circle fill="#C9003A" cx="56.205" cy="249.02" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="154.41" cy="211.249" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="275.277" cy="241.466" r="10.274"/>
|
||||
</g>
|
||||
</g>
|
||||
<g opacity="0.1">
|
||||
<g>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.332,29.947 303.981,52.61 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="273.764,150.815 303.981,52.61 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="387.079,150.815 303.981,52.61 273.764,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.331,150.815 152.897,90.381 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="77.355,90.381 152.897,37.501 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.332,29.947 152.897,37.501 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="394.633,211.249 334.198,150.815 387.079,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.331,90.381 334.198,211.249 273.764,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.332,211.249 273.764,211.249 213.331,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,150.815 303.981,181.032 273.764,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,211.249 334.198,150.815 303.981,181.032 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="394.633,211.249 334.198,150.815 334.198,271.683
|
||||
334.198,309.454 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="273.764,241.466 334.198,271.683 334.198,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.332,211.249 334.198,211.249 303.981,256.574 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="152.897,90.381 92.463,211.249 213.331,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="77.355,90.381 92.463,211.249 152.897,90.381 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,271.683 273.764,332.117 213.331,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.331,362.333 213.331,211.249 273.764,332.117 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,309.454 387.079,271.683 371.969,249.02 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="394.633,211.249 371.969,249.02 387.079,271.683 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,309.454 273.764,384.996 273.764,332.117 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="334.198,347.225 387.079,271.683 334.198,309.454 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="273.764,384.996 334.198,309.454 334.198,347.225 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="213.331,271.683 92.463,211.249 152.897,211.249 "/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="152.897" y1="181.031" x2="213.331" y2="271.683"/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="92.463,211.249 39.583,271.683 32.03,196.14 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="77.355,90.381 62.247,150.815 92.463,211.249 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="39.583,150.815 77.355,90.381 62.247,150.815 "/>
|
||||
<polygon fill="none" stroke="#C9003A" stroke-miterlimit="10" points="152.897,271.683 77.355,332.117 69.8,233.912 "/>
|
||||
<polyline fill="none" stroke="#C9003A" stroke-miterlimit="10" points="32.03,196.14 39.583,150.815 92.463,211.249 69.8,233.912
|
||||
152.897,241.466 213.331,362.333 152.897,271.683 152.897,332.117 77.355,332.117 115.125,362.333 152.897,332.117
|
||||
213.331,362.333 "/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="213.331" y1="317.008" x2="175.56" y2="286.791"/>
|
||||
<line fill="none" stroke="#C9003A" stroke-miterlimit="10" x1="39.583" y1="271.683" x2="77.355" y2="332.117"/>
|
||||
<polyline fill="none" stroke="#C9003A" stroke-miterlimit="10" points="160.452,384.996 115.125,362.333 213.331,362.333
|
||||
273.764,384.996 213.332,392.55 213.331,362.333 160.452,384.996 213.332,392.55 "/>
|
||||
</g>
|
||||
<g>
|
||||
<circle fill="#C9003A" cx="387.078" cy="150.815" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="334.198" cy="150.815" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="394.634" cy="211.249" r="7.555"/>
|
||||
<circle fill="#C9003A" cx="334.198" cy="211.249" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="303.981" cy="181.031" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="273.765" cy="150.814" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="150.814" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="92.463" cy="211.249" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="69.801" cy="233.911" r="4.533"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="211.249" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="181.031" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="62.247" cy="150.815" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="39.583" cy="150.814" r="4.533"/>
|
||||
<circle fill="#C9003A" cx="32.029" cy="196.14" r="6.043"/>
|
||||
<circle fill="#C9003A" cx="39.584" cy="271.682" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="77.355" cy="332.117" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="271.683" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="175.56" cy="286.791" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="332.117" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="115.126" cy="362.333" r="9.065"/>
|
||||
<circle fill="#C9003A" cx="160.451" cy="384.996" r="3.626"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="392.55" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="362.333" r="9.669"/>
|
||||
<circle fill="#C9003A" cx="273.765" cy="384.996" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="273.765" cy="332.117" r="15.108"/>
|
||||
<circle fill="#C9003A" cx="334.198" cy="309.454" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="387.078" cy="271.682" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="334.198" cy="347.225" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="303.981" cy="256.574" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="273.764" cy="241.466" r="4.23"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="211.249" r="15.109"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="271.682" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="317.008" r="5.741"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="90.381" r="5.439"/>
|
||||
<circle fill="#C9003A" cx="77.354" cy="90.381" r="7.554"/>
|
||||
<circle fill="#C9003A" cx="149.12" cy="41.279" r="11.332"/>
|
||||
<circle fill="#C9003A" cx="213.332" cy="29.947" r="7.555"/>
|
||||
<circle fill="#C9003A" cx="213.331" cy="90.381" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="303.981" cy="52.61" r="6.043"/>
|
||||
<circle fill="#C9003A" cx="334.199" cy="271.683" r="6.044"/>
|
||||
<circle fill="#C9003A" cx="371.969" cy="249.02" r="3.021"/>
|
||||
<circle fill="#C9003A" cx="273.765" cy="211.249" r="3.022"/>
|
||||
<circle fill="#C9003A" cx="152.897" cy="241.466" r="10.274"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path d="M95.075,513.801l4.721,10.852h0.048l4.737-10.852h0.626v11.533h-0.428v-10.781l-0.048-0.016l-4.737,10.797h-0.341
|
||||
l-4.713-10.741l-0.047,0.016v10.726h-0.428v-11.533H95.075z"/>
|
||||
<path d="M113.531,523.75c-0.296,0.518-0.737,0.938-1.323,1.263c-0.586,0.325-1.296,0.487-2.131,0.487
|
||||
c-0.797,0-1.423-0.218-1.877-0.653c-0.455-0.436-0.682-1.022-0.682-1.763c0-0.718,0.339-1.319,1.018-1.806
|
||||
c0.679-0.485,1.527-0.729,2.547-0.729h2.448v-1.252c0-0.713-0.229-1.269-0.686-1.667c-0.457-0.399-1.1-0.599-1.929-0.599
|
||||
c-0.776,0-1.401,0.188-1.874,0.562s-0.709,0.858-0.709,1.45l-0.356-0.017l-0.016-0.039c-0.032-0.666,0.227-1.229,0.776-1.691
|
||||
c0.549-0.462,1.275-0.693,2.178-0.693c0.919,0,1.656,0.232,2.21,0.697c0.555,0.465,0.832,1.136,0.832,2.012v4.294
|
||||
c0,0.301,0.017,0.594,0.051,0.879s0.091,0.567,0.17,0.848h-0.476c-0.068-0.375-0.115-0.656-0.138-0.844
|
||||
c-0.024-0.188-0.036-0.39-0.036-0.605V523.75z M110.077,525.081c0.851,0,1.57-0.187,2.159-0.562s1.021-0.911,1.295-1.608v-1.925
|
||||
h-2.424c-0.887,0-1.636,0.204-2.246,0.613c-0.61,0.41-0.915,0.915-0.915,1.518c0,0.575,0.194,1.047,0.582,1.414
|
||||
S109.433,525.081,110.077,525.081z"/>
|
||||
<path d="M117.08,516.764l0.055,1.766c0.259-0.612,0.636-1.086,1.133-1.422c0.496-0.335,1.109-0.503,1.838-0.503
|
||||
c0.935,0,1.636,0.295,2.103,0.884s0.701,1.521,0.701,2.8v5.046h-0.428v-5.062c0-1.188-0.212-2.025-0.637-2.511
|
||||
c-0.425-0.486-1.002-0.729-1.731-0.729c-0.924,0-1.621,0.276-2.091,0.828s-0.763,1.258-0.879,2.119v5.354h-0.428v-8.57H117.08z"/>
|
||||
<path d="M130.974,523.75c-0.296,0.518-0.737,0.938-1.323,1.263c-0.586,0.325-1.296,0.487-2.131,0.487
|
||||
c-0.797,0-1.423-0.218-1.877-0.653c-0.455-0.436-0.682-1.022-0.682-1.763c0-0.718,0.339-1.319,1.018-1.806
|
||||
c0.679-0.485,1.527-0.729,2.547-0.729h2.448v-1.252c0-0.713-0.229-1.269-0.686-1.667c-0.457-0.399-1.1-0.599-1.929-0.599
|
||||
c-0.776,0-1.401,0.188-1.874,0.562s-0.709,0.858-0.709,1.45l-0.356-0.017l-0.016-0.039c-0.032-0.666,0.227-1.229,0.776-1.691
|
||||
c0.549-0.462,1.275-0.693,2.178-0.693c0.919,0,1.656,0.232,2.21,0.697c0.555,0.465,0.832,1.136,0.832,2.012v4.294
|
||||
c0,0.301,0.017,0.594,0.051,0.879s0.091,0.567,0.17,0.848h-0.476c-0.068-0.375-0.115-0.656-0.138-0.844
|
||||
c-0.024-0.188-0.036-0.39-0.036-0.605V523.75z M127.52,525.081c0.851,0,1.57-0.187,2.159-0.562s1.021-0.911,1.295-1.608v-1.925
|
||||
h-2.424c-0.887,0-1.636,0.204-2.246,0.613c-0.61,0.41-0.915,0.915-0.915,1.518c0,0.575,0.194,1.047,0.582,1.414
|
||||
S126.876,525.081,127.52,525.081z"/>
|
||||
<path d="M133.754,521.042c0-1.357,0.285-2.437,0.855-3.236s1.362-1.2,2.376-1.2c0.666,0,1.244,0.15,1.735,0.452
|
||||
c0.491,0.301,0.882,0.715,1.172,1.243l0.063-1.536h0.365v8.618c0,1.088-0.287,1.929-0.86,2.522
|
||||
c-0.573,0.594-1.366,0.892-2.38,0.892c-0.417,0-0.851-0.044-1.303-0.131s-0.846-0.207-1.184-0.36l0.126-0.428
|
||||
c0.385,0.169,0.758,0.294,1.117,0.376c0.359,0.082,0.768,0.123,1.228,0.123c0.924,0,1.625-0.258,2.103-0.772
|
||||
s0.717-1.256,0.717-2.222v-1.362c-0.291,0.454-0.684,0.814-1.18,1.081s-1.075,0.399-1.735,0.399c-1.008,0-1.797-0.385-2.364-1.156
|
||||
c-0.568-0.771-0.852-1.816-0.852-3.137V521.042z M134.19,521.208c0,1.183,0.235,2.123,0.705,2.82
|
||||
c0.47,0.696,1.159,1.045,2.067,1.045c0.745,0,1.362-0.167,1.854-0.503c0.491-0.335,0.848-0.782,1.069-1.343v-4.056
|
||||
c-0.211-0.606-0.545-1.115-1.002-1.524c-0.457-0.409-1.092-0.614-1.905-0.614c-0.909,0-1.6,0.371-2.076,1.113
|
||||
c-0.475,0.742-0.713,1.707-0.713,2.896V521.208z"/>
|
||||
<path d="M145.961,525.5c-0.977,0-1.82-0.395-2.531-1.184c-0.71-0.79-1.065-1.771-1.065-2.943v-0.507c0-1.23,0.343-2.248,1.03-3.054
|
||||
c0.687-0.805,1.534-1.208,2.543-1.208c0.966,0,1.754,0.317,2.364,0.951s0.915,1.483,0.915,2.551v0.657h-6.424v0.103v0.507
|
||||
c0,1.035,0.304,1.911,0.911,2.626c0.607,0.716,1.36,1.073,2.257,1.073c0.639,0,1.174-0.087,1.604-0.261
|
||||
c0.43-0.175,0.798-0.436,1.105-0.784l0.229,0.332c-0.338,0.375-0.749,0.659-1.232,0.852
|
||||
C147.185,525.405,146.616,525.5,145.961,525.5z M145.938,517.033c-0.851,0-1.558,0.311-2.123,0.931
|
||||
c-0.565,0.621-0.884,1.396-0.958,2.325l0.024,0.048h5.909v-0.262c0-0.871-0.264-1.596-0.792-2.175
|
||||
C147.469,517.322,146.782,517.033,145.938,517.033z"/>
|
||||
<path d="M155.316,525.334v-11.533h3.192c1.326,0,2.45,0.476,3.375,1.426s1.386,2.162,1.386,3.636v1.41
|
||||
c0,1.479-0.462,2.691-1.386,3.64s-2.049,1.422-3.375,1.422H155.316z M155.744,514.229v10.678h2.764
|
||||
c1.199,0,2.221-0.438,3.065-1.314c0.845-0.877,1.268-1.983,1.268-3.319v-1.434c0-1.32-0.422-2.419-1.268-3.296
|
||||
c-0.845-0.876-1.867-1.314-3.065-1.314H155.744z"/>
|
||||
<path d="M165.035,520.882c0-1.257,0.347-2.283,1.042-3.081c0.694-0.797,1.596-1.196,2.705-1.196c1.114,0,2.019,0.399,2.713,1.196
|
||||
c0.694,0.798,1.042,1.824,1.042,3.081v0.333c0,1.263-0.347,2.292-1.042,3.09c-0.694,0.797-1.594,1.195-2.697,1.195
|
||||
c-1.114,0-2.02-0.398-2.717-1.195c-0.697-0.798-1.046-1.827-1.046-3.09V520.882z M165.463,521.215c0,1.077,0.301,1.989,0.903,2.737
|
||||
c0.602,0.747,1.413,1.12,2.432,1.12c1.003,0,1.806-0.375,2.408-1.124c0.602-0.75,0.903-1.661,0.903-2.733v-0.333
|
||||
c0-1.051-0.304-1.955-0.911-2.713c-0.607-0.758-1.413-1.137-2.416-1.137c-1.009,0-1.814,0.379-2.416,1.137
|
||||
s-0.903,1.662-0.903,2.713V521.215z"/>
|
||||
<path d="M177.496,525.073c0.724,0,1.362-0.197,1.917-0.594s0.832-0.99,0.832-1.782h0.365l0.016,0.048
|
||||
c0.021,0.839-0.287,1.509-0.923,2.008s-1.372,0.748-2.206,0.748c-1.093,0-1.95-0.393-2.57-1.18
|
||||
c-0.621-0.787-0.931-1.822-0.931-3.105v-0.333c0-1.277,0.309-2.31,0.927-3.097c0.618-0.787,1.471-1.181,2.559-1.181
|
||||
c0.887,0,1.638,0.261,2.253,0.78c0.615,0.521,0.912,1.253,0.891,2.198l-0.016,0.048h-0.365c0-0.84-0.269-1.482-0.808-1.929
|
||||
c-0.539-0.446-1.191-0.67-1.957-0.67c-1.003,0-1.764,0.359-2.282,1.077c-0.518,0.719-0.776,1.643-0.776,2.772v0.333
|
||||
c0,1.141,0.258,2.069,0.776,2.784C175.716,524.715,176.482,525.073,177.496,525.073z"/>
|
||||
<path d="M184.418,520.954h-1.172v4.381h-0.428v-12.357h0.428v7.549h1.006l3.897-3.762h0.499l0.016,0.047l-3.929,3.857l4.23,4.626
|
||||
l-0.016,0.04h-0.499L184.418,520.954z"/>
|
||||
<path d="M193.259,525.5c-0.977,0-1.82-0.395-2.531-1.184c-0.71-0.79-1.065-1.771-1.065-2.943v-0.507c0-1.23,0.343-2.248,1.03-3.054
|
||||
c0.687-0.805,1.534-1.208,2.543-1.208c0.966,0,1.754,0.317,2.364,0.951s0.915,1.483,0.915,2.551v0.657h-6.424v0.103v0.507
|
||||
c0,1.035,0.304,1.911,0.911,2.626c0.607,0.716,1.36,1.073,2.257,1.073c0.639,0,1.174-0.087,1.604-0.261
|
||||
c0.43-0.175,0.798-0.436,1.105-0.784l0.229,0.332c-0.338,0.375-0.749,0.659-1.232,0.852
|
||||
C194.483,525.405,193.914,525.5,193.259,525.5z M193.235,517.033c-0.851,0-1.558,0.311-2.123,0.931
|
||||
c-0.565,0.621-0.884,1.396-0.958,2.325l0.024,0.048h5.909v-0.262c0-0.871-0.264-1.596-0.792-2.175
|
||||
C194.767,517.322,194.08,517.033,193.235,517.033z"/>
|
||||
<path d="M202.29,517.073l-0.555-0.048c-0.766,0-1.388,0.247-1.865,0.741c-0.478,0.493-0.789,1.145-0.931,1.952v5.616h-0.428v-8.57
|
||||
h0.349l0.079,1.488v0.294c0.238-0.613,0.591-1.09,1.062-1.431c0.47-0.34,1.048-0.511,1.735-0.511c0.122,0,0.234,0.01,0.336,0.028
|
||||
c0.103,0.019,0.191,0.038,0.266,0.06L202.29,517.073z"/>
|
||||
<path d="M210.686,525.073c0.724,0,1.362-0.197,1.917-0.594c0.555-0.396,0.832-0.99,0.832-1.782h0.365l0.016,0.048
|
||||
c0.021,0.839-0.287,1.509-0.924,2.008c-0.636,0.499-1.371,0.748-2.206,0.748c-1.093,0-1.95-0.393-2.57-1.18
|
||||
c-0.621-0.787-0.931-1.822-0.931-3.105v-0.333c0-1.277,0.309-2.31,0.927-3.097c0.618-0.787,1.471-1.181,2.559-1.181
|
||||
c0.887,0,1.638,0.261,2.252,0.78c0.615,0.521,0.914,1.253,0.893,2.198l-0.016,0.048h-0.365c0-0.84-0.27-1.482-0.809-1.929
|
||||
c-0.538-0.446-1.19-0.67-1.956-0.67c-1.003,0-1.764,0.359-2.282,1.077c-0.518,0.719-0.776,1.643-0.776,2.772v0.333
|
||||
c0,1.141,0.258,2.069,0.776,2.784C208.906,524.715,209.672,525.073,210.686,525.073z"/>
|
||||
<path d="M215.335,520.882c0-1.257,0.347-2.283,1.041-3.081c0.694-0.797,1.597-1.196,2.705-1.196c1.114,0,2.019,0.399,2.714,1.196
|
||||
c0.694,0.798,1.041,1.824,1.041,3.081v0.333c0,1.263-0.347,2.292-1.041,3.09c-0.695,0.797-1.594,1.195-2.697,1.195
|
||||
c-1.114,0-2.021-0.398-2.718-1.195c-0.696-0.798-1.045-1.827-1.045-3.09V520.882z M215.763,521.215
|
||||
c0,1.077,0.301,1.989,0.902,2.737c0.603,0.747,1.413,1.12,2.433,1.12c1.003,0,1.806-0.375,2.407-1.124
|
||||
c0.603-0.75,0.903-1.661,0.903-2.733v-0.333c0-1.051-0.304-1.955-0.911-2.713s-1.412-1.137-2.416-1.137
|
||||
c-1.009,0-1.813,0.379-2.416,1.137c-0.602,0.758-0.902,1.662-0.902,2.713V521.215z"/>
|
||||
<path d="M225.252,516.764l0.056,1.766c0.259-0.612,0.637-1.086,1.133-1.422c0.496-0.335,1.109-0.503,1.838-0.503
|
||||
c0.935,0,1.636,0.295,2.103,0.884c0.468,0.589,0.701,1.521,0.701,2.8v5.046h-0.428v-5.062c0-1.188-0.213-2.025-0.638-2.511
|
||||
c-0.425-0.486-1.002-0.729-1.73-0.729c-0.924,0-1.621,0.276-2.091,0.828c-0.471,0.552-0.764,1.258-0.88,2.119v5.354h-0.428v-8.57
|
||||
H225.252z"/>
|
||||
<path d="M234.656,514.451v2.313h2.106v0.436h-2.106v5.925c0,0.702,0.118,1.203,0.356,1.501c0.237,0.299,0.552,0.447,0.942,0.447
|
||||
c0.143,0,0.27-0.005,0.38-0.016c0.111-0.011,0.265-0.029,0.46-0.056l0.079,0.389c-0.132,0.042-0.27,0.071-0.412,0.087
|
||||
s-0.304,0.023-0.483,0.023c-0.575,0-1.013-0.188-1.311-0.562c-0.299-0.374-0.447-0.979-0.447-1.813V517.2h-1.585v-0.436h1.585
|
||||
v-2.313H234.656z"/>
|
||||
<path d="M244.161,523.75c-0.296,0.518-0.737,0.938-1.323,1.263c-0.586,0.325-1.296,0.487-2.131,0.487
|
||||
c-0.797,0-1.423-0.218-1.877-0.653s-0.682-1.022-0.682-1.763c0-0.718,0.34-1.319,1.019-1.806c0.678-0.485,1.527-0.729,2.546-0.729
|
||||
h2.448v-1.252c0-0.713-0.229-1.269-0.686-1.667c-0.457-0.399-1.1-0.599-1.929-0.599c-0.776,0-1.4,0.188-1.873,0.562
|
||||
s-0.709,0.858-0.709,1.45l-0.356-0.017l-0.017-0.039c-0.031-0.666,0.228-1.229,0.776-1.691c0.55-0.462,1.275-0.693,2.179-0.693
|
||||
c0.919,0,1.655,0.232,2.21,0.697s0.832,1.136,0.832,2.012v4.294c0,0.301,0.017,0.594,0.052,0.879
|
||||
c0.034,0.285,0.091,0.567,0.17,0.848h-0.476c-0.068-0.375-0.114-0.656-0.139-0.844c-0.023-0.188-0.035-0.39-0.035-0.605V523.75z
|
||||
M240.707,525.081c0.851,0,1.57-0.187,2.159-0.562c0.588-0.375,1.021-0.911,1.295-1.608v-1.925h-2.424
|
||||
c-0.888,0-1.636,0.204-2.246,0.613c-0.609,0.41-0.915,0.915-0.915,1.518c0,0.575,0.194,1.047,0.582,1.414
|
||||
C239.546,524.898,240.062,525.081,240.707,525.081z"/>
|
||||
<path d="M247.875,514.071h-0.428v-1.094h0.428V514.071z M247.875,525.334h-0.428v-8.57h0.428V525.334z"/>
|
||||
<path d="M251.051,516.764l0.056,1.766c0.259-0.612,0.637-1.086,1.133-1.422c0.496-0.335,1.109-0.503,1.838-0.503
|
||||
c0.935,0,1.636,0.295,2.103,0.884c0.468,0.589,0.701,1.521,0.701,2.8v5.046h-0.428v-5.062c0-1.188-0.213-2.025-0.638-2.511
|
||||
c-0.425-0.486-1.002-0.729-1.73-0.729c-0.924,0-1.621,0.276-2.091,0.828c-0.471,0.552-0.764,1.258-0.88,2.119v5.354h-0.428v-8.57
|
||||
H251.051z"/>
|
||||
<path d="M262.49,525.5c-0.977,0-1.82-0.395-2.53-1.184c-0.711-0.79-1.065-1.771-1.065-2.943v-0.507c0-1.23,0.343-2.248,1.029-3.054
|
||||
c0.687-0.805,1.534-1.208,2.543-1.208c0.966,0,1.755,0.317,2.364,0.951c0.61,0.634,0.915,1.483,0.915,2.551v0.657h-6.424v0.103
|
||||
v0.507c0,1.035,0.304,1.911,0.911,2.626c0.606,0.716,1.359,1.073,2.257,1.073c0.639,0,1.174-0.087,1.604-0.261
|
||||
c0.43-0.175,0.799-0.436,1.104-0.784l0.23,0.332c-0.339,0.375-0.749,0.659-1.232,0.852C263.713,525.405,263.145,525.5,262.49,525.5
|
||||
z M262.466,517.033c-0.851,0-1.558,0.311-2.123,0.931c-0.565,0.621-0.885,1.396-0.958,2.325l0.023,0.048h5.909v-0.262
|
||||
c0-0.871-0.264-1.596-0.792-2.175C263.998,517.322,263.311,517.033,262.466,517.033z"/>
|
||||
<path d="M271.52,517.073l-0.555-0.048c-0.766,0-1.387,0.247-1.865,0.741c-0.478,0.493-0.788,1.145-0.931,1.952v5.616h-0.428v-8.57
|
||||
h0.349l0.079,1.488v0.294c0.238-0.613,0.592-1.09,1.062-1.431c0.47-0.34,1.048-0.511,1.734-0.511c0.122,0,0.234,0.01,0.337,0.028
|
||||
c0.104,0.019,0.191,0.038,0.266,0.06L271.52,517.073z"/>
|
||||
<path d="M278.38,523.235c0-0.454-0.194-0.867-0.582-1.239c-0.389-0.372-1.065-0.664-2.032-0.875
|
||||
c-1.019-0.217-1.757-0.495-2.214-0.836s-0.686-0.847-0.686-1.517c0-0.613,0.259-1.126,0.776-1.541
|
||||
c0.518-0.414,1.215-0.622,2.092-0.622c0.945,0,1.689,0.222,2.233,0.666c0.544,0.443,0.803,1.021,0.776,1.734l-0.016,0.048h-0.364
|
||||
c0-0.56-0.236-1.037-0.709-1.43c-0.473-0.394-1.113-0.591-1.921-0.591c-0.803,0-1.41,0.173-1.822,0.52
|
||||
c-0.412,0.346-0.618,0.745-0.618,1.199c0,0.449,0.175,0.832,0.523,1.149c0.349,0.316,1.04,0.594,2.075,0.831
|
||||
c0.956,0.222,1.681,0.524,2.175,0.907c0.493,0.383,0.74,0.918,0.74,1.604c0,0.67-0.274,1.214-0.824,1.632
|
||||
c-0.549,0.417-1.277,0.625-2.186,0.625c-0.998,0-1.781-0.223-2.349-0.669c-0.568-0.446-0.833-0.989-0.797-1.628l0.017-0.048h0.349
|
||||
c0.042,0.677,0.332,1.165,0.871,1.466c0.538,0.301,1.175,0.451,1.909,0.451c0.792,0,1.42-0.185,1.885-0.554
|
||||
C278.148,524.149,278.38,523.721,278.38,523.235z"/>
|
||||
<path d="M281.889,525.334h-0.682v-1.029h0.682V525.334z"/>
|
||||
<path d="M295.705,522.57c0-0.724-0.266-1.302-0.797-1.734c-0.53-0.434-1.45-0.829-2.76-1.188c-1.315-0.354-2.277-0.757-2.888-1.208
|
||||
s-0.915-1.11-0.915-1.977c0-0.86,0.359-1.547,1.077-2.06c0.719-0.512,1.635-0.768,2.749-0.768c1.125,0,2.044,0.313,2.757,0.942
|
||||
c0.713,0.628,1.059,1.437,1.037,2.424l-0.016,0.048h-0.364c0-0.861-0.317-1.574-0.95-2.14c-0.634-0.564-1.455-0.847-2.464-0.847
|
||||
c-1.046,0-1.873,0.233-2.483,0.7c-0.61,0.468-0.915,1.029-0.915,1.684c0,0.655,0.252,1.199,0.757,1.632
|
||||
c0.504,0.433,1.416,0.818,2.736,1.156c1.278,0.338,2.243,0.752,2.896,1.24s0.979,1.182,0.979,2.079
|
||||
c0,0.914-0.373,1.633-1.117,2.158s-1.677,0.788-2.796,0.788c-1.157,0-2.152-0.271-2.986-0.812
|
||||
c-0.835-0.541-1.238-1.393-1.212-2.555l0.016-0.048h0.356c0,1.046,0.386,1.805,1.156,2.277c0.771,0.473,1.661,0.709,2.67,0.709
|
||||
c1.014,0,1.847-0.232,2.499-0.696C295.378,523.912,295.705,523.309,295.705,522.57z"/>
|
||||
<path d="M298.778,514.071h-0.428v-1.094h0.428V514.071z M298.778,525.334h-0.428v-8.57h0.428V525.334z"/>
|
||||
<path d="M301.875,516.764l0.056,1.766c0.259-0.606,0.631-1.079,1.117-1.418c0.485-0.338,1.077-0.507,1.774-0.507
|
||||
c0.739,0,1.34,0.189,1.802,0.566c0.462,0.378,0.78,0.96,0.954,1.747c0.228-0.729,0.599-1.298,1.113-1.707s1.158-0.614,1.929-0.614
|
||||
c0.945,0,1.663,0.31,2.154,0.927c0.491,0.618,0.737,1.59,0.737,2.915v4.888h-0.436v-4.903c0-1.241-0.222-2.117-0.666-2.63
|
||||
c-0.443-0.512-1.035-0.769-1.774-0.769c-0.908,0-1.595,0.273-2.06,0.82c-0.465,0.546-0.755,1.253-0.871,2.118
|
||||
c0,0.106,0.003,0.197,0.008,0.273c0.006,0.077,0.008,0.152,0.008,0.227v4.871h-0.436v-4.903c0-1.246-0.222-2.124-0.665-2.634
|
||||
s-1.038-0.765-1.782-0.765c-0.888,0-1.561,0.261-2.021,0.78c-0.459,0.521-0.752,1.195-0.879,2.024v5.497h-0.436v-8.57H301.875z"/>
|
||||
<path d="M322.683,521.208c0,1.32-0.285,2.366-0.855,3.137c-0.57,0.771-1.357,1.156-2.36,1.156c-0.671,0-1.256-0.135-1.755-0.403
|
||||
c-0.499-0.27-0.888-0.634-1.168-1.094v4.626h-0.428v-11.865h0.333l0.087,1.536c0.285-0.528,0.673-0.942,1.164-1.243
|
||||
c0.491-0.302,1.075-0.452,1.751-0.452c1.009,0,1.799,0.4,2.372,1.2s0.859,1.879,0.859,3.236V521.208z M322.248,521.042
|
||||
c0-1.188-0.239-2.153-0.717-2.896s-1.168-1.113-2.071-1.113c-0.829,0-1.474,0.209-1.933,0.626c-0.46,0.417-0.787,0.93-0.982,1.537
|
||||
v4.008c0.211,0.57,0.565,1.024,1.062,1.362s1.119,0.507,1.869,0.507c0.903,0,1.591-0.349,2.063-1.045
|
||||
c0.473-0.697,0.709-1.638,0.709-2.82V521.042z"/>
|
||||
<path d="M325.543,525.334h-0.428v-12.357h0.428V525.334z"/>
|
||||
<path d="M330.621,523.782l0.316,0.855h0.048l0.048-0.127l2.962-7.746h0.476l-3.81,9.996c-0.232,0.603-0.504,1.092-0.812,1.47
|
||||
c-0.309,0.377-0.801,0.566-1.478,0.566c-0.1,0-0.211-0.01-0.332-0.028c-0.122-0.019-0.212-0.038-0.27-0.06l0.071-0.403
|
||||
c0.058,0.016,0.146,0.031,0.262,0.047c0.115,0.017,0.205,0.024,0.269,0.024c0.486,0,0.865-0.143,1.137-0.428
|
||||
c0.272-0.285,0.514-0.708,0.726-1.268l0.515-1.395l-3.414-8.522h0.467L330.621,523.782z"/>
|
||||
<path d="M335.944,525.334h-0.682v-1.029h0.682V525.334z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 33 KiB |
BIN
web/assets/images/alert.png
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
web/assets/images/android-chrome-192x192.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
web/assets/images/android-chrome-384x384.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
web/assets/images/android-chrome-512x512.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
web/assets/images/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
web/assets/images/background.jpg
Normal file
After Width: | Height: | Size: 1005 B |
9
web/assets/images/browserconfig.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
BIN
web/assets/images/favicon-16x16.png
Normal file
After Width: | Height: | Size: 903 B |
BIN
web/assets/images/favicon-32x32.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
web/assets/images/favicon.ico
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
web/assets/images/function.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
web/assets/images/logo2.png
Normal file
After Width: | Height: | Size: 131 KiB |
18
web/assets/images/manifest.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
BIN
web/assets/images/mstile-150x150.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
web/assets/images/network.png
Normal file
After Width: | Height: | Size: 23 KiB |
163
web/assets/images/safari-pinned-tab.svg
Normal file
@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="422.000000pt" height="422.000000pt" viewBox="0 0 422.000000 422.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,422.000000) scale(0.100000,-0.100000)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M2088 3979 c-24 -9 -45 -41 -40 -61 1 -4 -15 -12 -36 -17 -72 -19
|
||||
-207 -53 -222 -56 -8 -2 -35 -8 -60 -15 -25 -7 -53 -14 -63 -16 -10 -2 -27 -6
|
||||
-37 -9 -10 -3 -27 -7 -37 -9 -10 -2 -38 -9 -63 -16 -25 -7 -52 -13 -60 -15 -8
|
||||
-2 -55 -13 -104 -25 -81 -20 -92 -21 -115 -7 -14 8 -35 13 -46 11 -30 -5 -57
|
||||
-43 -51 -73 6 -25 -79 -131 -421 -528 -24 -29 -110 -130 -190 -225 -80 -95
|
||||
-152 -177 -161 -182 -25 -14 -32 -28 -26 -52 5 -18 -13 -199 -31 -314 -2 -14
|
||||
-6 -50 -10 -80 -11 -96 -15 -109 -45 -127 -16 -9 -32 -28 -35 -41 -9 -35 13
|
||||
-81 41 -88 23 -6 26 -14 38 -119 3 -22 8 -58 10 -80 5 -40 20 -157 31 -249 5
|
||||
-39 3 -47 -8 -43 -10 4 -14 -5 -15 -31 -2 -41 20 -72 52 -73 16 0 76 -79 254
|
||||
-334 128 -183 237 -347 243 -364 6 -17 17 -32 25 -32 8 -1 18 -2 23 -3 5 0
|
||||
109 -64 231 -141 123 -77 235 -147 250 -155 21 -11 29 -25 33 -53 3 -21 14
|
||||
-45 24 -52 29 -23 81 -18 106 9 l22 23 239 -30 c193 -24 242 -33 257 -48 24
|
||||
-24 34 -24 59 1 11 11 38 22 62 24 24 3 59 7 78 10 231 35 321 45 342 37 18
|
||||
-7 29 -4 45 9 12 10 20 19 18 22 -2 2 71 41 164 87 163 82 169 84 192 68 63
|
||||
-45 143 1 137 77 l-3 41 128 103 c106 84 135 102 162 102 42 0 68 31 55 65 -7
|
||||
19 15 61 143 266 141 225 155 244 185 249 72 11 99 87 47 132 -27 24 -27 18
|
||||
-5 213 5 44 12 115 15 158 4 43 8 86 10 95 1 10 6 50 10 90 6 61 11 77 35 101
|
||||
34 34 31 58 -11 95 -16 15 -29 36 -30 49 0 12 -3 33 -5 47 -35 195 -44 264
|
||||
-34 274 24 24 4 76 -29 76 -10 0 -55 64 -110 153 -52 83 -113 181 -136 217
|
||||
-81 127 -85 136 -73 148 16 16 12 71 -7 92 -16 18 -95 33 -95 18 0 -5 -5 -8
|
||||
-11 -8 -6 0 -133 86 -282 190 l-272 191 -1 40 c-1 22 -7 51 -15 65 -30 57
|
||||
-117 71 -167 29 -23 -19 -38 -24 -64 -20 -79 11 -106 14 -163 20 -33 4 -70 8
|
||||
-81 10 -12 2 -48 6 -80 10 -100 11 -112 15 -118 39 -3 12 -17 28 -31 34 -30
|
||||
14 -31 14 -67 1z m202 -104 c43 -5 84 -10 180 -21 25 -3 72 -9 105 -14 33 -6
|
||||
63 -10 68 -10 4 0 7 -8 7 -18 0 -11 -97 -102 -246 -232 -135 -118 -250 -216
|
||||
-255 -218 -10 -4 -10 -11 -11 261 l0 208 29 28 c19 19 36 27 53 25 14 -2 45
|
||||
-6 70 -9z m-217 -20 l28 -25 0 -241 c0 -133 -2 -243 -4 -246 -6 -5 -797 323
|
||||
-809 335 -6 6 618 172 752 200 3 1 18 -10 33 -23z m599 -124 c34 -47 106 -58
|
||||
157 -22 l26 18 278 -194 c153 -108 276 -198 272 -201 -3 -3 -145 -6 -316 -6
|
||||
-284 -1 -312 1 -326 17 -20 22 -57 22 -78 0 -15 -14 -46 -17 -248 -17 -128 -1
|
||||
-240 0 -249 2 -12 3 3 21 55 65 40 34 74 64 77 67 3 3 39 35 80 70 41 36 77
|
||||
67 80 70 3 3 39 34 80 70 41 36 77 68 78 73 6 12 20 8 34 -12z m-996 -257
|
||||
c219 -91 401 -167 403 -170 3 -3 -102 -112 -233 -243 l-238 -238 -34 18 c-20
|
||||
9 -46 16 -58 13 -30 -5 -22 -23 -141 366 -53 173 -103 335 -111 359 -15 44
|
||||
-12 77 5 67 5 -4 188 -81 407 -172z m-343 -236 l119 -387 -36 -36 c-20 -19
|
||||
-39 -49 -43 -65 l-5 -30 -199 0 c-186 0 -200 1 -219 20 -25 25 -48 25 -75 0
|
||||
-21 -19 -33 -20 -238 -18 l-217 3 48 56 c26 30 67 80 92 109 25 30 63 75 85
|
||||
100 66 76 133 155 173 203 197 240 369 437 382 434 10 -1 52 -125 133 -389z
|
||||
m1337 45 c0 -5 -115 -122 -255 -262 -182 -181 -258 -252 -266 -244 -9 9 -13
|
||||
159 -10 456 l1 57 265 0 c146 0 265 -3 265 -7z m756 -20 c27 -31 27 -45 4
|
||||
-218 -6 -44 -13 -96 -15 -115 -12 -94 -36 -289 -40 -322 -7 -58 -15 -114 -20
|
||||
-155 -12 -100 -26 -197 -28 -199 -1 -1 -13 -4 -27 -6 -23 -3 -38 24 -280 508
|
||||
-141 281 -254 516 -252 523 3 8 92 11 318 11 l315 0 25 -27z m-698 -13 c4 0
|
||||
122 -229 262 -510 l254 -509 -23 -25 -23 -25 -218 109 c-119 60 -223 117 -230
|
||||
125 -7 8 -20 15 -30 15 -10 0 -132 57 -272 128 l-254 127 1 35 c0 32 20 56
|
||||
250 287 139 140 256 249 263 247 8 -2 17 -4 20 -4z m-626 -251 c0 -199 -2
|
||||
-214 -20 -229 -49 -40 -50 -84 -4 -127 26 -24 26 -24 27 -199 0 -96 -2 -178
|
||||
-5 -183 -3 -4 -22 -16 -43 -26 -37 -17 -87 -76 -87 -102 0 -14 7 -14 -238 -15
|
||||
-95 -1 -175 1 -178 4 -3 3 118 251 268 551 150 300 274 544 276 542 2 -1 3
|
||||
-99 4 -216z m-101 114 c-191 -389 -485 -970 -496 -982 -10 -11 -59 -13 -232
|
||||
-13 -305 1 -293 0 -293 14 0 7 46 59 102 115 78 78 109 103 129 103 32 0 63
|
||||
33 56 59 -3 14 16 39 72 95 l76 75 45 -15 c81 -28 157 4 192 82 19 44 18 75
|
||||
-3 127 -12 28 -10 31 192 233 112 112 205 204 206 204 1 0 -19 -44 -46 -97z
|
||||
m1544 -136 c50 -205 54 -230 41 -249 -10 -15 -12 -27 -5 -45 8 -20 -7 -56 -94
|
||||
-230 -56 -113 -107 -205 -112 -205 -9 0 -9 34 0 82 1 8 27 209 56 447 29 237
|
||||
54 431 56 430 1 -2 27 -105 58 -230z m139 -26 c70 -112 130 -210 133 -217 4
|
||||
-11 -10 -14 -66 -14 -42 0 -71 4 -71 10 0 6 -10 14 -22 19 -20 8 -29 33 -71
|
||||
202 -27 107 -51 205 -54 219 -5 24 -5 24 10 5 8 -11 71 -112 141 -224z m-2824
|
||||
-269 c0 -12 -505 -512 -517 -512 -8 0 -11 11 -8 33 3 17 7 55 10 83 3 28 7 59
|
||||
9 70 2 10 7 48 11 84 4 36 9 74 11 85 2 11 6 46 9 79 4 33 11 66 16 73 8 9 68
|
||||
12 235 11 123 0 224 -3 224 -6z m507 -10 c2 -10 10 -27 16 -40 10 -21 4 -30
|
||||
-66 -100 -53 -53 -85 -77 -102 -78 -21 -2 -50 22 -141 112 -63 63 -114 116
|
||||
-114 118 0 2 90 4 201 4 178 0 201 -2 206 -16z m2443 9 c0 -5 -6 -16 -13 -23
|
||||
-7 -7 -75 -85 -152 -173 -76 -88 -156 -178 -177 -200 -21 -22 -38 -43 -38 -47
|
||||
0 -5 -5 -8 -10 -8 -6 0 37 94 95 209 88 175 109 210 130 215 14 4 28 13 31 21
|
||||
5 11 23 15 70 15 35 0 64 -4 64 -9z m46 -58 c2 -15 15 -91 28 -168 l23 -140
|
||||
-21 -30 c-12 -16 -22 -32 -23 -33 -4 -8 -387 -100 -395 -96 -4 3 -8 11 -8 19
|
||||
0 7 -6 15 -12 17 -8 3 37 62 107 142 235 270 287 327 292 322 2 -2 6 -17 9
|
||||
-33z m-2963 -212 l1 -229 -28 -23 c-39 -34 -39 -84 -1 -117 l28 -24 0 -230
|
||||
c-1 -219 -1 -230 -22 -252 -27 -29 -27 -54 1 -84 21 -22 23 -33 23 -147 0 -69
|
||||
-3 -121 -6 -117 -15 16 -319 513 -319 521 0 5 -9 20 -21 34 -11 15 -58 88
|
||||
-104 163 -66 108 -82 141 -74 155 5 10 9 33 9 51 0 30 24 57 252 285 139 139
|
||||
254 250 256 248 3 -3 5 -108 5 -234z m158 130 c88 -88 109 -114 109 -138 0
|
||||
-23 -20 -48 -103 -131 -56 -56 -108 -102 -115 -102 -9 0 -12 56 -12 240 0 132
|
||||
3 240 6 240 3 0 54 -49 115 -109z m1389 -13 c186 -92 248 -127 247 -140 -2
|
||||
-19 -540 -827 -547 -823 -3 2 -5 87 -5 190 l0 186 41 18 c71 32 104 98 90 176
|
||||
-8 42 -63 101 -103 109 l-28 7 0 185 c0 172 2 187 20 200 10 8 23 14 28 14 5
|
||||
0 121 -55 257 -122z m538 -271 c185 -94 211 -110 203 -125 -8 -16 -28 -17
|
||||
-190 -17 l-181 0 -25 28 c-14 15 -30 28 -35 28 -6 1 -16 2 -22 3 -44 6 -84
|
||||
-44 -75 -92 5 -26 -10 -44 -210 -243 l-215 -214 79 120 c396 599 415 626 437
|
||||
623 11 -2 117 -51 234 -111z m916 -52 c19 -14 19 -23 1 -180 -4 -38 -7 -69
|
||||
-20 -200 -4 -33 -10 -98 -16 -145 -5 -47 -9 -90 -9 -96 0 -28 -32 -23 -58 8
|
||||
-15 18 -68 80 -119 138 -59 66 -89 108 -83 114 28 28 -1 76 -44 76 -9 0 -34
|
||||
18 -57 41 -38 38 -40 43 -29 65 7 13 16 40 19 60 l6 37 190 48 c105 26 192 47
|
||||
195 48 3 0 13 -6 24 -14z m-2396 -125 c403 0 471 -3 476 -15 6 -17 17 -11
|
||||
-234 -135 -154 -76 -203 -96 -232 -94 -44 2 -511 231 -502 245 3 5 9 7 14 4 5
|
||||
-3 220 -5 478 -5z m1680 -17 c3 -18 -23 -34 -183 -113 -177 -89 -186 -92 -204
|
||||
-76 -11 10 -38 20 -60 23 -36 5 -44 2 -76 -30 -29 -29 -36 -43 -33 -69 l3 -33
|
||||
-185 -93 c-102 -52 -196 -98 -210 -103 -14 -6 81 95 210 224 l234 235 44 -1
|
||||
c37 0 48 4 67 29 l23 29 183 0 c179 -1 184 -2 187 -22z m-1950 -138 c133 -66
|
||||
242 -122 242 -125 0 -3 -56 -33 -124 -67 -115 -57 -125 -61 -139 -45 -20 24
|
||||
-237 350 -237 358 0 8 -12 14 258 -121z m-168 -77 c67 -100 119 -186 117 -192
|
||||
-7 -18 -214 -117 -231 -110 -14 5 -16 36 -16 245 0 131 2 239 5 239 3 0 59
|
||||
-82 125 -182z m-639 32 c45 -74 82 -145 81 -157 -2 -21 -100 -178 -107 -171
|
||||
-3 3 -11 51 -19 123 -13 108 -16 132 -21 155 -2 14 -7 54 -10 90 -4 36 -9 74
|
||||
-12 85 -8 31 -1 20 88 -125z m1381 -375 l-234 -470 -43 3 c-26 2 -55 -3 -74
|
||||
-13 l-32 -16 -225 224 c-169 169 -224 230 -224 248 0 21 15 32 107 78 59 29
|
||||
119 55 133 58 14 2 27 9 28 14 7 18 244 131 265 125 14 -3 29 4 47 24 14 15
|
||||
119 74 234 132 l209 104 21 -20 22 -21 -234 -470z m1484 449 c23 -6 71 -2 119
|
||||
10 14 4 29 -6 54 -35 19 -22 32 -42 29 -44 -2 -3 -40 -7 -84 -10 -43 -3 -90
|
||||
-8 -104 -10 -14 -2 -61 -7 -105 -10 -44 -4 -96 -8 -115 -10 -19 -2 -66 -6
|
||||
-105 -10 -38 -3 -90 -8 -115 -10 l-45 -5 30 17 c17 10 102 54 190 98 l160 81
|
||||
33 -28 c18 -15 44 -31 58 -34z m-1182 -217 c-1 -212 -4 -237 -32 -269 -17 -20
|
||||
-3 -25 16 -6 7 7 12 10 13 7 1 -2 2 -84 3 -182 2 -174 1 -179 -21 -203 -29
|
||||
-31 -29 -44 -1 -79 20 -26 22 -40 23 -167 0 -76 -2 -142 -5 -146 -3 -4 -18
|
||||
-16 -34 -26 l-29 -18 -189 93 c-188 93 -189 94 -184 123 8 40 -10 101 -40 131
|
||||
l-24 24 234 470 c196 392 238 469 253 465 17 -5 18 -21 17 -217z m1326 103 c0
|
||||
-6 -8 -14 -17 -17 -10 -4 -160 -71 -333 -150 -201 -91 -318 -139 -324 -133
|
||||
-16 16 -52 11 -70 -8 -10 -12 -15 -32 -14 -53 2 -29 -25 -75 -191 -324 -203
|
||||
-305 -220 -328 -199 -280 46 105 216 432 230 443 9 7 16 20 15 30 0 10 36 92
|
||||
82 183 81 162 84 166 115 166 41 0 81 26 96 63 7 17 20 30 29 31 9 0 24 2 34
|
||||
4 9 2 52 6 95 10 42 3 95 8 117 10 90 9 154 15 235 21 47 3 87 8 89 10 7 7 11
|
||||
4 11 -6z m104 -31 c-4 -61 -16 -228 -19 -259 -2 -19 -6 -75 -10 -125 -4 -49
|
||||
-8 -106 -10 -125 -2 -19 -6 -80 -10 -136 -3 -55 -8 -109 -10 -120 -2 -10 -4
|
||||
-39 -4 -63 -1 -37 -4 -43 -20 -38 -10 2 -165 122 -345 266 -314 252 -356 292
|
||||
-313 303 15 3 45 17 456 205 146 67 271 120 276 119 6 -2 9 -14 9 -27z m193
|
||||
-188 c60 -71 69 -87 60 -102 -8 -14 -8 -27 1 -53 12 -34 12 -35 -134 -267 -81
|
||||
-129 -149 -236 -151 -239 -3 -3 -2 22 1 55 3 33 8 94 11 135 3 41 7 102 10
|
||||
135 6 71 11 136 21 264 3 52 8 111 9 130 2 20 4 56 4 81 l1 45 48 -50 c26 -27
|
||||
80 -88 119 -134z m-1145 -73 c-45 -90 -96 -179 -114 -200 -36 -40 -306 -258
|
||||
-319 -258 -12 0 -11 -8 -13 185 -1 94 2 181 6 195 7 20 56 48 251 146 202 101
|
||||
244 118 256 108 13 -12 3 -37 -67 -176z m-1893 -107 c84 -134 151 -244 149
|
||||
-246 -2 -2 -91 60 -198 137 -238 170 -235 164 -159 279 28 44 53 78 54 77 2
|
||||
-2 71 -113 154 -247z m2128 -38 c17 -15 160 -131 317 -257 157 -125 286 -231
|
||||
286 -235 0 -4 -569 -6 -662 -2 -17 1 -18 21 -18 264 0 145 3 267 6 270 8 8 30
|
||||
-5 71 -40z m-1644 -191 c255 -256 265 -272 123 -221 -239 85 -337 127 -352
|
||||
148 -13 17 -16 49 -16 139 0 152 1 162 10 162 4 0 110 -103 235 -228z m1523
|
||||
-306 c-16 -24 -491 -264 -502 -253 -4 4 109 182 252 396 l259 389 3 -256 c2
|
||||
-205 0 -259 -12 -276z m-2027 364 c145 -104 198 -148 209 -173 10 -22 14 -70
|
||||
14 -160 0 -71 -2 -130 -4 -131 -1 -2 -98 133 -215 300 -117 167 -209 304 -205
|
||||
304 4 0 94 -63 201 -140z m1629 -291 c-83 -166 -153 -297 -157 -291 -4 6 -6
|
||||
73 -6 149 1 128 3 141 24 170 13 17 21 37 19 44 -3 8 50 57 130 121 74 60 136
|
||||
108 138 108 1 0 -65 -136 -148 -301z m-1198 51 c47 -17 126 -47 175 -66 l91
|
||||
-34 0 -45 c1 -56 41 -111 95 -134 l39 -16 0 -147 c0 -81 -4 -149 -9 -152 -5
|
||||
-3 -106 117 -226 267 -119 149 -233 292 -253 316 -46 55 -50 63 -20 52 12 -5
|
||||
61 -23 108 -41z m94 -293 c135 -170 240 -305 233 -301 -103 60 -466 292 -479
|
||||
307 -16 16 -18 41 -18 170 0 91 4 147 9 142 5 -6 120 -149 255 -318z m2236
|
||||
136 c0 -1 -59 -50 -132 -108 -91 -74 -136 -104 -147 -99 -32 14 -69 16 -90 4
|
||||
-20 -10 -35 -1 -149 90 -70 56 -128 105 -130 108 -1 4 144 7 323 7 179 0 325
|
||||
-1 325 -2z m-551 -125 c125 -99 159 -135 134 -139 -23 -4 -780 -5 -792 -1 -17
|
||||
6 465 251 496 251 12 1 78 -44 162 -111z m-963 -75 c84 -43 110 -61 109 -75
|
||||
-1 -10 -6 -22 -11 -27 -5 -5 -104 -45 -220 -88 l-211 -80 -27 22 c-26 21 -26
|
||||
21 -26 166 l0 145 33 12 c19 7 44 23 57 37 l23 24 81 -40 c44 -22 131 -66 192
|
||||
-96z m1090 -106 c3 -3 -70 -43 -162 -89 -120 -59 -179 -83 -204 -82 -37 1
|
||||
-423 161 -416 173 5 8 774 6 782 -2z m-910 -84 c12 -13 11 -143 -1 -162 -8
|
||||
-14 -31 -12 -230 13 -28 4 -70 9 -95 12 -25 3 -76 10 -114 16 l-69 10 159 60
|
||||
c88 33 188 70 224 83 l65 24 25 -22 c14 -12 30 -27 36 -34z m201 13 c43 -18
|
||||
98 -42 123 -53 25 -11 71 -31 103 -43 58 -24 71 -35 40 -36 -10 0 -105 -13
|
||||
-211 -28 -138 -20 -197 -25 -204 -18 -6 6 -12 46 -13 89 -2 77 -1 78 29 100
|
||||
17 11 36 22 43 22 6 1 47 -14 90 -33z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 11 KiB |
BIN
web/assets/images/searching.jpg
Normal file
After Width: | Height: | Size: 556 KiB |
BIN
web/assets/images/server.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
web/assets/images/sphere.png
Normal file
After Width: | Height: | Size: 682 KiB |
BIN
web/assets/images/theme/default/logo.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
web/assets/images/theme/jerry/logo.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
web/assets/images/ui-bg_glass_85_dfeffc_1x400.png
Normal file
After Width: | Height: | Size: 399 B |
BIN
web/assets/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
web/assets/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
Normal file
After Width: | Height: | Size: 350 B |
BIN
web/assets/images/ui-icons_469bdd_256x240.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
web/assets/images/ui-icons_6da8d5_256x240.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
web/assets/images/ui-icons_f9bd01_256x240.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
1312
web/assets/jquery-ui.css
vendored
Normal file
18706
web/assets/jquery-ui.js
vendored
Normal file
4
web/assets/jquery.min.js
vendored
Normal file
16
web/assets/jquery.terminal.min.css
vendored
Normal file
36
web/assets/jquery.terminal.min.js
vendored
Normal file
4463
web/assets/moment.js
Normal file
607
web/assets/picluster-iframe.css
Normal file
@ -0,0 +1,607 @@
|
||||
html {}
|
||||
|
||||
body {
|
||||
display: block;
|
||||
color: rgba(255, 255, 255, .9);
|
||||
text-decoration: none;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-size: 1rem;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: #565051;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: black;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: black;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 40px 0 60px 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: .4em;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
table tbody tr td label {
|
||||
color: black;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
@-webkit-keyframes animatetop {
|
||||
from {
|
||||
top: -300px;
|
||||
opacity: 0
|
||||
}
|
||||
to {
|
||||
top: 0;
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animatetop {
|
||||
from {
|
||||
top: -300px;
|
||||
opacity: 0
|
||||
}
|
||||
to {
|
||||
top: 0;
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
.modal {
|
||||
display: none;
|
||||
z-index: 1;
|
||||
padding-top: 5px;
|
||||
height: 98.5%;
|
||||
width: 100%;
|
||||
background-color: rgb(0, 0, 0);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
3
|
||||
}
|
||||
|
||||
.modal-description {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
position: relative;
|
||||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
font-size: 12px;
|
||||
padding: 0;
|
||||
border: 1px solid #888;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
-webkit-animation-name: animatetop;
|
||||
-webkit-animation-duration: 0.4s;
|
||||
animation-name: animatetop;
|
||||
animation-duration: 0.4s
|
||||
}
|
||||
|
||||
.modal-small {
|
||||
width: 44%;
|
||||
min-width: 370px;
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.modal-large {
|
||||
width: 75%;
|
||||
min-width: 600px;
|
||||
height: 95%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 2px 16px;
|
||||
background-color: #565051;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 1px 10px 10px;
|
||||
color: black;
|
||||
font-size: 18px;
|
||||
max-height: 90%;
|
||||
}
|
||||
|
||||
.modal_input {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.close {
|
||||
color: white;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.close:hover,
|
||||
.close:focus {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dark-area {
|
||||
background-color: #666;
|
||||
padding: 40px;
|
||||
margin: 0 -40px 20px -40px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.node_card {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.container_status_div {
|
||||
margin: 20px;
|
||||
width: 75px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.node_status_div {
|
||||
margin: 20px;
|
||||
width: 75px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.node_status_text {
|
||||
font-size: medium;
|
||||
color: black;
|
||||
width: 96px
|
||||
}
|
||||
|
||||
.log_type_box {
|
||||
width: 16%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.div_logo_text {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
white-space: pre-wrap;
|
||||
color: black;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page {
|
||||
display: block;
|
||||
height: 75px;
|
||||
margin: 0 auto;
|
||||
width: 75px;
|
||||
}
|
||||
|
||||
.container_card {}
|
||||
|
||||
.container_card_logo {
|
||||
max-width: 70px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.container_card_list {
|
||||
font-weight: bold;
|
||||
margin: 40px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.image_card {}
|
||||
|
||||
.image_card_logo {
|
||||
max-width: 70px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image_card_list {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#container_searching {}
|
||||
|
||||
#function_searching {}
|
||||
|
||||
#image_searching {}
|
||||
|
||||
#node_searching {}
|
||||
|
||||
#landing_page {
|
||||
text-align: center;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#modal_container {
|
||||
height: 98.5%;
|
||||
}
|
||||
|
||||
#query {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#submit_button {
|
||||
display: inline;
|
||||
font-size: 16px;
|
||||
padding: 10px 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#submit_button_div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#log_search {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#log_search_bar {
|
||||
width: 30%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#log_search_button {
|
||||
width: 30%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#log_type {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#log_type_error {}
|
||||
|
||||
#log_type_failure {}
|
||||
|
||||
#log_type_warning {}
|
||||
|
||||
#log_type_today {}
|
||||
|
||||
#log_output {
|
||||
width: 100%;
|
||||
height: 79%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#upload-widget {
|
||||
font-size: 18px;
|
||||
background-color: #565051;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#terminal_modal {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
#terminal_container {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#terminal {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#terminal .prompt {
|
||||
color: #D75F00;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#terminal_container {
|
||||
height: 89%;
|
||||
}
|
||||
|
||||
#host {
|
||||
font-size: 18px;
|
||||
width: 50%;
|
||||
display: inline;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#node {
|
||||
font-size: 18px;
|
||||
width: 50%;
|
||||
display: inline;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#node_add {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#node_remove {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#node_list {
|
||||
font-size: 18px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#node_failover_constraint {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#node_list_action_selector {
|
||||
width: 22%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#container_list {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#container_list_fieldset {}
|
||||
|
||||
#container_list_options_fieldset {}
|
||||
|
||||
#container_list_action_selector {
|
||||
width: 21%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#container_list_add {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#container_list_modify {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#container-add-fieldset {}
|
||||
|
||||
#container_heatbeat_fieldset {}
|
||||
|
||||
#container {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#image_list_action_selector {
|
||||
width: 21%;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#image_list_build {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#image_list_pull {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#image_list_upload {
|
||||
width: 75%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#functions {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#function_list {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#function_list_selector {
|
||||
width: 150px;
|
||||
margin-right: 20px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#function_list_submit {
|
||||
width: 100px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#function_output {
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
#function_url {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#function-args {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#image_list {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#image_list_fieldset {}
|
||||
|
||||
#image_list_options_fieldset {}
|
||||
|
||||
#command_entry {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#command_output {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#exec_output {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#windowfont {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#config_editor {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
#payload {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#node_status_logo {
|
||||
font-size: 72px;
|
||||
max-width: 72px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#source,
|
||||
#issues,
|
||||
#status_circle {
|
||||
display: inline-block;
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
vertical-align: top;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#source img,
|
||||
#issues img {
|
||||
height: 75px;
|
||||
vertical-align: top;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#running-class {
|
||||
cursor: pointer;
|
||||
float: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#logo {
|
||||
height: auto;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
#source_issues_circle {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#rerun_div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#config-reload-modal-body {}
|
||||
|
||||
#containers-add-modal-body {}
|
||||
|
||||
#containers-layout-modal-body {}
|
||||
|
||||
#containers-manage-modal-body {}
|
||||
|
||||
#docs-modal-body {}
|
||||
|
||||
#functions-clear-modal-body {}
|
||||
|
||||
#functions-create-modal-body {}
|
||||
|
||||
#functions-current-modal-body {}
|
||||
|
||||
#functions-viewer-modal-body {}
|
||||
|
||||
#heartbeat-modal-body {}
|
||||
|
||||
#images-manage-modal-body {}
|
||||
|
||||
#images-prune-modal-body {
|
||||
overflow-y: scroll;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#images-pull-modal-body {}
|
||||
|
||||
#images-upload-modal-body {}
|
||||
|
||||
#killvip-modal-body {}
|
||||
|
||||
#nodes-add-modal-body {}
|
||||
|
||||
#nodes-list-modal-body {}
|
||||
|
||||
#nodes-removed-modal-body {}
|
268
web/assets/picluster-ui.css
Normal file
@ -0,0 +1,268 @@
|
||||
html {
|
||||
font-family: 'Nunito', sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #FFFFFF;
|
||||
background-image: url("/assets/images/background.jpg");
|
||||
background-size: 100%;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
margin: 0px;
|
||||
line-height: 18px;
|
||||
color: #333333;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 200;
|
||||
font-size: 3rem;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
input {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
nav {
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
background: #565051;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
nav::after {
|
||||
display: block;
|
||||
content: '';
|
||||
clear: both;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
padding: 1vw;
|
||||
display: block;
|
||||
color: rgba(255, 255, 255, .9);
|
||||
text-decoration: none;
|
||||
font-size: 2vw;
|
||||
border-top: 2px solid transparent;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
nav ul li a:hover,
|
||||
nav ul li a:focus {
|
||||
background: #565051;
|
||||
}
|
||||
|
||||
nav ul li a:focus {
|
||||
color: white;
|
||||
}
|
||||
|
||||
nav ul li a:not(:only-child)::after {
|
||||
padding-left: 4px;
|
||||
content: ' ▾';
|
||||
}
|
||||
|
||||
nav ul li ul li {
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
nav ul li ul li a {
|
||||
padding: 0.9rem;
|
||||
line-height: 1.7rem;
|
||||
background: transparent;
|
||||
color: #4a5666;
|
||||
border-bottom: 1px solid #DDE0E7;
|
||||
}
|
||||
|
||||
nav ul li ul li a:hover,
|
||||
nav ul li ul li a:focus {
|
||||
background: #e7e9ef;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
ul.dropdown li {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: #565051;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 32px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
@-webkit-keyframes animatetop {
|
||||
from {
|
||||
top: -300px;
|
||||
opacity: 0
|
||||
}
|
||||
to {
|
||||
top: 0;
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animatetop {
|
||||
from {
|
||||
top: -300px;
|
||||
opacity: 0
|
||||
}
|
||||
to {
|
||||
top: 0;
|
||||
opacity: 1
|
||||
}
|
||||
}
|
||||
|
||||
.modal-login {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
padding-top: 100px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgb(0, 0, 0);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.modal-login-content {
|
||||
position: relative;
|
||||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
padding: 0;
|
||||
font-size: 12px;
|
||||
border: 1px solid #888;
|
||||
min-width: 280px;
|
||||
width: 25%;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
-webkit-animation-name: animatetop;
|
||||
-webkit-animation-duration: 0.4s;
|
||||
animation-name: animatetop;
|
||||
animation-duration: 0.4s
|
||||
}
|
||||
|
||||
.modal-login-header {
|
||||
padding: 2px 16px;
|
||||
background-color: #565051;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.modal-login-body {
|
||||
padding: 2px 16px;
|
||||
color: black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
display: none;
|
||||
position: absolute;
|
||||
margin-top: 3px;
|
||||
background: linear-gradient(to bottom right, white, #F8F8F8) !important;
|
||||
box-shadow: 0 4px 10px #565051;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.dropdown::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
top: -8px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 8px solid transparent;
|
||||
border-right: 8px solid transparent;
|
||||
border-bottom: 8px solid white;
|
||||
}
|
||||
|
||||
.dropdown:hover::after {
|
||||
border-bottom: 8px solid #F6F7F9;
|
||||
}
|
||||
|
||||
.close {
|
||||
color: white;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.close:hover,
|
||||
.close:focus {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#login {}
|
||||
|
||||
#menu {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#div_iframe {
|
||||
width:100%;
|
||||
padding-top: 4.3vw;
|
||||
height: calc(100% - 4vw);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
#iframe_a {
|
||||
display: block;
|
||||
border-width: 0px;
|
||||
height: 100%;
|
||||
width:100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#logo {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#nav_logo_image {
|
||||
height: 4vw;
|
||||
width: 4vw;
|
||||
}
|
||||
|
||||
#nav_system {}
|
||||
|
||||
#nav_containers {}
|
||||
|
||||
#nav_images {}
|
||||
|
||||
#nav_operations {}
|
||||
|
||||
#nav_functions {}
|
||||
|
||||
#nav_logs {}
|
||||
|
||||
#nav_docs {}
|
319
web/assets/unix_formatting.js
Normal file
@ -0,0 +1,319 @@
|
||||
/**@license
|
||||
* __ _____ ________ __
|
||||
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
|
||||
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
|
||||
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
|
||||
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
|
||||
* \/ /____/
|
||||
* http://terminal.jcubic.pl
|
||||
*
|
||||
* This is example of how to create custom formatter for jQuery Terminal
|
||||
*
|
||||
* Copyright (c) 2014-2016 Jakub Jankiewicz <http://jcubic.pl/me>
|
||||
* Released under the MIT license
|
||||
*
|
||||
*/
|
||||
/* global jQuery */
|
||||
(function($) {
|
||||
if (!$.terminal) {
|
||||
throw new Error('$.terminal is not defined');
|
||||
}
|
||||
// ---------------------------------------------------------------------
|
||||
// :: Replace overtyping (from man) formatting with terminal formatting
|
||||
// ---------------------------------------------------------------------
|
||||
$.terminal.overtyping = function overtyping(string) {
|
||||
return string.replace(/((?:_\x08.|.\x08_)+)/g, function(full) {
|
||||
var striped = full.replace(/_x08|\x08_|_\u0008|\u0008_/g, '');
|
||||
return '[[u;;]' + striped + ']';
|
||||
}).replace(/((?:.\x08.)+)/g, function(full) {
|
||||
return '[[b;#fff;]' + full.replace(/(.)(?:\x08|\u0008)\1/g,
|
||||
function(full, g) {
|
||||
return g;
|
||||
}) + ']';
|
||||
});
|
||||
};
|
||||
// ---------------------------------------------------------------------
|
||||
// :: Html colors taken from ANSI formatting in Linux Terminal
|
||||
// ---------------------------------------------------------------------
|
||||
$.terminal.ansi_colors = {
|
||||
normal: {
|
||||
black: '#000',
|
||||
red: '#A00',
|
||||
green: '#008400',
|
||||
yellow: '#A50',
|
||||
blue: '#00A',
|
||||
magenta: '#A0A',
|
||||
cyan: '#0AA',
|
||||
white: '#AAA'
|
||||
},
|
||||
faited: {
|
||||
black: '#000',
|
||||
red: '#640000',
|
||||
green: '#006100',
|
||||
yellow: '#737300',
|
||||
blue: '#000087',
|
||||
magenta: '#650065',
|
||||
cyan: '#008787',
|
||||
white: '#818181'
|
||||
},
|
||||
bold: {
|
||||
black: '#000',
|
||||
red: '#F55',
|
||||
green: '#44D544',
|
||||
yellow: '#FF5',
|
||||
blue: '#55F',
|
||||
magenta: '#F5F',
|
||||
cyan: '#5FF',
|
||||
white: '#FFF'
|
||||
},
|
||||
// XTerm 8-bit pallete
|
||||
palette: [
|
||||
'#000000', '#AA0000', '#00AA00', '#AA5500', '#0000AA', '#AA00AA',
|
||||
'#00AAAA', '#AAAAAA', '#555555', '#FF5555', '#55FF55', '#FFFF55',
|
||||
'#5555FF', '#FF55FF', '#55FFFF', '#FFFFFF', '#000000', '#00005F',
|
||||
'#000087', '#0000AF', '#0000D7', '#0000FF', '#005F00', '#005F5F',
|
||||
'#005F87', '#005FAF', '#005FD7', '#005FFF', '#008700', '#00875F',
|
||||
'#008787', '#0087AF', '#0087D7', '#0087FF', '#00AF00', '#00AF5F',
|
||||
'#00AF87', '#00AFAF', '#00AFD7', '#00AFFF', '#00D700', '#00D75F',
|
||||
'#00D787', '#00D7AF', '#00D7D7', '#00D7FF', '#00FF00', '#00FF5F',
|
||||
'#00FF87', '#00FFAF', '#00FFD7', '#00FFFF', '#5F0000', '#5F005F',
|
||||
'#5F0087', '#5F00AF', '#5F00D7', '#5F00FF', '#5F5F00', '#5F5F5F',
|
||||
'#5F5F87', '#5F5FAF', '#5F5FD7', '#5F5FFF', '#5F8700', '#5F875F',
|
||||
'#5F8787', '#5F87AF', '#5F87D7', '#5F87FF', '#5FAF00', '#5FAF5F',
|
||||
'#5FAF87', '#5FAFAF', '#5FAFD7', '#5FAFFF', '#5FD700', '#5FD75F',
|
||||
'#5FD787', '#5FD7AF', '#5FD7D7', '#5FD7FF', '#5FFF00', '#5FFF5F',
|
||||
'#5FFF87', '#5FFFAF', '#5FFFD7', '#5FFFFF', '#870000', '#87005F',
|
||||
'#870087', '#8700AF', '#8700D7', '#8700FF', '#875F00', '#875F5F',
|
||||
'#875F87', '#875FAF', '#875FD7', '#875FFF', '#878700', '#87875F',
|
||||
'#878787', '#8787AF', '#8787D7', '#8787FF', '#87AF00', '#87AF5F',
|
||||
'#87AF87', '#87AFAF', '#87AFD7', '#87AFFF', '#87D700', '#87D75F',
|
||||
'#87D787', '#87D7AF', '#87D7D7', '#87D7FF', '#87FF00', '#87FF5F',
|
||||
'#87FF87', '#87FFAF', '#87FFD7', '#87FFFF', '#AF0000', '#AF005F',
|
||||
'#AF0087', '#AF00AF', '#AF00D7', '#AF00FF', '#AF5F00', '#AF5F5F',
|
||||
'#AF5F87', '#AF5FAF', '#AF5FD7', '#AF5FFF', '#AF8700', '#AF875F',
|
||||
'#AF8787', '#AF87AF', '#AF87D7', '#AF87FF', '#AFAF00', '#AFAF5F',
|
||||
'#AFAF87', '#AFAFAF', '#AFAFD7', '#AFAFFF', '#AFD700', '#AFD75F',
|
||||
'#AFD787', '#AFD7AF', '#AFD7D7', '#AFD7FF', '#AFFF00', '#AFFF5F',
|
||||
'#AFFF87', '#AFFFAF', '#AFFFD7', '#AFFFFF', '#D70000', '#D7005F',
|
||||
'#D70087', '#D700AF', '#D700D7', '#D700FF', '#D75F00', '#D75F5F',
|
||||
'#D75F87', '#D75FAF', '#D75FD7', '#D75FFF', '#D78700', '#D7875F',
|
||||
'#D78787', '#D787AF', '#D787D7', '#D787FF', '#D7AF00', '#D7AF5F',
|
||||
'#D7AF87', '#D7AFAF', '#D7AFD7', '#D7AFFF', '#D7D700', '#D7D75F',
|
||||
'#D7D787', '#D7D7AF', '#D7D7D7', '#D7D7FF', '#D7FF00', '#D7FF5F',
|
||||
'#D7FF87', '#D7FFAF', '#D7FFD7', '#D7FFFF', '#FF0000', '#FF005F',
|
||||
'#FF0087', '#FF00AF', '#FF00D7', '#FF00FF', '#FF5F00', '#FF5F5F',
|
||||
'#FF5F87', '#FF5FAF', '#FF5FD7', '#FF5FFF', '#FF8700', '#FF875F',
|
||||
'#FF8787', '#FF87AF', '#FF87D7', '#FF87FF', '#FFAF00', '#FFAF5F',
|
||||
'#FFAF87', '#FFAFAF', '#FFAFD7', '#FFAFFF', '#FFD700', '#FFD75F',
|
||||
'#FFD787', '#FFD7AF', '#FFD7D7', '#FFD7FF', '#FFFF00', '#FFFF5F',
|
||||
'#FFFF87', '#FFFFAF', '#FFFFD7', '#FFFFFF', '#080808', '#121212',
|
||||
'#1C1C1C', '#262626', '#303030', '#3A3A3A', '#444444', '#4E4E4E',
|
||||
'#585858', '#626262', '#6C6C6C', '#767676', '#808080', '#8A8A8A',
|
||||
'#949494', '#9E9E9E', '#A8A8A8', '#B2B2B2', '#BCBCBC', '#C6C6C6',
|
||||
'#D0D0D0', '#DADADA', '#E4E4E4', '#EEEEEE'
|
||||
]
|
||||
};
|
||||
// ---------------------------------------------------------------------
|
||||
// :: Replace ANSI formatting with terminal formatting
|
||||
// ---------------------------------------------------------------------
|
||||
$.terminal.from_ansi = (function() {
|
||||
var color_list = {
|
||||
30: 'black',
|
||||
31: 'red',
|
||||
32: 'green',
|
||||
33: 'yellow',
|
||||
34: 'blue',
|
||||
35: 'magenta',
|
||||
36: 'cyan',
|
||||
37: 'white',
|
||||
|
||||
39: 'inherit' // default color
|
||||
};
|
||||
var background_list = {
|
||||
40: 'black',
|
||||
41: 'red',
|
||||
42: 'green',
|
||||
43: 'yellow',
|
||||
44: 'blue',
|
||||
45: 'magenta',
|
||||
46: 'cyan',
|
||||
47: 'white',
|
||||
|
||||
49: 'transparent' // default background
|
||||
};
|
||||
function format_ansi(code) {
|
||||
var controls = code.split(';');
|
||||
var num;
|
||||
var faited = false;
|
||||
var reverse = false;
|
||||
var bold = false;
|
||||
var styles = [];
|
||||
var output_color = '';
|
||||
var output_background = '';
|
||||
var _8bit_color = false;
|
||||
var _8bit_background = false;
|
||||
var process_8bit = false;
|
||||
var palette = $.terminal.ansi_colors.palette;
|
||||
function set_styles(num) {
|
||||
switch (num) {
|
||||
case 1:
|
||||
styles.push('b');
|
||||
bold = true;
|
||||
faited = false;
|
||||
break;
|
||||
case 4:
|
||||
styles.push('u');
|
||||
break;
|
||||
case 3:
|
||||
styles.push('i');
|
||||
break;
|
||||
case 5:
|
||||
process_8bit = true;
|
||||
break;
|
||||
case 38:
|
||||
_8bit_color = true;
|
||||
break;
|
||||
case 48:
|
||||
_8bit_background = true;
|
||||
break;
|
||||
case 2:
|
||||
faited = true;
|
||||
bold = false;
|
||||
break;
|
||||
case 7:
|
||||
reverse = true;
|
||||
break;
|
||||
default:
|
||||
if (controls.indexOf('5') === -1) {
|
||||
if (color_list[num]) {
|
||||
output_color = color_list[num];
|
||||
}
|
||||
if (background_list[num]) {
|
||||
output_background = background_list[num];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var i in controls) {
|
||||
if (controls.hasOwnProperty(i)) {
|
||||
num = parseInt(controls[i], 10);
|
||||
if (process_8bit && (_8bit_background || _8bit_color)) {
|
||||
if (_8bit_color && palette[num]) {
|
||||
output_color = palette[num];
|
||||
}
|
||||
if (_8bit_background && palette[num]) {
|
||||
output_background = palette[num];
|
||||
}
|
||||
} else {
|
||||
set_styles(num);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (reverse) {
|
||||
if (output_color || output_background) {
|
||||
var tmp = output_background;
|
||||
output_background = output_color;
|
||||
output_color = tmp;
|
||||
} else {
|
||||
output_color = 'black';
|
||||
output_background = 'white';
|
||||
}
|
||||
}
|
||||
var colors, color, background, backgrounds;
|
||||
if (bold) {
|
||||
colors = backgrounds = $.terminal.ansi_colors.bold;
|
||||
} else if (faited) {
|
||||
colors = backgrounds = $.terminal.ansi_colors.faited;
|
||||
} else {
|
||||
colors = backgrounds = $.terminal.ansi_colors.normal;
|
||||
}
|
||||
if (_8bit_color) {
|
||||
color = output_color;
|
||||
} else if (output_color === 'inherit') {
|
||||
color = output_color;
|
||||
} else {
|
||||
color = colors[output_color];
|
||||
}
|
||||
if (_8bit_background) {
|
||||
background = output_background;
|
||||
} else if (output_background === 'transparent') {
|
||||
background = output_background;
|
||||
} else {
|
||||
background = backgrounds[output_background];
|
||||
}
|
||||
return [styles.join(''), color, background];
|
||||
}
|
||||
return function from_ansi(input) {
|
||||
//merge multiple codes
|
||||
/*input = input.replace(/((?:\x1B\[[0-9;]*[A-Za-z])*)/g, function(group) {
|
||||
return group.replace(/m\x1B\[/g, ';');
|
||||
});*/
|
||||
var splitted = input.split(/(\x1B\[[0-9;]*[A-Za-z])/g);
|
||||
if (splitted.length === 1) {
|
||||
return input;
|
||||
}
|
||||
var output = [];
|
||||
//skip closing at the begining
|
||||
if (splitted.length > 3) {
|
||||
var str = splitted.slice(0, 3).join('');
|
||||
if (str.match(/^\[0*m$/)) {
|
||||
splitted = splitted.slice(3);
|
||||
}
|
||||
}
|
||||
var prev_color, prev_background, code, match;
|
||||
var inside = false;
|
||||
for (var i = 0; i < splitted.length; ++i) {
|
||||
match = splitted[i].match(/^\x1B\[([0-9;]*)([A-Za-z])$/);
|
||||
if (match) {
|
||||
switch (match[2]) {
|
||||
case 'm':
|
||||
if (+match[1] !== 0) {
|
||||
code = format_ansi(match[1]);
|
||||
}
|
||||
if (inside) {
|
||||
output.push(']');
|
||||
if (+match[1] === 0) {
|
||||
//just closing
|
||||
inside = false;
|
||||
prev_color = prev_background = '';
|
||||
} else {
|
||||
// someone forget to close - move to next
|
||||
code[1] = code[1] || prev_color;
|
||||
code[2] = code[2] || prev_background;
|
||||
output.push('[[' + code.join(';') + ']');
|
||||
// store colors to next use
|
||||
if (code[1]) {
|
||||
prev_color = code[1];
|
||||
}
|
||||
if (code[2]) {
|
||||
prev_background = code[2];
|
||||
}
|
||||
}
|
||||
} else if (+match[1] !== 0) {
|
||||
inside = true;
|
||||
code[1] = code[1] || prev_color;
|
||||
code[2] = code[2] || prev_background;
|
||||
output.push('[[' + code.join(';') + ']');
|
||||
// store colors to next use
|
||||
if (code[1]) {
|
||||
prev_color = code[1];
|
||||
}
|
||||
if (code[2]) {
|
||||
prev_background = code[2];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
output.push(splitted[i]);
|
||||
}
|
||||
}
|
||||
if (inside) {
|
||||
output.push(']');
|
||||
}
|
||||
return output.join(''); //.replace(/\[\[[^\]]+\]\]/g, '');
|
||||
};
|
||||
})();
|
||||
$.terminal.defaults.formatters.unshift($.terminal.overtyping);
|
||||
$.terminal.defaults.formatters.unshift($.terminal.from_ansi);
|
||||
})(jQuery);
|
72
web/blank.html
Normal file
@ -0,0 +1,72 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<link rel="stylesheet" href="/assets/circle.css">
|
||||
<script>
|
||||
function getContainerStatus() {
|
||||
setTimeout(function () {
|
||||
if (parent.token) {
|
||||
$.get("/nodes?token=" + parent.token, function (data) {
|
||||
var check_data = data;
|
||||
var total = check_data.total_containers;
|
||||
var running = 0;
|
||||
for (var i in check_data.data) {
|
||||
running = running + check_data.data[i].total_running_containers;
|
||||
}
|
||||
|
||||
var calc = Math.floor((running / total * 100));
|
||||
var percent = 0;
|
||||
(!calc == 100) ? percent = percent = Math.ceil((calc + 1) / 100) * 10: percent = calc;
|
||||
|
||||
document.getElementById("running_containers").textContent = percent + "%";
|
||||
document.getElementById("running-class").className = "c100 p" + percent + " small";
|
||||
getContainerStatus();
|
||||
});
|
||||
}
|
||||
}, 5000)
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="landing_page">
|
||||
<img id="logo" src="/logo.png">
|
||||
<br>
|
||||
<b>Welcome to PiCluster!</b>
|
||||
</div>
|
||||
<div id="source_issues_circle">
|
||||
<a href='https://git.rage.lol/verita84/picluster/' id='source' target="_blank">
|
||||
<img src="/assets/images/GitHub-Mark-120px-plus.png">
|
||||
<br>
|
||||
Git
|
||||
</a>
|
||||
<a href='https://git.rage.lol/verita84/picluster/issues' id='issues' target="_blank">
|
||||
<img src="/assets/images/Debug-Bug-icon.png">
|
||||
<br>
|
||||
Report Issue
|
||||
</a>
|
||||
<a href="containers-layout.html" id="status_circle">
|
||||
<div class="page">
|
||||
<div class="clearfix">
|
||||
<div id="running-class" class="c100 p0 small">
|
||||
<span id='running_containers'>0%</span>
|
||||
<div class="slice">
|
||||
<div class="bar"></div>
|
||||
<div class="fill"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Running
|
||||
</a>
|
||||
</div>
|
||||
<script>
|
||||
getContainerStatus();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
79
web/config-edit.html
Normal file
@ -0,0 +1,79 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<script src="/assets/distLogo.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<script>
|
||||
function exec() {
|
||||
var payload = $("#payload").val();
|
||||
|
||||
try {
|
||||
var payload_json = JSON.parse(payload);
|
||||
} catch (err) {}
|
||||
|
||||
$.post("/sendconfig", {
|
||||
token: parent.token,
|
||||
payload: payload
|
||||
}, function (data) {
|
||||
var output = data.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
if (output.indexOf('Error') === -1) {
|
||||
parent.token = payload_json.token;
|
||||
parent.syslog = payload_json.syslog;
|
||||
}
|
||||
alert(output);
|
||||
});
|
||||
};
|
||||
|
||||
function getconfig() {
|
||||
$.get("/getconfig?token=" + parent.token, function (data) {
|
||||
$("#payload").val(JSON.stringify(JSON.parse(data), null, 2));
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal_container" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>PiCluster Configuraton Editor</h2>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div id="config_editor" title="PiCluster Configuration Editor">
|
||||
<textarea id="payload" name="payload" value="" enctype="application/json"></textarea>
|
||||
<br><br>
|
||||
<div id="submit_button_div">
|
||||
<button id="submit_button">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var modal = document.getElementById('modal_container');
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
var submit_button = document.getElementById("submit_button");
|
||||
|
||||
span.onclick = function () {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
|
||||
submit_button.onclick = function () {
|
||||
exec();
|
||||
}
|
||||
|
||||
modal.style.display = "block";
|
||||
|
||||
getconfig();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
49
web/config-reload.html
Normal file
@ -0,0 +1,49 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<script src="/assets/distLogo.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<script>
|
||||
function exec() {
|
||||
$.get("/reloadconfig?token=" + parent.token, function (data) {
|
||||
var output = data.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
var div = document.getElementById('config-reload-modal-body');
|
||||
div.innerHTML = data;
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="output" class="modal">
|
||||
<div class="modal-content modal-small">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Reloading Configuration File</h2>
|
||||
</div>
|
||||
|
||||
<div id="config-reload-modal-body" class="modal-body">
|
||||
<div id="submit_button_div"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var output_modal = document.getElementById('output');
|
||||
var output_span = document.getElementsByClassName("close")[0];
|
||||
|
||||
output_span.onclick = function () {
|
||||
output_modal.style.display = "none";
|
||||
}
|
||||
|
||||
output_modal.style.display = "block";
|
||||
|
||||
exec();
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
186
web/containers-layout.html
Normal file
@ -0,0 +1,186 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<script src="/assets/distLogo.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<link rel="stylesheet" href="/assets/circle.css">
|
||||
<script>
|
||||
function link_function(container) {
|
||||
parent.manage_container = container;
|
||||
};
|
||||
|
||||
function exec() {
|
||||
|
||||
|
||||
var div = document.getElementById('container-layout-modal-body');
|
||||
|
||||
div.innerHTML = (div) ? div.innerHTML +
|
||||
'<div class="container_searching"><img heigth="200" width="200" src="/assets/images/searching.jpg"><br><font size=+3><label>Searching for containers</label></font></div>' :
|
||||
div;
|
||||
|
||||
$.get("/nodes?token=" + parent.token, function(data) {
|
||||
var check_data = data;
|
||||
(div) ? div.innerHTML = '': div;
|
||||
var offline_containers = [];
|
||||
var running_containers = [];
|
||||
var configured_containers = check_data.container_list;
|
||||
|
||||
for (var i in check_data.data) {
|
||||
if (div) {
|
||||
var dist = check_data.data[i].os_type.toLowerCase() || '';
|
||||
var container_layout = check_data.data[i].running_containers;
|
||||
running_containers.push(container_layout);
|
||||
//alert(running_containers);
|
||||
var container_uptime = check_data.data[i].container_uptime;
|
||||
var get_container_cpu = check_data.data[i].container_cpu_stats;
|
||||
var get_container_mem = check_data.data[i].container_mem_stats;
|
||||
var cpu_cores = check_data.data[i].cpu_cores;
|
||||
var total_containers = check_data.data[i].total_containers;
|
||||
|
||||
div.innerHTML += '<div class="container_card"><div class="container_card_logo"><b>' + distLogo(dist) +
|
||||
check_data.data[i].hostname + '</b></div><div class="container_card_list"><ul id ="ul_' + i + '">';
|
||||
var container_layout_ul = document.getElementById('ul_' + i);
|
||||
|
||||
for (var j in container_layout) {
|
||||
if (container_layout[j]) {
|
||||
|
||||
var node_card = document.createElement("div")
|
||||
node_card.className = "node_card";
|
||||
|
||||
var div_cpu = document.createElement('div');
|
||||
div_cpu.className = "container_status_div";
|
||||
|
||||
var div_cpu_clearfix = document.createElement('div');
|
||||
div_cpu_clearfix.className = 'clearfix';
|
||||
|
||||
var div_cpu_running = document.createElement('div');
|
||||
|
||||
div_cpu_running.className = 'c100 p' + Math.round(get_container_cpu[j] / cpu_cores) + ' small';
|
||||
div_cpu_running.innerHTML = '<span id="' + i + '">' + Math.round(get_container_cpu[j] / cpu_cores) +
|
||||
'%</span>';
|
||||
|
||||
var div_cpu_slice = document.createElement('div');
|
||||
div_cpu_slice.className = "slice";
|
||||
|
||||
var div_cpu_bar = document.createElement('div');
|
||||
div_cpu_bar.className = "bar";
|
||||
|
||||
var div_cpu_fill = document.createElement('div');
|
||||
div_cpu_fill.className = "fill";
|
||||
|
||||
var div_memory = document.createElement('div_memory');
|
||||
div_memory.className = "container_status_div";
|
||||
|
||||
var div_memory_clearfix = document.createElement('div');
|
||||
div_memory_clearfix.className = 'clearfix';
|
||||
|
||||
var div_memory_running_class = document.createElement('div');
|
||||
|
||||
div_memory_running_class.className = 'c100 p' + Math.round(get_container_mem[j]) + ' small';
|
||||
div_memory_running_class.innerHTML = '<span id="' + i + '">' + Math.round(get_container_mem[j]) + '%</span>';
|
||||
|
||||
var div_memory_slice = document.createElement('div');
|
||||
div_memory_slice.className = "slice";
|
||||
|
||||
var div_memory_bar = document.createElement('div');
|
||||
div_memory_bar.className = "bar";
|
||||
|
||||
var div_memory_fill = document.createElement('div');
|
||||
div_memory_fill.className = "fill";
|
||||
|
||||
div_cpu.appendChild(div_cpu_clearfix);
|
||||
div_cpu_clearfix.appendChild(div_cpu_running);
|
||||
div_cpu_running.appendChild(div_cpu_slice);
|
||||
div_cpu_slice.appendChild(div_cpu_bar);
|
||||
div_cpu_bar.appendChild(div_cpu_fill);
|
||||
div_cpu.innerHTML += '<font class="node_status_text"><b>CPU</b>';
|
||||
|
||||
div_memory.appendChild(div_memory_clearfix);
|
||||
div_memory_clearfix.appendChild(div_memory_running_class);
|
||||
div_memory_running_class.appendChild(div_memory_slice);
|
||||
div_memory_slice.appendChild(div_memory_bar);
|
||||
div_memory_bar.appendChild(div_memory_fill);
|
||||
div_memory.innerHTML += '<font class="node_status_text"><b>Memory</b>';
|
||||
|
||||
node_card.appendChild(div_cpu);
|
||||
node_card.appendChild(div_memory);
|
||||
|
||||
container_layout_ul.innerHTML += '<br><br><li><a href="/containers-manage.html" onclick="link_function(\'' +
|
||||
container_layout[j] + '\')">' + container_layout[j] + ' - ' + container_uptime[j] + '</a>';
|
||||
container_layout_ul.append(node_card);
|
||||
}
|
||||
}
|
||||
div.innerHTML += '</ul></div></div><hr>'
|
||||
}
|
||||
|
||||
addFontLinux();
|
||||
}
|
||||
|
||||
for (var k = 0; k != configured_containers.length; k++) { //Configured Containers
|
||||
var proceed = 1;
|
||||
for (var l = 0; l != running_containers.length; l++) { //Running Containers
|
||||
if (running_containers[l].indexOf(configured_containers[k]) > -1) {
|
||||
proceed = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (proceed === 1) {
|
||||
offline_containers.push(configured_containers[k]);
|
||||
}
|
||||
}
|
||||
|
||||
if (offline_containers.length > 0) {
|
||||
var header =
|
||||
'<hr><img src="/assets/images/alert.png" style="width:75px;height:75px;"><br><b>Stopped/Missing Containers:</b>';
|
||||
var divbackup = div.innerHTML;
|
||||
var data = '';
|
||||
for (var z = 0; z != offline_containers.length; z++) {
|
||||
data += '<br><br><a href="/containers-manage.html" onclick="link_function(\'' + offline_containers[z] + '\')">' +
|
||||
offline_containers[z] + '</a>';
|
||||
}
|
||||
div.innerHTML = header + data + '<hr>' + div.innerHTML;
|
||||
divbackup;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="output" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>PiCluster Containers</h2>
|
||||
</div>
|
||||
|
||||
<div id="container-layout-modal-body" class="modal-body"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var output_modal = document.getElementById('output');
|
||||
var output_span = document.getElementsByClassName("close")[0];
|
||||
|
||||
output_span.onclick = function() {
|
||||
output_modal.style.display = "none";
|
||||
}
|
||||
|
||||
output_modal.style.display = "block";
|
||||
exec();
|
||||
</script>
|
||||
<script>
|
||||
window_reloader();
|
||||
|
||||
function window_reloader() {
|
||||
setTimeout(() => {
|
||||
exec();
|
||||
window_reloader();
|
||||
}, 15000);
|
||||
}
|
||||
</script>
|
||||
|
||||
</html>
|
474
web/containers-manage.html
Normal file
@ -0,0 +1,474 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<script src="/assets/distLogo.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<script>
|
||||
// Populate container_heartbeat_fieldset selection and node_list_add drop down
|
||||
$(function() {
|
||||
var option = '';
|
||||
var checkbox = '';
|
||||
var lb_checkbox = '';
|
||||
$.get("/nodes?token=" + parent.token, function(data) {
|
||||
for (var i in data.nodes) {
|
||||
option += '<option value="' + data.nodes[i] + '">' + data.nodes[i] + '</option>';
|
||||
checkbox += '<input type="checkbox" name="container_heartbeat_fieldset" class="modal_input" value="' + data.nodes[i] + '" /><label id="windowfont" for="container_heartbeat_fieldset">' + data.nodes[i] + '</label><br>';
|
||||
lb_checkbox += '<input type="checkbox" name="container_lb_fieldset" class="modal_input" value="' + data.nodes[i] + '" /><label id="windowfont" for="container_lb_fieldset">' + data.nodes[i] + '</label><br>';
|
||||
}
|
||||
option += '<option value="' + '*' + '">' + '*' + '</option>';
|
||||
$('#node_list_add').append(option);
|
||||
$('#node_failover_constraint').append(checkbox);
|
||||
$('#loadbalancer_hosts').append(lb_checkbox);
|
||||
});
|
||||
});
|
||||
|
||||
// Populate container_list dropdown
|
||||
$(function() {
|
||||
var option = '';
|
||||
if (parent.manage_container) {
|
||||
option += '<option value="' + parent.manage_container + '">' + parent.manage_container + '</option>';
|
||||
$('#container_list').append(option);
|
||||
// document.getElementById("radio_container_modify").click();
|
||||
// parent.manage_container = '';
|
||||
} else {
|
||||
$.get("/nodes?token=" + parent.token, function(data) {
|
||||
for (var i in data.container_list) {
|
||||
option += '<option value="' + data.container_list[i] + '">' + data.container_list[i] + '</option>';
|
||||
}
|
||||
option += '<option value="' + '*' + '">' + '*' + '</option>';
|
||||
$('#container_list').append(option);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Populate node_list_modify drop down
|
||||
$(function() {
|
||||
var option = '';
|
||||
$.get("/nodes?token=" + parent.token, function(data) {
|
||||
for (var i in data.nodes) {
|
||||
option += '<option value="' + data.nodes[i] + '">' + data.nodes[i] + '</option>';
|
||||
}
|
||||
option += '<option value="' + '*' + '">' + '*' + '</option>';
|
||||
$('#node_list_modify').append(option);
|
||||
});
|
||||
});
|
||||
|
||||
function exec() {
|
||||
var node_list_add = document.getElementById("node_list_add");
|
||||
var container_port = $("#container_port_args").val();
|
||||
var service_port = $("#service_port_args").val();
|
||||
var node_list_modify = document.getElementById("node_list_modify");
|
||||
var container_list = document.getElementById("container_list");
|
||||
var node_add = node_list_add.options[node_list_add.selectedIndex].value;
|
||||
var node_modify = node_list_modify.options[node_list_modify.selectedIndex].value;
|
||||
var container_add = $("#container_name").val();
|
||||
var container_modify = container_list.options[container_list.selectedIndex].value;
|
||||
var container_add_args = $("#container_args").val() || $("#modify_container_arguments").val();
|
||||
var heartbeat_add_args = $("#heartbeat_args").val();
|
||||
var container_heartbeat_fieldset = document.getElementsByName('container_heartbeat_fieldset');
|
||||
var container_lb_fieldset = document.getElementsByName('container_lb_fieldset');
|
||||
var radio_container_add = $('input[id=radio_container_add]:checked').val();
|
||||
var radio_container_modify = $('input[id=radio_container_modify]:checked').val();
|
||||
var radio_container_arg_modify = $('input[id=radio_modify_args]:checked').val();
|
||||
var radio_commit = $('input[id=radio_commit]:checked').val();
|
||||
var radio_start = $('input[id=radio_start]:checked').val();
|
||||
var radio_loadbalancer = $('input[id=radio_modify_loadbalancer]:checked').val();
|
||||
var radio_stop = $('input[id=radio_stop]:checked').val();
|
||||
var radio_restart = $('input[id=radio_restart]:checked').val();
|
||||
var radio_delete = $('input[id=radio_delete]:checked').val();
|
||||
var radio_create = $('input[id=radio_create]:checked').val();
|
||||
var radio_modify_constraints = $('input[id=radio_modify_constraints]:checked').val();
|
||||
var radio_container_log = $('input[id=radio_container_log]:checked').val();
|
||||
var radio_change_host = $('input[id=radio_change_host]:checked').val();
|
||||
var radio_remove_container_config = $('input[id=radio_remove_container_config]:checked').val();
|
||||
var command;
|
||||
var path;
|
||||
var failover_constraints = 'none';
|
||||
var lb_hosts = 'none';
|
||||
var operation;
|
||||
|
||||
if (radio_container_modify) {
|
||||
if (radio_container_modify.indexOf('on') > -1 && heartbeat_add_args.length === 0) {
|
||||
heartbeat_add_args = 'delete'
|
||||
}
|
||||
}
|
||||
container_heartbeat_fieldset.forEach(function(node, i) {
|
||||
if (container_heartbeat_fieldset[i].checked) {
|
||||
failover_constraints += ',' + node.value;
|
||||
}
|
||||
});
|
||||
|
||||
container_lb_fieldset.forEach(function(node, i) {
|
||||
if (container_lb_fieldset[i].checked) {
|
||||
lb_hosts += ',' + node.value;
|
||||
}
|
||||
});
|
||||
|
||||
if (failover_constraints.indexOf('none,') > -1) {
|
||||
failover_constraints = failover_constraints.replace('none,', '');
|
||||
}
|
||||
|
||||
if (lb_hosts.indexOf('none,') > -1) {
|
||||
lb_hosts = lb_hosts.replace('none,', '');
|
||||
}
|
||||
|
||||
if (radio_start) {
|
||||
operation = 'start';
|
||||
}
|
||||
if (radio_stop) {
|
||||
operation = 'stop';
|
||||
}
|
||||
if (radio_restart) {
|
||||
operation = 'restart';
|
||||
}
|
||||
if (radio_delete) {
|
||||
operation = 'rm';
|
||||
}
|
||||
if (radio_commit) {
|
||||
operation = 'commit';
|
||||
}
|
||||
if (radio_container_log) {
|
||||
operation = 'logs';
|
||||
}
|
||||
if (radio_create) {
|
||||
operation = 'create';
|
||||
}
|
||||
if (radio_loadbalancer) {
|
||||
operation = 'loadbalancer';
|
||||
}
|
||||
|
||||
path = radio_container_add && radio_container_add.indexOf('on') > -1 ? '/addcontainer' :
|
||||
radio_start && radio_start.indexOf('on') > -1 ? '/manage' :
|
||||
radio_stop && radio_stop.indexOf('on') > -1 ? '/manage' :
|
||||
radio_restart && radio_restart.indexOf('on') > -1 ? '/manage' :
|
||||
radio_container_arg_modify && radio_container_arg_modify.indexOf('on') > -1 ? '/update-container' :
|
||||
radio_modify_constraints && radio_modify_constraints.indexOf('on') > -1 ? '/update-container' :
|
||||
radio_commit && radio_commit.indexOf('on') > -1 ? '/manage' :
|
||||
radio_delete && radio_delete.indexOf('on') > -1 ? '/manage' :
|
||||
radio_loadbalancer && radio_loadbalancer.indexOf('on') > -1 ? '/lb' :
|
||||
radio_create && radio_create.indexOf('on') > -1 ? '/manage' :
|
||||
radio_container_log && radio_container_log.indexOf('on') > -1 ? '/manage' :
|
||||
radio_change_host && radio_change_host.indexOf('on') > -1 ? '/changehost' :
|
||||
radio_remove_container_config && radio_remove_container_config.indexOf('on') > -1 ? '/removecontainerconfig' :
|
||||
''
|
||||
|
||||
if (path) {
|
||||
if ((radio_change_host) && (container_modify.indexOf('*') > -1) || (radio_remove_container_config) && (container_modify.indexOf('*') > -1)) {
|
||||
alert('\nError: You cannot control all of these containers at once for chosen action.');
|
||||
output_modal.style.display = "none";
|
||||
modal.style.display = "block";
|
||||
} else if (radio_container_add) {
|
||||
$.post(path, {
|
||||
token: parent.token,
|
||||
container: container_add,
|
||||
host: node_add,
|
||||
container_args: container_add_args,
|
||||
heartbeat_args: heartbeat_add_args,
|
||||
failover_constraints: container_add + ',' + failover_constraints
|
||||
}, function(data) {
|
||||
var div = document.getElementById('containers-manage-modal-body');
|
||||
div.innerHTML = '<br>Sent request to server.<br><br>' + data;
|
||||
});
|
||||
} else if (radio_commit || radio_start || radio_stop || radio_restart || radio_delete || radio_create || radio_container_log || radio_remove_container_config || radio_change_host || radio_container_arg_modify || radio_modify_constraints || radio_loadbalancer) {
|
||||
$.post(path, {
|
||||
token: parent.token,
|
||||
operation,
|
||||
command: command,
|
||||
container_args: container_add_args,
|
||||
container: container_modify,
|
||||
service_port: service_port,
|
||||
container_port: container_port,
|
||||
lb_hosts: container_modify + ',' + lb_hosts,
|
||||
heartbeat_args: heartbeat_add_args,
|
||||
failover_constraints: container_modify + ',' + failover_constraints,
|
||||
newhost: node_modify
|
||||
}, function(data) {
|
||||
var div = document.getElementById('containers-manage-modal-body');
|
||||
div.innerHTML = '<br>Sent request to server.<br><br>' + data.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
});
|
||||
} else {
|
||||
alert('Error, you did not select an operation.')
|
||||
output_modal.style.display = "none";
|
||||
modal.style.display = "block";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_container_info() {
|
||||
$.get("/getconfig?token=" + parent.token, function(data) {
|
||||
var check_data = JSON.parse(data);
|
||||
Object.keys(check_data.hb).forEach((get_node, i) => {
|
||||
Object.keys(check_data.hb[i]).forEach(key => {
|
||||
if (key.indexOf(document.getElementById("container_list").value) > -1) {
|
||||
$('#heartbeat_args').val(check_data.hb[i][document.getElementById("container_list").options[document.getElementById("container_list").selectedIndex].value]);
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Object.keys(check_data.layout).forEach((get_node, i) => {
|
||||
Object.keys(check_data.layout[i]).forEach(key => {
|
||||
if (key.indexOf(document.getElementById("container_list").value) > -1) {
|
||||
$('#modify_container_arguments').val(check_data.layout[i][document.getElementById("container_list").options[document.getElementById("container_list").selectedIndex].value]);
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
var container_heartbeat_fieldset = document.getElementsByName('container_heartbeat_fieldset');
|
||||
Object.keys(check_data.container_host_constraints).forEach((get_node, i) => {
|
||||
Object.keys(check_data.container_host_constraints[i]).forEach(key => {
|
||||
const analyze = check_data.container_host_constraints[i][key].split(',');
|
||||
if (document.getElementById("container_list").value.indexOf(analyze[0]) > -1) {
|
||||
|
||||
container_heartbeat_fieldset.forEach(function(node, z) {
|
||||
var current = container_heartbeat_fieldset[z].value;
|
||||
|
||||
if (analyze.indexOf(current) > -1) {
|
||||
container_heartbeat_fieldset[z].click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var container_lb_fieldset = document.getElementsByName('container_lb_fieldset');
|
||||
Object.keys(check_data.loadbalancer).forEach((get_node, i) => {
|
||||
Object.keys(check_data.loadbalancer[i]).forEach(key => {
|
||||
const analyze = check_data.loadbalancer[i][key].split(',');
|
||||
if (document.getElementById("container_list").value.indexOf(analyze[0]) > -1) {
|
||||
|
||||
container_lb_fieldset.forEach(function(node, z) {
|
||||
var current = container_lb_fieldset[z].value;
|
||||
|
||||
if (analyze.indexOf(current) > -1) {
|
||||
container_lb_fieldset[z].click();
|
||||
var container_port = document.getElementById("container_port_args");
|
||||
var service_port = document.getElementById("service_port_args");
|
||||
container_port.value = analyze[analyze.length - 2];
|
||||
service_port.value = analyze[analyze.length - 1];
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
$(document).ready(function() {
|
||||
$("input[id$='radio_container_add']").click(function() {
|
||||
$("#container_list_options_fieldset").show();
|
||||
$(this).is(":checked") ? $("#container_list_add").show() : '';
|
||||
$(this).is(":checked") ? $("#container_list_add_options").show() : '';
|
||||
$(this).is(":checked") ? $("#container_list_modify").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_modify_options").hide() : '';
|
||||
})
|
||||
|
||||
$("input[id$='radio_modify_constraints']").click(function() {
|
||||
$(this).is(":checked") ? $("#loadbalancer_hosts").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_modify_options").hide() : '';
|
||||
$(this).is(":checked") ? $("#loadbalancer_hosts_label").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_add_options").show() : '';
|
||||
get_container_info();
|
||||
});
|
||||
|
||||
$("input[id$='radio_modify_loadbalancer']").click(function() {
|
||||
$(this).is(":checked") ? $("#container_list_modify_options").hide() : '';
|
||||
$(this).is(":checked") ? $('#loadbalancer_hosts').show() : '';
|
||||
$(this).is(":checked") ? $('#loadbalancer_hosts_label').show() : '';
|
||||
$(this).is(":checked") ? $("#container_port").show() : '';
|
||||
$(this).is(":checked") ? $("#container_port_args").show() : '';
|
||||
$(this).is(":checked") ? $("#service_port").show() : '';
|
||||
$(this).is(":checked") ? $("#service_port_args").show() : '';
|
||||
$(this).is(":checked") ? $("#loadbalancer_options").show() : '';
|
||||
get_container_info();
|
||||
});
|
||||
|
||||
$("input[id$='radio_modify_args']").click(function() {
|
||||
get_container_info();
|
||||
});
|
||||
|
||||
$("input[id$='radio_container_modify']").click(function() {
|
||||
$("#container_list_options_fieldset").show();
|
||||
$(this).is(":checked") ? $("loadbalancer_hosts").hide() : '';
|
||||
$(this).is(":checked") ? $("#service_port_args").hide() : '';
|
||||
$(this).is(":checked") ? $("#service_port").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_add").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_add_options").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_list_modify").show() : '';
|
||||
$(this).is(":checked") ? $("#container_list_modify_options").show() : '';
|
||||
$(this).is(":checked") ? $("#loadbalancer_hosts_label").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_port_label").hide() : '';
|
||||
$(this).is(":checked") ? $("#loadbalancer_hosts").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_port_args").hide() : '';
|
||||
$(this).is(":checked") ? $("#container_port_label").hide() : '';
|
||||
})
|
||||
|
||||
$("#container_list_options_fieldset").hide();
|
||||
$("#container_list_add").hide();
|
||||
$("#container_list_add_options").hide();
|
||||
$("#container_list_modify").hide();
|
||||
$("#container_list_modify_options").hide();
|
||||
$("#container_port").hide();
|
||||
$("#container_port_args").hide();
|
||||
$("#service_port").hide();
|
||||
$("#service_port_args").hide();
|
||||
$('#loadbalancer_hosts').hide();
|
||||
$('#container_lb_fieldset').hide();
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
var option = '';
|
||||
if (parent.manage_container) {
|
||||
document.getElementById("radio_container_modify").click();
|
||||
parent.manage_container = '';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal_container" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Manage Containers</h2>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<fieldset id="container_list_fieldset">
|
||||
<legend><b>Container</b></legend>
|
||||
<div id="container_list_action_selector">
|
||||
<input type="radio" name="container_radio" id="radio_container_add">
|
||||
<label class="windowfont">Add</label>
|
||||
<hr>
|
||||
<input type="radio" name="container_radio" id="radio_container_modify">
|
||||
<label class="windowfont">Modify</label>
|
||||
</div>
|
||||
|
||||
<div id="container_list_add">
|
||||
<label class="windowfont">Name</label>
|
||||
<input type="text" size="15" id="container_name" class="modal_input" name="container_name" value=""></font>
|
||||
<br>
|
||||
<label class="windowfont">Args</label>
|
||||
<input type="text" size="25" id="container_args" class="modal_input" name="container_args" value=""></font>
|
||||
<br>
|
||||
<label class="windowfont">Deploy on</label>
|
||||
<select name="node_list_add" id="node_list_add"></select>
|
||||
</div>
|
||||
|
||||
<div id="container_list_modify">
|
||||
<label class="windowfont">Container</label>
|
||||
<select name="container_list" id="container_list"></select>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset name="options" id="container_list_options_fieldset">
|
||||
<legend><b>Options</b></legend>
|
||||
|
||||
<div id="container_list_add_options">
|
||||
<label id="heartbeat-port" class="windowfont">Heartbeat Port</label>
|
||||
<input type="text" size="5" id="heartbeat_args" class="modal_input" name="heartbeat_args" value="">
|
||||
<br>
|
||||
<div id="node_failover_constraint">
|
||||
<label id="failover_constraints_label" class="windowfont">Node Failover Constraints <i>(Optional)</i></label><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="loadbalancer_options">
|
||||
<div id="loadbalancer_hosts">
|
||||
<label id="loadbalancer_hosts_label" class="windowfont">Select Nodes for the Load Balancer</label><br>
|
||||
<br>
|
||||
</div>
|
||||
<br>
|
||||
<label id="service_port" class="windowfont">Service Port</label>
|
||||
<input type="text" size="5" id="service_port_args" class="modal_input" name="service_port_args" value="">
|
||||
<label id="container_port" class="windowfont">Container Port</label>
|
||||
<input type="text" size="5" id="container_port_args" class="modal_input" name="container_port_args" value="">
|
||||
</div>
|
||||
<div id="container_list_modify_options">
|
||||
<input type="radio" name="options_radio" id="radio_start">
|
||||
<label for="radio_start">Start</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_stop">
|
||||
<label for="radio_stop">Stop</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_restart">
|
||||
<label for="radio_restart">Restart</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_delete">
|
||||
<label for="radio_delete">Delete</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_create">
|
||||
<label for="radio_create">Create and Run</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_container_log">
|
||||
<label for="radio_container_log">View Logs</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_remove_container_config">
|
||||
<label for="radio_remove_container_config">Remove Config</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_commit">
|
||||
<label for="radio_commit">Commit Image</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_change_host">
|
||||
<label for="radio_change_host">Change Node to</label>
|
||||
<select name="node_list_modify" id="node_list_modify"></select>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_modify_constraints">
|
||||
<label for="radio_modify_constraints">Change/Set Heartbeat/Failover Constraints</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_modify_loadbalancer">
|
||||
<label for="radio_modify_loadbalancer">Configure Load Balancer</label>
|
||||
<br>
|
||||
<input type="radio" name="options_radio" id="radio_modify_args">
|
||||
<label for="radio_modify_args">Change Container Arguments</label>
|
||||
<input type="text" style="height:20px" size="50" id="modify_container_arguments" class="modal_input" name="modify_container_arguments" value=""></font>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="submit_button_div">
|
||||
<button id="submit_button">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="output" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Command Output</h2>
|
||||
</div>
|
||||
|
||||
<div id="containers-manage-modal-body" class="modal-body">
|
||||
Please wait.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var modal = document.getElementById('modal_container');
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
var output_modal = document.getElementById('output');
|
||||
var output_span = document.getElementsByClassName("close")[1];
|
||||
var submit_button = document.getElementById("submit_button");
|
||||
|
||||
span.onclick = function() {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
|
||||
output_span.onclick = function() {
|
||||
output_modal.style.display = "none";
|
||||
}
|
||||
|
||||
submit_button.onclick = function() {
|
||||
modal.style.display = "none";
|
||||
output_modal.style.display = "block";
|
||||
exec();
|
||||
}
|
||||
|
||||
modal.style.display = "block";
|
||||
</script>
|
||||
|
||||
</html>
|
85
web/docs.html
Normal file
@ -0,0 +1,85 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<script>
|
||||
function display_doc_markdown() {
|
||||
var div = document.getElementById('docs-modal-body');
|
||||
var docfile = document.doc_id;
|
||||
|
||||
|
||||
(div && docfile) ? div.innerHTML(docfile): div;
|
||||
return docfile;
|
||||
}
|
||||
|
||||
console.log(display_doc_markdown());
|
||||
|
||||
function exec_docs_html() {
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal_container" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>PiCluster Documentation</h2>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<p align=left>
|
||||
<script>
|
||||
display_doc_markdown()
|
||||
|
||||
</script>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="output" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Command Output</h2>
|
||||
</div>
|
||||
|
||||
<div id="docs-modal-body" class="modal-body">
|
||||
Please wait.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var modal = document.getElementById('modal_container');
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
var output_modal = document.getElementById('output');
|
||||
var output_span = document.getElementsByClassName("close")[1];
|
||||
|
||||
span.onclick = function () {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
|
||||
output_span.onclick = function () {
|
||||
output_modal.style.display = "none";
|
||||
}
|
||||
|
||||
modal.style.display = "block";
|
||||
|
||||
$(function () {
|
||||
var option = '';
|
||||
$.get('/listdocs'), $('#doc_list').append(option);
|
||||
console.log(option);
|
||||
});
|
||||
|
||||
display_doc_markdown();
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|
154
web/elasticsearch.html
Normal file
@ -0,0 +1,154 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="/assets/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="/assets/jquery-ui.css">
|
||||
<script src="/assets/jquery-ui.js"></script>
|
||||
<script src="/assets/distLogo.js"></script>
|
||||
<link rel="stylesheet" href="/assets/picluster-iframe.css">
|
||||
<script>
|
||||
function exec() {
|
||||
var radio_add = $('input[id=radio_add]:checked').val();
|
||||
var radio_delete = $('input[id=radio_delete]:checked').val();
|
||||
var radio_kibana = $('input[id=radio_kibana]:checked').val();
|
||||
var elasticsearch_url = $("#es_url").val();
|
||||
var kibana_url = $("#kibana_url").val();
|
||||
var path = '/elasticsearch';
|
||||
if (path) {
|
||||
if (radio_add) {
|
||||
$.post(path, {
|
||||
token: parent.token,
|
||||
elasticsearch_url,
|
||||
'mode': 'add'
|
||||
}, function(data) {
|
||||
var div = document.getElementById('containers-manage-modal-body');
|
||||
div.innerHTML = '<label id="windowfont"> Sent request to the server. Please check the logs for updated information.<br><br>\n' + data;
|
||||
});
|
||||
} else if (radio_kibana) {
|
||||
$.post(path, {
|
||||
token: parent.token,
|
||||
'elasticsearch_url': kibana_url,
|
||||
'mode': 'kibana'
|
||||
}, function(data) {
|
||||
var div = document.getElementById('containers-manage-modal-body');
|
||||
div.innerHTML = '<label id="windowfont"> Sent request to the server. Please check the logs for updated information.<br><br>\n' + data;
|
||||
});
|
||||
} else if (radio_delete) {
|
||||
$.post(path, {
|
||||
token: parent.token,
|
||||
elasticsearch_url,
|
||||
'mode': 'delete'
|
||||
}, function(data) {
|
||||
var div = document.getElementById('containers-manage-modal-body');
|
||||
div.innerHTML = 'Sent request to the server. Please check the logs for updated information.<br><br>\n' + data.replace(/(?:\r\n|\r|\n)/g, '<br />');
|
||||
});
|
||||
} else {
|
||||
alert('Error, you did not select an operation.')
|
||||
output_modal.style.display = "none";
|
||||
modal.style.display = "block";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("input[id$='radio_add']").click(function() {
|
||||
$("#es_kibana").hide();
|
||||
$(this).is(":checked") ? $("#es_add").show() : '';
|
||||
})
|
||||
|
||||
$("input[id$='radio_kibana']").click(function() {
|
||||
$("#es_add").hide();
|
||||
$(this).is(":checked") ? $("#es_kibana").show() : '';
|
||||
})
|
||||
|
||||
$("input[id$='radio_delete']").click(function() {
|
||||
$(this).is(":checked") ? $("#es_add").hide() : '';
|
||||
})
|
||||
|
||||
$("#es_add").hide();
|
||||
$("#es_kibana").hide();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal_container" class="modal">
|
||||
<div class="modal-content modal-small">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Manage Elasticsearch Configuration</h2>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<fieldset id="es_fieldset">
|
||||
<legend><b>Elasticsearch Configuration</b></legend>
|
||||
<div id="es_action_selector">
|
||||
<input type="radio" name="container_radio" id="radio_add">
|
||||
<label class="windowfont">Add</label>
|
||||
<hr>
|
||||
<input type="radio" name="container_radio" id="radio_delete">
|
||||
<label class="windowfont">Remove</label>
|
||||
<hr>
|
||||
<input type="radio" name="container_radio" id="radio_kibana">
|
||||
<label class="windowfont">Kibana or Grafana Access</label>
|
||||
</div>
|
||||
|
||||
<div id="es_add">
|
||||
<br>
|
||||
<label class="windowfont">Elasticsearch URL:</label>
|
||||
<input type="text" size="30" id="es_url" class="modal_input" name="es_url" value=""></font>
|
||||
<br>
|
||||
</div>
|
||||
<div id="es_kibana">
|
||||
<br>
|
||||
<label class="windowfont">Web Console URL:</label>
|
||||
<input type="text" size="30" id="kibana_url" class="modal_input" name="kibana_url" value=""></font>
|
||||
<br>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="submit_button_div">
|
||||
<button id="submit_button">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="output" class="modal">
|
||||
<div class="modal-content modal-large">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h2>Command Output</h2>
|
||||
</div>
|
||||
|
||||
<div id="containers-manage-modal-body" class="modal-body">
|
||||
Please wait.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var modal = document.getElementById('modal_container');
|
||||
var span = document.getElementsByClassName("close")[0];
|
||||
var output_modal = document.getElementById('output');
|
||||
var output_span = document.getElementsByClassName("close")[1];
|
||||
var submit_button = document.getElementById("submit_button");
|
||||
|
||||
span.onclick = function () {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
|
||||
output_span.onclick = function () {
|
||||
output_modal.style.display = "none";
|
||||
}
|
||||
|
||||
submit_button.onclick = function () {
|
||||
modal.style.display = "none";
|
||||
output_modal.style.display = "block";
|
||||
exec();
|
||||
}
|
||||
|
||||
modal.style.display = "block";
|
||||
|
||||
</script>
|
||||
|
||||
</html>
|