Skip to content

Commit

Permalink
Added monitoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvicoun committed Jun 8, 2023
1 parent 222d3d9 commit 7e70668
Show file tree
Hide file tree
Showing 10 changed files with 620 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DC-SLE-Micro-admin
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ROOTID="slemicro-admin-guide"
SRC_DIR="articles"
IMG_SRC_DIR="images"

PROFCONDITION="slemmicro"
PROFCONDITION="slemicro"
#PROFCONDITION="suse-product;beta"
#PROFCONDITION="community-project"

Expand Down
45 changes: 42 additions & 3 deletions articles/SLE_Micro_admin.asm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
<description>&nm; vs Wicked</description>
</resource>

<resource xml:id="_monitoring-health-checker" href="../concepts/monitoring-health-checker.xml">
<description>Healtch checker</description>
</resource>
<resource xml:id="_toolbox" href="../concepts/toolbox.xml">
<description>toolbox</description>
</resource>

</resources>
<!-- Tasks -->
<resources>
Expand All @@ -65,6 +72,13 @@
<resource xml:id="_transactional-update-no-reboot" href="../tasks/transactional-update-no-reboot.xml">
<description>Modifying without reboot</description>
</resource>
<resource xml:id="_monitoring-health-checker-plugins" href="../tasks/monitoring-health-checker-plugins.xml">
<description>Adding healtch checker plugins</description>
</resource>

<resource xml:id="_toolbox-starting" href="../tasks/toolbox-starting.xml">
<description>Configuration of &nm;</description>
</resource>

</resources>
<!-- References -->
Expand All @@ -80,7 +94,11 @@
<resource xml:id="_networking-nm-configuration" href="../references/networking-nm-configuration.xml">
<description>Configuration of &nm;</description>
</resource>






</resources>
<!-- Legal -->
<resources>
Expand Down Expand Up @@ -213,8 +231,29 @@
<module resourceref="_networking-nm-vs-wicked" renderas="section"/>
<module resourceref="_networking-nm-configuration" renderas="section"/>
<module resourceref="_networking-nmcli" renderas="section"/>


