StyleBookで定義された仮想サーバーでアナリティクスを有効にし、アラームを設定する

最終公開日 : Oct 02, 2026
オペレーションコンストラクトを使用すると、NetScaler ADMアナリティクスが、StyleBookの一部である仮想サーバーコンポーネントによって処理されるトラフィックトランザクションのすべてまたは一部でAppFlowレコードを収集するように構成できます。このコンストラクトを使用して、仮想サーバーによって管理されるトラフィックに関する洞察を得るためにアラームを構成することもできます。
次の例は、StyleBookのオペレーションセクションを示しています。
operations:
  analytics:
   -
    name: lbvserver-ops
    properties:
    target: $components.basic-lb-comp.outputs.lbvserver
    filter: HTTP.REQ.URL.CONTAINS("catalog")
   -
    alarms:
     -
      name: lbvserver-alarm
      properties:
      target: $outputs.lbvserver
      email-profile: $parameters.emailprofile
      sms-profile: "NetScalerSMS"

    rules:
     -
      metric: "total_requests"
      operator: "greaterthan"
      value: 25
      period-unit: $parameters.period
     -
       metric: "total_bytes"
       operator: "lessthan"
       value: 60
       period-unit: "day"
The attributes in the analytics section are used to instruct NetScaler ADM analytics feature to collect appflow records on a virtual server component identified by the target property. You can also optionally specify a filter property that accepts a NetScaler policy expression to filter requests for which appflow records are collected on the virtual server.
When a configuration pack is created from this StyleBook, the NetScaler ADM analytics feature is configured to collect appflow records on the virtual servers that were specified when these are created in the process of creating a configuration pack.
アラームセクションの属性は、ターゲットプロパティによって識別される仮想サーバーでアラームを生成し、通知を送信するためのしきい値を設定するために使用されます。上記の例では、email-profileおよびsms-profileプロパティを使用して、通知の送信先を指定します。ルールセクションはしきい値を定義します。たとえば、仮想サーバーによって処理される合計リクエストが25を超え、ユーザーによって定義された期間の場合、アラームが設定され、通知が送信されます。「period-unit」は、アラームがトリガーされる頻度を指定します。これは、日、時間、または週の値を取ることができます。
メトリック値をしきい値と比較する際に、次の演算子を使用できます。
  • 「>」には「greaterthan」を使用します
  • 「<」には「lessthan」を使用します
  • 「greaterthanequal」は「>=」に対応する
  • 「lessthanequal」は「<=」に対応する
StyleBookは、メトリックにAPI名を使用し、NetScaler ADMアナリティクスGUIに表示される名前ではないことに注意してください。
構成パックの一部として作成された仮想サーバーで収集されたデータを表示および分析する方法については、NetScaler ADMアナリティクスドキュメントを参照してください。