Overview

The article covers the following topics:

  • common use cases where CloudMonix can help with monitoring and automation

  • what is needed to connect to and monitor Azure Scheduler

  • what metrics can be tracked, visualized and monitored


Why use CloudMonix for Azure Scheduler Job Collections?

Popular usages of CloudMonix include the following examples:

  • Monitoring and alerting on failed jobs

  • Tracking the number of executions, failures and faults


Configuration 

Azure Scheduler monitoring can be configured either via Setup Wizard or by using the “Add New” button in the dashboard. It’s highly recommended to use Setup Wizard when configuring permissions for the first time, as that will simplify authorization. Learn more about authorizing with Setup Wizard here.


Metrics

Every diagnostic data point that CloudMonix retrieves from the monitored resource is considered a metric in CloudMonix. Refer to the Metrics article to learn more about metrics in general. The metrics can be added, removed and customized in the Metrics tab in the resource configuration dialog.


CloudMonix retrieves metrics for Azure Scheduler via Azure Management API.


Built-in Metrics 

ResourceStatus

Identifies the last state of the monitored resource. This is a critical metric that is captured for most types of resources that CloudMonix tracks. It is used for Uptime reports and should not be removed. ResourceStatus won’t be captured if no other metrics are tracked for Azure Scheduler.

  • Data Type: string

  • Possible values: Ready, Down, Unknown

  • Included in sample profile: no

  • Included in default alerts: no

Statuses are determined according to the following rules:

  • Ready - successfully connected to the resource and retrieved metrics

  • Down - there was an error when trying to retrieve data from the resource

  • Unknown - can’t connect to the resource (e.g. because of invalid credentials) or there are no metrics to track


AzureSchedulerExecutions

Tracks the number of times the selected job has executed, might be zero.

  • Data Type: int

  • Requires selecting a job

 

AzureSchedulerFailures

Tracks the number of times the selected job has failed, might be zero.

  • Data Type: int

  • Requires selecting a job


AzureSchedulerFaults

Tracks the number of faulted occurrences (occurrences that were retried and failed as many times as the retry policy states) for the selected job, might be zero.

  • Data Type: int

  • Requires selecting a job


AzureSchedulerLastJobStatus

Tracks the status of the selected job. Possible values: Enabled (scheduled for future execution), Completed (the final execution attempt succeeded), Disabled (does not have any future execution scheduled), Faulted (the final execution attempt failed).

  • Data Type: string

  • Requires selecting a job


AzureSchedulerLastJobEndedMinutesAgo

Tracks the time since the last execution time, if the job has completed. 

  • Data Type: double

  • Requires selecting a job


AzureSchedulerStatusByJob

Tracks information about all jobs.

  • Data Type: array of objects with the following fields:

    • Id (string): Job identifier. 

    • Frequency (string): Execution frequency, possible values: None, X Minute(s), X Hour(s), X Day(s), X Week(s), X Month(s), where X is a positive number.

    • State (string): State of the job, possible values: 

      • Enabled: a job scheduled for future execution.

      • Completed: a job whose final execution attempt succeeded.

      • Disabled: a job does not have any future execution scheduled.

      • Faulted: a job whose final execution attempt failed.

    • Executions (int): Number of times this job has executed, might be zero.

    • Failures (int): Number of times this job has failed, might be zero.

    • Faults (int): Number of faulted occurrences (occurrences that were retried and failed as many times as the retry policy states), might be zero.

    • LastExecution (DateTime?): Time the last occurrence executed in ISO-8601 format. Null if job has not run yet.

    • NextExecution (DateTime?): Time of the next occurrence in ISO-8601 format. Null if the job is completed.

  • Can be accessed only through aggregation using Expressions described in the Working with Expressions article.


Alerts

Users can create alerts based on changes in any value tracked by CloudMonix (including custom metrics). Each resource template includes alerts which are suitable for a given resource. The predefined alerts for Azure Backup Vaults are listed in the Metrics section. Refer to the Alerts article to learn more about alerts in general.


Alerts are available during the Trial period or in Professional and Ultimate plans only.