複数エンティティのカスタムメトリックの定義

カスタムメトリックを使用して単一または複数のエンティティをモニターする正常性ルールを作成できます。

カスタムメトリックを使用して単一のエンティティをモニターする正常性ルールを作成する

カスタムメトリックを使用して正常性ルールを作成し、単一のビジネストランザクション、ノード、またはアプリケーション全体のパフォーマンスをモニターするには:

  1. 正常性ルールを作成するときは、正常性ルールのタイプをカスタムとして指定します。
  2. 条件を設定するときに、[Select Metric] ウィンドウで [Specify a Metric from the Metric Tree.] を選択します
  3. 埋め込みメトリックブラウザからメトリックを選択します。

カスタムメトリックを使用して複数のエンティティをモニターする 正常性ルールを作成する

さまざまなエンティティ(たとえば、複数のノード全体)に共通して存在するカスタムメトリックを評価する正常性ルールを作成できます。各ノードに個別の正常性ルールを作成するのではなく、1つの正常性ルールでこれを実行します。この場合、埋め込まれたメトリックブラウザからメトリックを選択するのではなく、メトリックへの相対メトリックパスを利用してカスタムメトリックを指定する必要があります。

  1. メトリックブラウザからカスタムメトリックパスを取得します
  2. カスタムメトリックパスを相対パスとして使用して、正常性ルールを構成します

Get the Custom Metric Path for a Multi-Entity Metric

  1. Navigate to the Metric Browser by selecting the Metric Browser in the left navigation pane.
  2. Select the metric that you want to use for the condition.
  3. Right-click and select Copy Full Path.
  4. Save this value in a file from which you can copy it later.
The following example gets the metric path for the CPU %Busy metric for the Inventory Server tier. The CPU %Busy metric would be appropriate to use in a health rule that affects all the nodes in that tier.

Configure a Health Rule Condition That Evaluates a Custom Metric for Multiple Entities

  1. In the Overview panel of health rule wizard choose the health rule type for the kind of entity that you are monitoring.
  2. In the Affected Entities panel select the affected entity.
  3. When you create the condition component that uses the metric, in the Select Metric window choose Specify a Relative Path Metric.
  4. Crop the relative metric path that you saved from the metric browser by doing one of the following:
    • For all health rule types except Node Health-Hardware, JVM, CLR or Custom, crop the path to use the metric name along with the application name and category, for example, Custom Metrics|ECommerce Demo|Slow Query Calls|Call Count.
      metric selection
    • For Node Heath-Hardware, JVM, CLR and Custom health rule types, crop the path to use everything after the entity, for example, after the Node name. In the example below, the cropped path would look like this.
      CustomMetricNodeHealth
  5. Paste the cropped relative metric path in the relative metric path field of the Metric Selection window.
  6. Select the Exact match one wildcard * to one level of directory option to enforce a strict matching pattern in the relative metric path. For more information, see Enforce Strict Pattern Matching.
  7. Click Select Metric.