<module resourceref="_monitoring-health-checker" renderas="section">
<merge>
<abstract>
<para/>
</abstract>
</merge>
<module resourceref="_monitoring-health-checker-plugins" renderas="section">
</module>
</module>
<module resourceref="_toolbox" renderas="section">
<merge>
<abstract>
<para/>
</abstract>
</merge>
<module resourceref="_toolbox-starting" renderas="section">
<merge>
<abstract>
<para/>
</abstract>
</merge>
</module>
</module>
<module resourceref="_reference-example" renderas="section"/>
<module resourceref="_glue-more-info" renderas="section"/>
<module resourceref="_glue-whats-next" renderas="section"/>
Expand Down
76 changes: 76 additions & 0 deletions concepts/monitoring-health-checker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="healtch-checker"
role="concept" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Health checker</title><!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract><!-- can be changed via merge in the assembly -->
<para>
This topic provide an functional purpose and overview of the health checker.
</para>
</abstract>
</info>
<para>
Health checker is a program delivered with &priductnameshort; that checks whether
services are running properly during booting of your system.
</para>
<para>
During the boot process, <literal>systemd</literal> calls Health checker,
which in turn calls its plugins. Each plugin checks a particular service or
condition. If each check passes, a status file
(<filename>/var/lib/misc/health-check.state</filename>) is created. The
status file marks the current root file system as correct.
</para>
<para>
If any of the health checker plugins reports an error, the action taken
depends on a particular condition, as described below:
</para>
<variablelist>
<varlistentry>
<term><emphasis>The snapshot is booted for the first time.</emphasis></term>
<listitem>
<para>
If the current snapshot is different from the last one that worked
properly, an automatic rollback to the last working snapshot is performed.
This means that the last change performed to the file system broke the
snapshot.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>The snapshot has already booted correctly in the past.</emphasis></term>
<listitem>
<para>
There could be just a temporary problem, and the system is rebooted
automatically.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><emphasis>The reboot of a previously correctly booted snapshot has failed.</emphasis></term>
<listitem>
<para>
If there was already a problem during boot and automatic reboot has been
triggered, but the problem still persists, then the system is kept running
to enable to the administrator to fix the problem. The services that are
tested by the health checker plugins are stopped if possible.
</para>
</listitem>
</varlistentry>
</variablelist>
</topic>
42 changes: 42 additions & 0 deletions concepts/pcp-overview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="pcp-overview"
role="concept" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Concept</title><!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract><!-- can be changed via merge in the assembly -->
<para>
For performance monitoring purposes, &slema; provides a container image that
enables you to run the Performance Co-Pilot (PCP) analysis toolkit in a
container. The toolkit comprises tools for gathering and processing
performance information collected either in real time or from PCP archive
logs.
</para>
</abstract>
</info>
<para>
The performance data are collected by <emphasis>performance metrics domain
agents</emphasis> and passed to the <emphasis>pmcd</emphasis> daemon. The
daemon coordinates the gathering and exporting of performance statistics in
response to requests from the PCP monitoring tools.
<command>pmlogger</command> is then used to log the metrics. For details,
refer to the
<link xlink:href="https://pcp.readthedocs.io/en/latest/UAG/IntroductionToPcp.html#">PCP
documentation</link>.
</para>
</topic>
43 changes: 43 additions & 0 deletions concepts/toolbox.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="concept-toolbox"
role="concept" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Toolbox for &productnameshort; debugging</title><!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract><!-- can be changed via merge in the assembly -->
<para>
The topic provides overview of the toolbox funcionality.
</para>
</abstract>
</info>
<para>
&productnameshort; uses the &trup; command to apply
changes to the system, but the changes are applied only after reboot. That
solution has several benefits, but it also has some disadvantages. If you
need to debug your system and install a new tool, the tool will be available
only after reboot. Therefore you are not able to debug the currently running
system. For this reason a utility called <literal>toolbox</literal> has been
developed.
</para>
<para>
<literal>toolbox</literal> is a small script that pulls a container image and
runs a privileged container based on that image. In the toolbox container you
can install any tool you want with <command>zypper</command> and then use the
tool without rebooting your system.
</para>
</topic>
74 changes: 74 additions & 0 deletions references/pcp-service-configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<!-- refers to legacy doc: <add github link to legacy doc piece, if applicable> -->
<!-- point back to this document with a similar comment added to your legacy doc piece -->
<!-- refer to README.md for file and id naming conventions -->
<!-- metadata is dealt with on the assembly level -->
<topic xml:id="pcp-service-configuration"
role="reference" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Reference</title><!-- can be changed via merge in the assembly -->
<!--add author's email address-->
<meta name="maintainer" content="" its:translate="no"/>
<abstract><!-- can be changed via merge in the assembly -->
<para>
Introductory text
</para>
</abstract>
</info>
<section xml:id="reference-example-section">
<title>Section title</title>
<para>
A paragraph of text.
</para>
<variablelist>
<title>A title</title>
<varlistentry>
<term><command>a-command --with-options</command></term>
<listitem>
<para>
A paragraph of text.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>another-command --with-options</command></term>
<listitem>
<para>
Another paragraph of text.
</para>
</listitem>
</varlistentry>
</variablelist>
<table>
<title>A table title</title>
<tgroup cols="2">
<colspec colwidth="50*"/>
<colspec colwidth="50*"/>
<tbody>
<row>
<entry>an entry</entry>
<entry>another entry</entry>
</row>
<row>
<entry>an entry</entry>
<entry>another entry</entry>
</row>
<row>
<entry>an entry</entry>
<entry>another entry</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</topic>
Loading

0 comments on commit 7e70668

Please sign in to comment.