Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 2.3 KB

proc-modifying-the-run-schedule.adoc

File metadata and controls

57 lines (47 loc) · 2.3 KB

Modifying the run schedule

You can configure metrics-utility to run at specified times and intervals. Run frequency is expressed in cronjobs. See How to schedule jobs using the Linux ‘Cron’ utility for more information.

On {RHEL}

Procedure
  1. From the command line, run:

    crontab -e
  2. After the code editor has opened, update the gather and build parameters using cron syntax as shown below:

    */2 * * * *     metrics-utility gather_automation_controller_billing_data --ship --until=10m
    */5 * * * *     metrics-utility build_report
  3. Save and close the file.

On {OCPShort} from the {PlatformNameShort} operator

Procedure
  1. From the navigation panel, select menu:Workloads[Deployments].

  2. On the next screen, select automation-controller-operator-controller-manager.

  3. Beneath the heading Deployment Details, click the down arrow button to change the number of pods to zero. This will pause the deployment so you can update the running schedule.

  4. From the navigation panel, select Installed Operators. From the list of installed operators, select {PlatformNameShort}.

  5. On the next screen, select the {ControllerName} tab.

  6. From the list that appears, select your {ControllerName} instance.

  7. On the next screen, select the YAML tab.

  8. In the YAML file, find the following parameters and enter a variable representing how often metrics-utility should gather data and how often it should produce a report:

    metrics_utility_cronjob_gather_schedule:
    metrics_utility_cronjob_report_schedule:
  9. Click btn:[Save].

  10. From the navigation menu, select menu:Deployments[] and then select automation-controller-operator-controller-manager.

  11. Increase the number of pods to 1.

  12. To verify that you have changed the metrics-utility running schedule successfully, you can take one or both of the following steps:

    1. return to the YAML file and ensure that the parameters described above reflect the correct variables.

    2. From the navigation menu, select menu:Workloads[Cronjobs] and ensure that your cronjobs show the updated schedule.