アラート値ウィジェット

アラート値ウィジェットは、シンプルアラート型メトリクスモニターのクエリの現在値を表示します。シンプルアラート型モニターのメトリクスクエリはグループ化されておらず、1 つの値を返します。モニターの挙動とアラートステータスの概要を取得するには、ダッシュボード内のアラート値ウィジェットを使用します。

ディスク容量、CPU 高使用率、チェックアウトエラー率の 3 種類のモニターステータスを示す 3 つのアラート値ウィジェット

セットアップ

CPU 高使用率に関するアラート値のセットアップページ

構成

  1. グラフ化する既存のメトリクスモニターを選択します。
  2. 表示に使用する書式を選択します。
    • 小数点以下の桁数
    • 単位
    • 配置
  3. グラフにタイトルをつけます。

API

このウィジェットは Dashboards API で使用できます。ウィジェット JSON スキーマ定義については、以下の表を参照してください。

Expand All

フィールド

種類

説明

alert_id [required]

string

ID of the alert to use in the widget.

description

string

The description of the widget.

precision

int64

Number of decimal to show. If not defined, will use the raw value.

text_align

enum

How to align the text on the widget. Allowed enum values: center,left,right

title

string

Title of the widget.

title_align

enum

How to align the text on the widget. Allowed enum values: center,left,right

title_size

string

Size of value in the widget.

type [required]

enum

Type of the alert value widget. Allowed enum values: alert_value

default: alert_value

unit

string

Unit to display with the value.

{
  "alert_id": "",
  "description": "string",
  "precision": "integer",
  "text_align": "string",
  "title": "string",
  "title_align": "string",
  "title_size": "string",
  "type": "alert_value",
  "unit": "string"
}

その他の参考資料

お役に立つドキュメント、リンクや記事: