AlloyDB Omni Kubernetes オペレーターは、データベースの健全性とパフォーマンスをモニタリングするための指標を提供します。これらの指標は、Prometheus によるスクレイピングに適した形式で公開されます。
ラベル
AlloyDB Omni Kubernetes オペレーターは、次のタイプのラベルを公開します。
リソースラベル
AlloyDB Omni Kubernetes オペレーターは、指標が属するデータベース コンテナを一意に識別する次のリソースラベルを公開します。これらのリソースラベルは、データベース コンテナを所有する Kubernetes リソースの名前と一致します。
ラベルキー | ラベルの値 |
---|---|
dbnamespace | dbcluster CR の Namespace |
dbcluster | dbcluster CR の名前 |
dbinstance | dbinstance CR の名前。ReadPool タイプの dbinstance のみがサポートされています。データベース コンテナが ReadPool dbinstance に属していない場合、この値は n/a です。 |
dbnode | インスタンス CR の名前。すべてのインスタンス CR には、データベース コンテナへの 1 対 1 のマッピングがあります。 |
システム メタデータ ラベル
システム メタデータラベルは、DB コンテナの roles
が変更されると動的に変更されます。たとえば、dbcluster がセカンダリからプライマリに昇格すると、dbcluster_type は Secondary
から Primary
に変更されます。
ラベルキー | ラベルの値 |
---|---|
dbcluster_type | dbcluster CR の障害復旧(DR)ロール。Primary または Secondary のいずれか |
dbinstance_type | dbinstance CR のタイプ。コンテナが ReadPool dbinstance に属している場合、この値は ReadPool です。それ以外の場合は、この値は n/a です。 |
dbnode_type | dbnode の HA ロール(Primary または Standby ) |
指標ラベル
各指標の具体的なラベルは次の表に示します。たとえば、database
は、AlloyDB Omni データベース コンテナ内にホストされている Postgres データベースの名前を意味します。
指標
AlloyDB Omni Kubernetes オペレーターは、次の指標を公開します。指標リストには、指標ラベルのみが表示されます。すべての指標は alloydb_omni
で始まります。指標タイプの詳細については、指標タイプをご覧ください。
データベース コンテナレベルの指標
データベース コンテナレベルの指標は、AlloyDB Omni データベース コンテナごとに収集されます。各データベース コンテナレベルの指標には、リソースとシステムのメタデータラベルがあります。
名前 | 説明 | ラベル | ユニット | タイプ |
---|---|---|---|---|
alloydb_omni_database_postgresql_backends | AlloyDB Omni インスタンスへのアクティブな接続とアイドル状態の接続の数。 | ゲージ | ||
alloydb_omni_database_postgresql_max_connections | Postgres max_connections ランタイム パラメータの現在の値。 | ゲージ | ||
alloydb_omni_database_postgresql_up | Postgres メインプロセスが実行中かどうか。実行中の場合は 1、停止中の場合は 0。 | ゲージ | ||
alloydb_omni_database_postgresql_uptime_second | Postgres メインプロセスの開始からの経過時間。 | 秒 | ゲージ | |
alloydb_omni_database_postgresql_vacuum_oldest_transaction_age | バキューム オペレーションをブロックしている commit されていない最も古いトランザクションの現在の経過時間。最長トランザクション以降に開始されたトランザクションの数で測定されます。 | type: [running、prepared、replication_slot、replica] のいずれか | ゲージ | |
alloydb_omni_database_postgresql_vacuum_transaction_id_utilization_percentage | 消費されたトランザクション ID スペースの割合。1 は 100% を意味します。 | ゲージ | ||
alloydb_omni_instance_postgresql_backends_by_state | 現在の接続数。 | state: 接続の状態([idle、active、idle_in_transaction、idle_in_transaction_aborted、disabled、fastpath_function_call] のいずれか) | ゲージ | |
alloydb_omni_instance_postgresql_backends_for_top_applications | アプリケーションあたりの現在の接続数。 | application_name: アプリケーションの名前 | ゲージ | |
alloydb_omni_instance_postgresql_blks_hit_count_total | Postgres がリクエストされたブロックをバッファ キャッシュで検出した回数の合計。 | カウンタ | ||
alloydb_omni_instance_postgresql_blks_read_count_total | Postgres バッファ キャッシュにないブロックのうち、Postgres によって読み取られたブロックの合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_committed_transactions_count_total | commit されたトランザクションの合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_deadlock_count_total | 検出されたデッドロックの数。 | カウンタ | ||
alloydb_omni_instance_postgresql_new_connections_count_total | 新しい接続の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_rolledback_transactions_count_total | ロールバックされたトランザクションの合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_temp_bytes_written_count_total | クエリによって一時ファイルに書き込まれたデータの合計量。 | バイト | カウンタ | |
alloydb_omni_instance_postgresql_temp_files_written_count_total | 内部アルゴリズムの実行中にデータの書き込みに使用された一時ファイルの合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_tuples_deleted_count_total | 削除された行の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_tuples_fetched_count_total | フェッチされた行の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_tuples_inserted_count_total | 挿入された行の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_tuples_returned_count_total | 返された行の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_tuples_updated_count_total | 更新された行の合計数。 | カウンタ | ||
alloydb_omni_instance_postgresql_wait_count_total | 待機イベントの合計待機カウント。 |
|
カウンタ | |
alloydb_omni_instance_postgresql_wait_time_second_total | 待機イベントで経過した合計時間。 |
|
秒 | カウンタ |
alloydb_omni_instance_postgresql_replication_flush_lag_ms | ローカルで最近の WAL をフラッシュしてから、レプリカ サーバーが WAL を書き込み、フラッシュした(ただしまだ適用していない)ことを通知するまでの時間。 |
|
ms | ゲージ |
alloydb_omni_instance_postgresql_replication_replay_lag_ms | ローカルで最近の WAL をフラッシュしてから、レプリカ サーバーが WAL を書き込み、フラッシュして適用したことを通知するまでの経過時間。 |
|
ms | ゲージ |
alloydb_omni_instance_postgresql_replication_state |
プライマリに接続されている各レプリカの状態。値は常に 1 です。 |
|
ゲージ | |
alloydb_omni_instance_postgresql_replication_write_lag_ms | ローカルで最近の WAL をフラッシュしてから、レプリカ サーバーが WAL を書き込んだ(ただし、まだフラッシュまたは適用していない)ことを通知するまでの経過時間。 |
|
ms | ゲージ |
alloydb_omni_memory_available_byte | 割り当てに使用できるメモリ量の推定値。 | バイト | ゲージ | |
alloydb_omni_memory_limit_byte |
データベース クラスタ マニフェスト ファイルの spec 部分の primarySpec セクションで指定されているデータベース コンテナのメモリ上限。 |
バイト | ゲージ | |
alloydb_omni_memory_used_byte | 使用済みのデータベース コンテナのメモリのうち、解放できないメモリの推定値。 | バイト | ゲージ | |
alloydb_omni_node_cpu_mcpu | 割り当てられた mCPU の数。1000 mCPU = 1 CPU | mCPU | ゲージ | |
alloydb_omni_node_cpu_usage_second_total | 使用された合計 CPU 秒数。 | 秒 | カウンタ | |
alloydb_omni_node_network_received_bytes_count_total | AlloyDB Omni Pod のネットワーク受信バイト数。 | バイト | カウンタ | |
alloydb_omni_node_network_sent_bytes_count_total | AlloyDB Omni Pod のネットワーク送信バイト数。 | バイト | カウンタ | |
alloydb_omni_node_storage_limit_per_disk_byte | ストレージの上限(バイト単位)。 | disk: ディスクの名前 | バイト | ゲージ |
alloydb_omni_node_storage_read_bytes_count_total | ディスクから読み取られたバイト数。 | バイト | カウンタ | |
alloydb_omni_node_storage_read_ops_count_total | ディスク読み取り IO オペレーションの数。 | カウンタ | ||
alloydb_omni_node_storage_usage_per_disk_byte | ディスクあたりの使用ストレージ(バイト単位)。 | disk: ディスクの名前 | バイト | ゲージ |
alloydb_omni_node_storage_write_bytes_count_total | ディスクに書き込まれたバイト数。 | バイト | カウンタ | |
alloydb_omni_node_storage_write_ops_count_total | ディスク書き込み IO オペレーションの数。 | カウンタ |
データベース レベルの指標
これらの指標は、Postgres データベース レベルごとに AlloyDB Omni データベース コンテナごとに収集されます。1 つのデータベース コンテナに複数の Postgres データベースを作成できます。これらの指標にはすべて、リソース、システム メタデータ、および「データベース」のラベルがあります。データベースラベルは、指標が属する Postgres データベースの名前です。
名前 | 説明 | ラベル | ユニット | タイプ |
---|---|---|---|---|
alloydb_omni_database_postgresql_backends_for_top_databases | データベースあたりの現在の接続数。 | ゲージ | ||
alloydb_omni_database_postgresql_blks_hit_for_top_databases_count_total | Postgres がデータベースごとにバッファ キャッシュでリクエストされたブロックを見つけた合計回数。 | カウンタ | ||
alloydb_omni_database_postgresql_blks_read_for_top_databases_count_total | Postgres によって読み取られたブロックの合計数(Postgres バッファ キャッシュになかったもの)。データベースごとに表示されます。 | カウンタ | ||
alloydb_omni_database_postgresql_committed_transactions_for_top_databases_count_total | データベースごとに commit されたトランザクションの合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_deadlock_for_top_databases_count_total | データベースあたりのデッドロックの数。 | カウンタ | ||
alloydb_omni_database_postgresql_insights_aggregate_execution_time_us_total | すべてのクエリの合計実行時間。 |
|
us | カウンタ |
alloydb_omni_database_postgresql_insights_aggregate_io_time_us_total | すべてのクエリで IO に費やした合計時間。 |
|
us | カウンタ |
alloydb_omni_database_postgresql_new_connections_for_top_databases_count_total | データベースあたりの新しい接続数。 | カウンタ | ||
alloydb_omni_database_postgresql_rolledback_transactions_for_top_databases_count_total | データベースごとにロールバックされたトランザクションの合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_size_byte | データベースのサイズ。 | バイト | ゲージ | |
alloydb_omni_database_postgresql_statements_executed_count_total | データベースごとに実行されたステートメントの合計数。 | operation_type: オペレーションの名前([SELECT、UPDATE、INSERT、DELETE、MERGE、UTILITY、NOTHING、UNKNOWN] のいずれか) | カウンタ | |
alloydb_omni_database_postgresql_temp_bytes_written_for_top_databases_count_total | データベースあたりのクエリによって一時ファイルに書き込まれたデータの合計量。 | バイト | カウンタ | |
alloydb_omni_database_postgresql_temp_files_written_for_top_databases_count_total | データベースあたりの内部アルゴリズムの実行中にデータの書き込みに使用された一時ファイルの合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_tuples | データベース内の行数。 | state: [live、dead] のいずれか | ゲージ | |
alloydb_omni_database_postgresql_tuples_deleted_for_top_databases_count_total | データベースごとに削除された行の合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_tuples_fetched_for_top_databases_count_total | データベースごとに取得された行の合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_tuples_inserted_for_top_databases_count_total | データベースごとに挿入された行の合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_tuples_returned_for_top_databases_count_total | データベースごとに返される行の合計数。 | カウンタ | ||
alloydb_omni_database_postgresql_tuples_updated_for_top_databases_count_total | データベースごとに更新された行の合計数。 | カウンタ |
指標収集指標
これらの指標は、各指標収集サイクルのステータスを示します。ラベルで説明されているリソースラベルが含まれています。
名前 | 説明 | ユニット | タイプ |
---|---|---|---|
alloydb_omni_monitor_collect_ms | 指標の収集に費やされたミリ秒数。 | ms | ゲージ |
alloydb_omni_monitor_error_count | このサイクルで指標の収集中に発生したエラーの数。 | ゲージ | |
alloydb_omni_monitor_metric_count | このサイクルで正常に収集された指標の数。 | ゲージ |
Prometheus 指標ハンドラの指標
これらの指標は、収集サイクルごとに Prometheus によって自動的に生成されます。
名前 | 説明 | 原因 | タイプ |
---|---|---|---|
promhttp_metric_handler_errors_total | promhttp 指標ハンドラで発生した内部エラーの総数。 | エラーの原因 | カウンタ |
次のステップ
- 指標を使用してモニタリングする方法については、AlloyDB Omni をモニタリングするをご覧ください。