概要
このインテグレーションは、Mergify で設定した各リポジトリのマージ キューの長さを監視し、Mergify のグローバルな稼働状況を追跡します。メトリクスを Datadog アカウントに送信することで、異常検知モニターを設定し、マージ キューのパフォーマンスを分析できます。Datadog インテグレーションを利用することで、Mergify サービスの稼働状況を把握し、開発ワークフローを最適化できます。
セットアップ
- Datadog で: Integrations に移動し、Mergify タイルを選択して Install Integration をクリックします。
- Connect Accounts をクリックして、このインテグレーションの認可を開始します。Mergify ダッシュボードにリダイレクトされます。
- Mergify dashboard で: ログイン後、Datadog Integration を設定したい組織を選択し、Connect the integration をクリックします。
これで Mergify の統計が Datadog に表示されるようになります。
アンインストール
- Mergify ダッシュボードに移動してログインし、Integrations に進みます。
- Datadog タイルで Disconnect ボタンをクリックします。
このインテグレーションをアンインストールすると、それ以前に与えられた認可は全て取り消されます。
注: Datadog の API Keys ページでインテグレーション名を検索し、本インテグレーションに関連するすべての API キーが無効化されていることを確認してください。
収集データ
メトリクス
| |
---|
mergify.merge_queue_length (gauge) | Merge queue length |
mergify.time_to_merge.median (gauge) | Median time to merge Shown as second |
mergify.time_to_merge.mean (gauge) | Mean time to merge Shown as second |
mergify.queue_checks_outcome (gauge) | Number of outcomes for the queue operation. Each outcome type can be found in the tag ‘outcome_type’ |
mergify.queue_freeze.duration (gauge) | Merge queue freeze duration Shown as second |
For the metric mergify.queue_checks_outcome
, the available outcome_type
tags are :
PR_DEQUEUED
: The number of PRs that have been manually removed from the queuePR_AHEAD_DEQUEUED
: The number of PRs that have been removed from the queue because a PR ahead of it was removed from the queuePR_AHEAD_FAILED_TO_MERGE
: The number of PRs that have been removed from the queue because a PR ahead of it failed to mergePR_WITH_HIGHER_PRIORITY_QUEUED
: The number of PRs that have been removed from the queue because a PR with higher priority has been queuedPR_QUEUED_TWICE
: The number of PRs that have been removed from the queue because they have been queued twiceSPECULATIVE_CHECK_NUMBER_REDUCED
: The number of PRs that have been removed from the queue because the number of speculative checks in the config was changedCHECKS_TIMEOUT
: The number of PRs that have been removed from the queue because the speculative checks have timed outCHECKS_FAILED
: The number of PRs that have been removed from the queue because the speculative checks have failedQUEUE_RULE_MISSING
: The number of PRs that have been removed from the queue because the queue rule that was used to queue the PR has been removed from the configUNEXPECTED_QUEUE_CHANGE
: The number of PRs that have been removed from the queue because a user made an operation on the queued pull requestPR_FROZEN_NO_CASCADING
: The number of PRs that have been removed from the queue because they were frozen by a freeze with no cascading effectTARGET_BRANCH_CHANGED
: The number of PRs that have been removed from the queue because the PR’s target branch was changedTARGET_BRANCH_MISSING
: The number of PRs that have been removed from the queue because the PR’s target branch does not exist anymorePR_UNEXPECTEDLY_FAILED_TO_MERGE
: The number of PRs that have been removed from the queue because they unexpectedly failed to get mergedBATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS
: The number of PRs that have been removed from the queue because the maximum batch failure resolution attempts have been reached
メトリクス mergify.queue_checks_outcome
で利用可能な outcome_type
タグは次のとおりです:
PR_DEQUEUED
: 手動でキューから除外された PR の数PR_AHEAD_DEQUEUED
: キュー内で先行していた PR が除外されたために除外された PR の数PR_AHEAD_FAILED_TO_MERGE
: 先行していた PR のマージ失敗により除外された PR の数PR_WITH_HIGHER_PRIORITY_QUEUED
: より高い優先度の PR がキューに追加されたために除外された PR の数PR_QUEUED_TWICE
: 重複して 2 回キューに追加されたために除外された PR の数SPECULATIVE_CHECK_NUMBER_REDUCED
: 設定のスペキュレーティブ チェック数が変更されたために除外された PR の数CHECKS_TIMEOUT
: スペキュレーティブ チェックがタイムアウトしたために除外された PR の数CHECKS_FAILED
: スペキュレーティブ チェックが失敗したために除外された PR の数QUEUE_RULE_MISSING
: PR をキューに追加したキュー ルールが設定から削除されたために除外された PR の数UNEXPECTED_QUEUE_CHANGE
: ユーザーがキュー内のプル リクエストを操作したために除外された PR の数PR_FROZEN_NO_CASCADING
: カスケード効果のないフリーズによって凍結されたために除外された PR の数TARGET_BRANCH_CHANGED
: PR のターゲット ブランチが変更されたために除外された PR の数TARGET_BRANCH_MISSING
: PR のターゲット ブランチが存在しなくなったために除外された PR の数PR_UNEXPECTEDLY_FAILED_TO_MERGE
: 予期せずマージに失敗したために除外された PR の数BATCH_MAX_FAILURE_RESOLUTION_ATTEMPTS
: バッチの失敗解決試行回数が上限に達したために除外された PR の数
サービスチェック
Mergify にはサービスチェックが含まれていません。
イベント
Mergify には、イベントは含まれません。
サポート
ご不明な点は、Mergify サポートまでお問い合わせください。