Bookmark this page

Chapter 10.  Getting Insights into Automation Performance

Abstract

Goal

Get information from Red Hat Insights for Red Hat Ansible Automation Platform to evaluate the performance of your Ansible automation and identify possible ways to improve it.

Objectives
  • Send data to the Red Hat Insights for Red Hat Ansible Automation Platform and automation analytics cloud services in order to analyze and improve your use of automation.

  • Review data in the Red Hat Insights for Red Hat Ansible Automation Platform cloud service in order to automate issue remediation, and to detect and alert you to configuration drift.

  • Review data analysis provided by the automation analytics cloud service in order to identify issues with your automation infrastructure and automation jobs.

  • Generate reports based on data analysis provided by the automation analytics cloud service in order to improve your use of automation and to plan for future automation projects.

Sections
  • Gathering Data for Cloud-based Analysis (and Quiz)

  • Getting Insights into Automation Performance (and Quiz)

  • Evaluating Performance with Automation Analytics (and Quiz)

  • Producing Reports from Automation Analytics (and Quiz)

Gathering Data for Cloud-based Analysis

Objectives

  • Send data to the Red Hat Insights for Red Hat Ansible Automation Platform and automation analytics cloud services in order to analyze and improve your use of automation.

Introducing Red Hat Hybrid Cloud Console Services

Red Hat provides a number of hosted services on https://console.redhat.com that can help you better manage your Red Hat Ansible Automation Platform infrastructure. The following two Red Hat Hybrid Cloud Console services are relevant to gather data for cloud-based analysis:

  • Insights for Ansible Automation Platform

  • Automation analytics

Insights for Ansible Automation Platform enables you to keep track of warnings about security vulnerabilities and the security risk levels for the members of your automation infrastructure. You can also use Insights for Ansible Automation Platform to determine the changes that each system has undergone over time, or how far it has moved away from your baselines.

Automation analytics helps to provide better insight into the performance of your automation infrastructure. You can use it to analyze how you use automation and what modules, playbooks, and workflows you most frequently use. Automation analytics is also useful to estimate the return on investment of current or future automation projects. You can even develop reports in automation analytics for others to review.

Important

You need to satisfy the following requirements to use automation analytics and Insights for Ansible Automation Platform:

  • A Red Hat Hybrid Cloud Console account.

  • A Red Hat Ansible Automation Platform subscription.

  • Your automation controllers must be able to reach https://console.redhat.com/.

Collecting Data for Cloud Services

Before Red Hat Hybrid Cloud Console can report data about your automation controller clusters, you need to configure those systems to send data to it. Information about what data is sent and how it is managed and secured is available from the references at the end of this section.

You can enable data gathering from your automation controller by using the following procedure:

  • Log in to the web UI of your automation controller as the admin user and navigate to Settings.

  • In the System panel, click Miscellaneous System settings and then click Edit.

  • Set Gather data for Insights for Ansible Automation Platform to On to activate data gathering.

  • Enter you customer portal credentials in the Red Hat customer username and Red Hat customer password fields. If you use a corporate account, then everybody in your organization can access reports for that automation controller cluster from the Red Hat Hybrid Cloud Console.

Figure 10.1: Configuring data gathering
  • By default, automation controller sends data to Red Hat Insights every four hours (14400 seconds). Use the Insights for Ansible Automation Platform Gather Interval field to change that parameter. The value is in seconds and cannot be less than 1800 (30 minutes).

  • Click Save when done.

Registering Managed Hosts with Insights for Ansible Automation Platform

The Advisor tool provided by Red Hat Insights can identify issues with your managed hosts and automatically generate Ansible Playbooks to remediate those issues. To help your Red Hat Enterprise Linux managed hosts gather the information to do this effectively, you can also register them with Red Hat Insights.

To register your managed hosts with Red Hat Insights, download and install the insights-client package on your managed host. If it is already registered to get updates through a Customer Portal software entitlement, then you can configure the managed host to send data to Red Hat Insights with one command on that system.

[root@host ~]# insights-client --register

The client periodically updates the metadata that is provided to Insights for Ansible Automation Platform. However, you can manually run the insights-client command on a registered managed host to immediately refresh the client’s metadata.

[root@host ~]# insights-client
Starting to collect Insights data for host.example.com
Uploading Insights data.
Successfully uploaded report from host.example.com to account 6076664.
View details about this system on console.redhat.com:
https://console.redhat.com/insights/inventory/dc480efd-4782-417e-a496-cb33e23642f0

Accessing Red Hat Hybrid Cloud Console

To access Red Hat Hybrid Cloud Console, log in to https://console.redhat.com with your Red Hat Customer Portal account and password.

Navigate to Manage InfrastructureAnsible Automation Platform to open the Overview dashboard.

This dashboard provides basic information about your automation infrastructure as well as an updated navigation bar so that you can access other features of Insights for Ansible Automation Platform and automation analytics.

Figure 10.2: Overview dashboard for Insights for Ansible Automation Platform

Revision: do467-2.2-08877c1