PostgreSQL のデフォルトチェックとポリシー

  • リリースバージョン: Xanadu
  • 更新日 2024年08月01日
  • 所要時間:4分
  • エージェントクライアントコレクター は、PostgreSQL ヘルスモニタリングのための以下のデフォルトのチェックとポリシーを提供します。

    表 : 1. PostgreSQL チェック
    タイプ チェック 説明 コマンド
    イベント postgresql.check-alive PostgreSQL データベースのステータスに関するアラートをトリガーします。 commonchecks check-postgres-alive -d {{.labels.params_database}} -p {{.labels.params_port}} -H {{.labels.params_host}}
    イベント postgresql.check-connections 設定されたしきい値に基づいて、PostgreSQL データベースの合計接続負荷に関するアラートをトリガーします。 commonchecks check-postgres-connections -d {{.labels.params_database}} -c {{.labels.params_critical}} -p {{.labels.params_port}} -H {{.labels.params_host}} -w {{.labels.params_warning}} -a {{.labels.params_use_percentage}}
    メトリクス postgresql.metric-active-connections PostgreSQL データベースのアクティブな接続の合計に関するメトリクスを提供します。 commonchecks metric-postgres-connections -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}}
    メトリクス postgresql.metric-dbsize サーバーの各 PostgreSQL データベースの合計サイズに関するメトリクスを提供します。 commonchecks metric-postgres-dbsize -d {{.labels.params_database}} -H {{.labels.params_host}} -p {{.labels.params_port}}
    メトリクス postgresql.metric-locks PostgreSQL データベース/テーブルのロックに関するメトリクスを提供します。 commonchecks metric-postgres-locks -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}}
    メトリクス postgresql.metric-relation-size サーバーのデータベーステーブルサイズに関するメトリクスを提供します。 commonchecks metric-postgres-relation-size -p {{.labels.params_port}} -l {{.labels.params_limit}} -H {{.labels.params_host}} -d {{.labels.params_database}}
    メトリクス postgresql.metric-statsbgwriter バッファー割り当てに関連するメトリクスを提供します。 commonchecks metric-postgres-statsbgwriter -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}}
    メトリクス postgresql.metric-statsdb コミット/ロールバック/タプルトランザクション /デッドロック/クエリの競合数に関連するメトリクスを提供します。 commonchecks metric-postgres-statsdb -d {{.labels.params_database}} -H {{.labels.params_host}} -p {{.labels.params_port}}
    メトリクス postgresql.metric-statsio インデックス読み取り/テーブルインデックスへの合計ヒットに関連するテーブルベースのメトリクスを提供します。 commonchecks metric-postgres-statsio -s {{.labels.params_scope}} -H {{.labels.params_host}} -p {{.labels.params_port}} -d {{.labels.params_database}}
    メトリクス postgresql.metric-statstable CRUD 操作に関連するメトリクスを提供します。 commonchecks metric-postgres-statstable -d {{.labels.params_database}} -H {{.labels.params_host}} -s {{.labels.params_scope}} -p {{.labels.params_port}}