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

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む4読むのに数分
  • Agent Client Collector は、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}}