-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
222 additions
and
201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
[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. | ||
You can set up a third-party solution to collect live metrics from {ProjectServer}, archive them for a fixed period of time, and analyze them. | ||
Obtaining metrics from {Project} is useful for capacity planning and troubleshooting performance issues. | ||
|
||
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. | ||
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. | ||
* 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 |
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 was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
guides/common/modules/con_performance-metrics-domain-agents.adoc
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
guides/common/modules/con_retrieving-metrics-using-the-cli.adoc
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
guides/common/modules/con_setting-up-the-metrics-monitoring-solution.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,8 @@ | ||
[id="setting-up-the-metrics-monitoring-solution_{context}"] | ||
= Setting Up the Metrics Monitoring Solution | ||
|
||
Install PCP packages and configure PCP data collection. | ||
You can use the PCP CLI tools to retrieve metrics in the command line. | ||
ifndef::foreman-deb[] | ||
Optionally, you can install Grafana to enable web UI access to metrics. | ||
endif::[] |
25 changes: 14 additions & 11 deletions
25
guides/common/modules/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,19 +1,22 @@ | ||
[id='changing-data-retention-policy_{context}'] | ||
= Changing Data Retention Policy | ||
|
||
This procedure describes how to change the data retention policy. | ||
You can change the data retention policy to control after how long the PCP data are archived and deleted. | ||
|
||
.Procedure | ||
ifndef::foreman-deb[] | ||
. Edit the `/etc/sysconfig/pmlogger_timers` file. | ||
endif::[] | ||
ifdef::foreman-deb[] | ||
. Edit the `/etc/default/pmlogger_timers` file. | ||
. Open 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. | ||
ifndef::foreman-deb[] | ||
. Open the `/etc/sysconfig/pmlogger_timers` file. | ||
endif::[] | ||
. Locate the `PMLOGGER_DAILY_PARAMS` line. | ||
. If the line is commented, uncomment the line. | ||
. Configure the following parameters: | ||
* Ensure the default `-E` parameter is present. | ||
* Append the `-x` parameter and add a value for the required number of days after which data is archived. | ||
* Append the `-k` parameter 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. | ||
For example, the parameters `-x 4 -k 7` specify that data will be compressed after 4 days and deleted after 7 days. | ||
. Save the file. |
16 changes: 12 additions & 4 deletions
16
guides/common/modules/proc_changing-default-logging-interval.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,9 +1,17 @@ | ||
[id='changing-default-logging-interval_{context}'] | ||
= Changing Default Logging Interval | ||
|
||
This procedure describes how to change the default logging interval. | ||
You can change the default logging interval to either increase or decrease the sampling rate, at which the PCP metrics are logged. | ||
A larger interval results in a lower sampling rate. | ||
|
||
.Procedure | ||
. Edit the `/etc/pcp/pmlogger/control.d/local` configuration file. | ||
. Edit the LOCALHOSTNAME line and append `-t __XX__s`, where _XX_ is the desired time interval, measured in seconds. | ||
. Restart the `pmlogger` service. | ||
. Open the `/etc/pcp/pmlogger/control.d/local` configuration file. | ||
. Locate the `LOCALHOSTNAME` line. | ||
. Append `-t __XX__s`, where _XX_ is the required time interval in seconds. | ||
. Save the file. | ||
. Restart the `pmlogger` service: | ||
+ | ||
[options="nowrap" subs="+quotes,verbatim,attributes"] | ||
---- | ||
# systemctl restart pmlogger | ||
---- |
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
17 changes: 0 additions & 17 deletions
17
guides/common/modules/proc_confirming-data-storage-usage.adoc
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
guides/common/modules/proc_enabling-access-to-telemery-data-using-the-web-ui.adoc
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
guides/common/modules/proc_enabling-web-ui-access-to-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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[id='enabling-web-ui-access-to-metrics_{context}'] | ||
= Enabling Web UI Access to Metrics | ||
|
||
You can enable web UI access to metrics collected by PCP by installing Grafana. | ||
|
||
.Procedure | ||
. Install Grafana and the Grafana PCP plug-in on your {ProjectServer}: | ||
+ | ||
[options="nowrap", subs="verbatim,quotes,attributes"] | ||
---- | ||
# {package-install-project} grafana grafana-pcp | ||
---- | ||
. Start and enable the Grafana web service and the PCP proxy service: | ||
+ | ||
---- | ||
# systemctl enable --now pmproxy grafana-server | ||
---- | ||
. Open the firewall port to allow access to the Grafana web interface: | ||
+ | ||
---- | ||
# firewall-cmd --permanent --add-service=grafana | ||
---- | ||
. Reload the firewall configuration to apply the changes: | ||
+ | ||
---- | ||
# firewall-cmd --reload | ||
---- | ||
. Install PCP Redis and configure Grafana to load it. | ||
For more information, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/setting-up-graphical-representation-of-pcp-metrics_monitoring-and-managing-system-status-and-performance#configuring-pcp-redis_setting-up-graphical-representation-of-pcp-metrics[Configuring PCP Redis] in _{RHEL} 8 Monitoring and managing system status and performance_. | ||
. Access the Grafana web UI, enable the PCP plug-in, and add PCP Redis as a data source. | ||
For more information, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/setting-up-graphical-representation-of-pcp-metrics_monitoring-and-managing-system-status-and-performance#accessing-the-grafana-web-ui_setting-up-graphical-representation-of-pcp-metrics[Accessing the Grafana web UI] in _{RHEL} 8 Monitoring and managing system status and performance_. |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[id='installing-pcp_{context}'] | ||
= Installing PCP | ||
|
||
Install the PCP packages on your {ProjectServer} and enable PCP daemons. | ||
|
||
.Prerequisite | ||
* Ensure you have the minimum of 20 GB space available in the `/var/log/pcp` directory. | ||
+ | ||
With the default PCP data retention settings, data storage is estimated to use between 100 MB and 500 MB of disk space per day, but may use up to several gigabytes over time. | ||
For more information, see xref:metrics-data-retention_{context}[]. | ||
|
||
.Procedure | ||
. Install the PCP packages: | ||
+ | ||
[options="nowrap", subs="verbatim,quotes,attributes"] | ||
---- | ||
# {package-install-project} pcp \ | ||
ifndef::foreman-deb[] | ||
pcp-pmda-apache \ | ||
pcp-pmda-openmetrics \ | ||
pcp-pmda-postgresql \ | ||
pcp-pmda-redis \ | ||
pcp-system-tools \ | ||
endif::[] | ||
foreman-pcp | ||
---- | ||
. Enable and start the Performance Metrics Collector daemon and Performance Metrics Logger daemon: | ||
+ | ||
---- | ||
# systemctl enable --now pmcd pmlogger | ||
---- |
Oops, something went wrong.