Windows Azure Performance Collection Rule

更新日期: 2010年12月

適用於: Operations Manager 2007

You create a performance collection rule for a Windows Azure application by using the Authoring console to create a custom rule that uses the performance collection module included in the Windows Azure Management Pack. This module retrieves performance data from Windows Azure storage on a periodic basis.

This procedure provides an example of how to create a performance collection rule for a Windows Azure application. The example uses the Network Interface/Bytes Sent/sec performance counter.

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 collection rule 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 Rules.

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

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

  8. On the General tab, do the following:

    1. Enter a display name for the rule and, optionally, a description.

    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.

  9. On the Modules tab, do the following:

    1. In the Data Sources section, click Create.

    2. In the Choose module type dialog box, select Windows Azure Role Instance Performance Counter Collection Simple Data Source.

    3. Enter a name in the Module ID box such as DS, and then click OK.

    4. Click Edit to open the configuration of the module.

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

      • IntervalSeconds: 300

      • TimeoutSeconds: 120

      • CounterName: Bytes Sent/sec

      • ObjectName: Network Interface

    6. Click Edit to open the custom editor.

    7. To configure the rule to collect data for all instances of the network adapter, add the following line to the XML file, before the closing configuration tag:

      <AllInstances>true</AllInstances>



      新增至規則 xml 的 AllInstances 標記範例

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

    8. Save the file and close the editor. The following image shows the final configuration:



      規則設定索引標籤的範例

    9. Click OK to close the configuration.

    10. In the Actions section, click Create.

    11. Select Performance Data Collection Write Action.

    12. Enter a name in the Module ID box such as WriteToDB, and then click OK. This step enables the rule to write data to the operational database.

    13. In the Actions section, click Create.

    14. Select Performance data publisher.

    15. Enter a name in the Module ID box such as WriteToDW, and then click OK. This step enables the rule to write data to the data warehouse.

  10. Click OK to save and close the rule.

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

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

  13. Close the Authoring console.

社群新增項目

顯示: