Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 6. Usage metrics collection in Satellite
Satellite collects information on product usage to improve how Red Hat prioritizes future development and to help with debugging. The collected usage metrics include information such as which Satellite features are used and the number of objects in the database.
6.1. Overview of usage metrics collection in Satellite Link kopierenLink in die Zwischenablage kopiert!
Satellite includes the satellite-maintain report generate command, which can collect information from user environments to better understand how Satellite is used.
The following systemd timers collect the data:
satellite-usage-metrics-generate.timer-
This timer collects the full list of usage metrics. It executes the
satellite-maintain report generatecommand on your Satellite Server and then stores the collected data in the/var/lib/foreman-maintain/satellite_metrics.ymlfile. The timer runs weekly. satellite-usage-metrics-condense.timer-
This timer collects the same set of metrics as
satellite-usage-metrics-generate.timer, condenses them so that they can be uploaded as custom Red Hat Subscription Manager facts, and stores them in the/etc/rhsm/facts/foreman.factsfile. The timer runs weekly.
When you use the sos report command to generate a report for Red Hat Technical Support, the report will include the satellite_metrics.yml and /etc/rhsm/facts/foreman.facts files, along with the other configuration, diagnostics, and troubleshooting data that sos collects.
Additional resources
6.2. Reviewing usage metrics collected from your Satellite Link kopierenLink in die Zwischenablage kopiert!
You can review the usage metrics that Satellite collects from your deployment by using the satellite-maintain report command on your Satellite Server.
Procedure
Display the list of full usage metrics:
satellite-maintain report generate
# satellite-maintain report generateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Display the list of condensed usage metrics:
satellite-maintain report condense
# satellite-maintain report condenseCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Example 6.1. Example output of satellite-maintain report generate
6.3. Disabling the collection of usage metrics Link kopierenLink in die Zwischenablage kopiert!
You can opt out of the default usage metrics collection by masking the systemd timers that collect the data on your Satellite Server.
Procedure
To disable the collection of the full usage metrics:
Mask the
satellite-usage-metrics-generate.timerunit:systemctl mask satellite-usage-metrics-generate.timer
# systemctl mask satellite-usage-metrics-generate.timerCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the timer has been executed already at least once, remove the generated usage metrics file:
rm /var/lib/foreman-maintain/satellite_metrics.yml
# rm /var/lib/foreman-maintain/satellite_metrics.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
To disable the collection of the condensed usage metrics:
Mask the
satellite-usage-metrics-condensed.timerunit:systemctl mask satellite-usage-metrics-condensed.timer
# systemctl mask satellite-usage-metrics-condensed.timerCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the timer has been executed already at least once, remove the generated usage metrics file:
rm /etc/rhsm/facts/foreman.facts
# rm /etc/rhsm/facts/foreman.factsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
On your Satellite Server, verify the status of the timer you want to disable. For example, to verify the status of the
satellite-usage-metrics-generate.timerunit:systemctl status satellite-usage-metrics-generate.timer
# systemctl status satellite-usage-metrics-generate.timerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that no generated usage metrics file exists:
cat /var/lib/foreman-maintain/satellite_metrics.yml
# cat /var/lib/foreman-maintain/satellite_metrics.ymlCopy to Clipboard Copied! Toggle word wrap Toggle overflow