-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Maximilian Kolb <kolb@atix.de>
- Loading branch information
1 parent
1f88d8e
commit 439aea7
Showing
29 changed files
with
236 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
include::common/attributes.adoc[] | ||
include::common/header.adoc[] | ||
= Monitoring {ProjectName} | ||
= {MonitoringDocTitle} | ||
:monitoring-project: | ||
:context: monitoring-guide | ||
:context: monitoring | ||
|
||
ifdef::satellite[] | ||
include::common/modules/proc_providing-feedback-on-red-hat-documentation.adoc[leveloffset=+1] | ||
endif::[] | ||
|
||
include::topics/con_metrics-overview.adoc[leveloffset=+1] | ||
|
||
include::topics/con_project_metrics_overview.adoc[leveloffset=+1] | ||
include::topics/con_performance-co-pilot.adoc[leveloffset=+1] | ||
|
||
include::topics/con_performance-metrics-domain-agents.adoc[leveloffset=+2] | ||
|
||
include::topics/proc_installing-pcp-packages.adoc[leveloffset=+1] | ||
|
||
include::topics/proc_configuring-pcp-data-collection.adoc[leveloffset=+2] | ||
include::topics/proc_enabling-access-to-metrics-via-web-ui.adoc[leveloffset=+2] | ||
|
||
ifndef::foreman-deb[] | ||
include::topics/proc_enabling-access-to-telemery-data-using-the-web-ui.adoc[leveloffset=+2] | ||
endif::[] | ||
|
||
include::topics/proc_verifying-pcp-configuration.adoc[leveloffset=+2] | ||
|
||
include::topics/con_pcp-metrics.adoc[leveloffset=+1] | ||
|
||
include::topics/proc_identifying-available-metrics.adoc[leveloffset=+2] | ||
|
||
include::topics/con_retrieving-metrics.adoc[leveloffset=+1] | ||
include::topics/con_retrieving-metrics-using-cli.adoc[leveloffset=+2] | ||
|
||
include::topics/con_retrieving-metrics-using-the-cli.adoc[leveloffset=+2] | ||
|
||
include::topics/proc_retrieving-live-metrics-using-cli.adoc[leveloffset=+3] | ||
|
||
include::topics/proc_retrieving-archived-metrics-using-cli.adoc[leveloffset=+3] | ||
include::topics/proc_retrieving-metrics-via-web-ui.adoc[leveloffset=+2] | ||
include::topics/con_metrics-storage.adoc[leveloffset=+1] | ||
|
||
ifndef::foreman-deb[] | ||
include::topics/proc_retrieving-metrics-in-the-web-ui.adoc[leveloffset=+2] | ||
endif::[] | ||
|
||
include::topics/con_metrics-data-retention.adoc[leveloffset=+1] | ||
|
||
include::topics/proc_changing-default-logging-interval.adoc[leveloffset=+2] | ||
|
||
include::topics/proc_changing-data-retention-policy.adoc[leveloffset=+2] | ||
|
||
include::topics/proc_confirming-data-storage-usage.adoc[leveloffset=+2] |
13 changes: 13 additions & 0 deletions
13
guides/doc-Monitoring_Project/topics/con_metrics-data-retention.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[id='metrics-data-retention_{context}'] | ||
= Metrics Data Retention | ||
|
||
The storage capacity required by PCP data logging is determined by the following factors: | ||
|
||
* The metrics being logged. | ||
* The logging interval. | ||
* The retention policy. | ||
|
||
The default logging (sampling) interval is 60 seconds. | ||
|
||
The default retention policy is to keep archives for the last 14 days, compressing archives older than one day. | ||
PCP archive logs are stored in the `/var/log/pcp/pmlogger/_{foreman-example-com}_` directory. |
19 changes: 19 additions & 0 deletions
19
guides/doc-Monitoring_Project/topics/con_metrics-overview.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[id='metrics-overview_{context}'] | ||
= Metrics Overview | ||
|
||
Obtaining metrics from {Project} is useful for troubleshooting a current issue, and capacity planning. | ||
This guide describes how to collect live metrics and archive them for a fixed period of time. | ||
ifdef::satellite[] | ||
If you need to raise a support case with {Team} to resolve a performance issue, the archived data provides valuable insight. | ||
Note that {Team} Support can only access the archived data if you upload it to a Support Case. | ||
endif::[] | ||
|
||
You can collect the following metrics from {Project}: | ||
|
||
* Basic statistics from the operating system, including system load, memory utilization, and input/output operations. | ||
* Process statistics, including memory and CPU utilization. | ||
* Apache HTTP Server activity statistics. | ||
* PostgreSQL activity statistics. | ||
* {Project} application statistics. | ||
|
||
Use Performance Co-Pilot (PCP) to collect and archive {Project} metrics. |
12 changes: 0 additions & 12 deletions
12
guides/doc-Monitoring_Project/topics/con_metrics-storage.adoc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
guides/doc-Monitoring_Project/topics/con_performance-co-pilot.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[id='performance-co-pilot_{context}'] | ||
= Performance Co-Pilot | ||
|
||
Performance Co-Pilot (PCP) is a suite of tools and libraries for acquiring, storing, and analyzing system-level performance measurements. PCP can be used to analyze live and historical metrics. Metrics can be retrieved and presented via the CLI, or a web UI. | ||
Performance Co-Pilot (PCP) is a suite of tools and libraries for acquiring, storing, and analyzing system-level performance measurements. | ||
PCP can be used to analyze live and historical metrics. | ||
You can retrieve and view metrics through a CLI or a web UI. |
3 changes: 2 additions & 1 deletion
3
guides/doc-Monitoring_Project/topics/con_performance-metrics-domain-agents.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[id='performance-metric-domain-agents_{context}'] | ||
= Performance Metric Domain Agents | ||
|
||
A Performance Metric Domain Agent (PMDA) is a PCP add-on which enables access to metrics of an application or service. To gather all metrics relevant to {Project}, you must install PMDAs for Apache HTTP Server and PostgreSQL. | ||
A Performance Metric Domain Agent (PMDA) is a PCP add-on which enables access to metrics of an application or service. | ||
To gather all metrics relevant to {Project}, you must install PMDAs for Apache HTTP Server and PostgreSQL. |
14 changes: 0 additions & 14 deletions
14
guides/doc-Monitoring_Project/topics/con_project_metrics_overview.adoc
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
guides/doc-Monitoring_Project/topics/con_retrieving-metrics-using-cli.adoc
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
guides/doc-Monitoring_Project/topics/con_retrieving-metrics-using-the-cli.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[id='retrieving-metrics-using-the-cli_{context}'] | ||
= Retrieving Metrics using the CLI | ||
|
||
Using the CLI tools provided with PCP, you can retrieve metrics either live or from an archive file. |
6 changes: 5 additions & 1 deletion
6
guides/doc-Monitoring_Project/topics/con_retrieving-metrics.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
[id='retrieving-metrics_{context}'] | ||
= Retrieving Metrics | ||
|
||
You can retrieve metrics from PCP using the CLI or the web UI interfaces. A number of CLI tools are provided with PCP, which can either output live data, or data from archived sources. The web UI interfaces are provided by the Grafana and Vector web applications. Vector connects directly to the PCP daemon, and can only display live data. Grafana reads from PCP archive files and can display data to up to 1 year old. | ||
You can retrieve metrics from PCP using the CLI or the web UI interface. | ||
A number of CLI tools are provided with PCP, which can either output live data, or data from archived sources. | ||
ifndef::foreman-deb[] | ||
The web UI interface is provided by the Grafana web application. | ||
endif::[] |
19 changes: 11 additions & 8 deletions
19
guides/doc-Monitoring_Project/topics/proc_changing-data-retention-policy.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
[id='changing-data-retention_{context}'] | ||
[id='changing-data-retention-policy_{context}'] | ||
= Changing Data Retention Policy | ||
|
||
This procedure describes how to change the data retention policy. | ||
|
||
.Procedure | ||
|
||
. Edit the `/etc/cron.d/pcp-pmlogger` file. | ||
|
||
. Find the line containing `pmlogger_daily`. | ||
|
||
. Change the value for parameter `-x` to the desired number of days after which data is archived. | ||
|
||
ifndef::foreman-deb[] | ||
. Edit the `/etc/sysconfig/pmlogger_timers` file. | ||
endif::[] | ||
ifdef::foreman-deb[] | ||
. Edit the `/etc/default/pmlogger_timers` file. | ||
endif::[] | ||
. Find the line containing `PMLOGGER_DAILY_PARAMS`. | ||
. If it is commented, uncomment the line. | ||
. Ensure the default parameter `-E` is present. | ||
. Add parameter `-x`, and add a value for the desired number of days after which data is archived. | ||
. Add parameter `-k`, and add a value for the number of days after which data is deleted. | ||
+ | ||
For example, the parameters `-x 4 -k 7` specify that data will be compressed after 4 days, and deleted after 7 days. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.