You can apply a hardware profile to enable and collect metrics from multiple servers. After you enable telemetry collection in a hardware profile, you can configure the telemetry metrics that Bare Metal Orchestrator will collect from the servers.
Create a profile telemetry instance using the profile telemetry YAML file for the associated hardware profile. The file contains a list of metric reports for Dell servers and the configuration attributes for each report. The profile telemetry YAML file must be created with the same site label as that of the associated hardware profile. For information about the metric reports that you can generate and the attributes or fields for each of the metric reports, see Telemetry field definitions.
For information about the commands for profile telemetry, see the Bare Metal Orchestrator Command Line Interface Reference Guide.
Note: The profile telemetry name and the associated hardware profile name must be the same.
Complete the following steps:
- Establish a CLI session on the Bare Metal Orchestrator VM and log in. For high availability configurations, establish a CLI session using the virtual IP (VIP) of the Load Balancers for the Bare Metal Orchestrator cluster.
- Change the directory to ~/samples/hardware-profiles/.
- Create a profile telemetry YAML file by copying the sample file, telemetry_profiletelemetry.yaml.
cp telemetry_profiletelemetry.yaml <new-profiletelemetry-id>.yaml
- Edit the <new-profiletelemetry-id>.yaml file in Vim or a similar editor.
- Customize the <new-profiletelemetry-id>.yaml file:
- Save the file and quit the editor.
- Create the profile telemetry instance with the following command:
bmo create profiletelemetry -f <new-profiletelemetry-id>.yaml
- Create a hardware profile. Add the attributes, telemetryEnable and reconcileTelemetry to the hardware profile YAML file. For more information, see Create hardware profiles.
The following is an example of the hardware profile YAML file:
apiVersion: mw.dell.com/v4
kind: HardwareProfile
metadata:
name: hardwareprofile-1
labels:
site: gc
spec:
apply: false
preview: true
server:
telemetryEnable: Enabled
reconcileTelemetry: True
selectors:
location: pune
Note: The hardware profile is applied to the targeted servers only when the apply attribute is set to true
.
- Verify that profile telemetry is enabled and metrics is configured on the server. For more information, see View servers and server status.