Windows Azure Performance Monitor

更新日期: 2010年12月

適用於: Operations Manager 2007

You create a performance monitor for a Windows Azure application by using the Authoring console to create a monitor based on the performance monitor type in the Windows Azure Management Pack. This monitor type samples a performance counter and sets one of two health states depending on the value of the counter.

This procedure provides an example of how to create a performance collection monitor for a Windows Azure application. The example monitors disk space on drive C.

Important重要事項
This procedure uses the Operations Manager Authoring console which is available as part of the System Center Operations Manager 2007 R2 Authoring Resource Kit (http://go.microsoft.com/fwlink/?LinkId=202663). This procedure cannot be completed using the Operations console.

Tip秘訣
This procedures uses display names for the components of the management pack. To have the Authoring console use display names, on the Tools menu, click Options, and then click Use display names. If you do not select this option, then the console will use actual names which will be different than the display names used here.

To create a performance monitor for Windows Azure

  1. In the Authoring console, on the Tools menu, click Import MP from Management Group.

  2. In the Import MP from Management Group dialog box, select the name of the root management server in your management group and click Connect.

  3. In the Import from Management Group dialog box, select the management pack that you created when running the Windows Azure Application template and click Import.

  4. Click the Health Model navigation button.

  5. In the navigation pane, click Monitors.

  6. In the Actions pane, click New, and then click Custom Unit Monitor.

  7. In the Choose a unique identifier dialog box, enter a name for the monitor such as MyAzureApplication.PerformanceMonitor, and then click OK. The Properties dialog box for the new monitor opens.

  8. On the General tab, do the following:

    1. Enter a display name for the monitor. This is the text that will be displayed in the Health Explorer.

    2. In the Target box, select the role instance class for the Windows Azure application. This will have the name Windows Azure Role Instance followed by the name of the Windows Azure application enclosed in parentheses.

    3. In the Parent Monitor box, select Performance.

  9. On the Configuration tab, do the following:

    1. Click the Browse for a type link.

    2. In the Choose unit monitor type dialog box, select Windows Azure Performance Counter Simple Monitor Type, and then click OK.

    3. On the Configuration tab, enter the following values:

      • IntervalSeconds: 300

      • TimeoutSeconds: 120

      • CounterName: % Free Space

      • ObjectName: LogicalDisk

      • Threshold: 50

      • Direction: Less

      • NumSamples: 3

      監視設定的範例
    4. Click Edit to open the custom editor.

    5. To configure the monitor to collect data for drive C, add the following line to the .xml file, after the closing ObjectName tag:

      <InstanceName>C:</InstanceName>



      監視 xml 的範例

      Important重要事項
      The new line must be placed in the exact position shown in the image or an error will be displayed.

    6. Save the file and close the editor.

  10. On the Health tab, set the following values:

     

    Monitor Condition Operational State Health State

    Condition True

    Under the threshold

    Warning

    Condition False

    Over the threshold

    Healthy

  11. On the Alerting tab, do the following:

    1. Select the Generate alerts for this monitor and Generate an alert when the monitor is in a critical or warning health state check boxes.

    2. Enter a name for the alert, and set the Priority and Severity boxes to the value that you want the alert to have.

    3. In the Alert description box, enter the following:

      The amount of free space on the C: drive is $Data/Context/SampleValue$

    4. Click OK to save and close the monitor.

  12. On the Tools menu, click Export MP to Management Group.

  13. In the Export MP from Management Group dialog box, select the name of the root management server in your management group and click Connect.

  14. Close the Authoring console.

社群新增項目

顯示: