> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> MiddlewareをClickHouseに接続して、ClickHouseのメトリクスとログを監視・分析します。

# MiddlewareをClickHouseに接続する

export const PartnerBadge = () => {
  return <div className="PartnerBadge">
            <div className="PartnerBadgeIcon">
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <polyline points="12.5 9.5 10 12 6 11 2.5 8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="4.54 4.41 8 3.5 11.46 4.41" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M2.15,3.78 L0.55,6.95 A0.5,0.5 0,0,0 0.77,7.62 L2.5,8.5 L4.54,4.41 L2.82,3.55 A0.5,0.5 0,0,0 2.15,3.78 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M13.5,8.5 L15.23,7.62 A0.5,0.5 0,0,0 15.45,6.95 L13.85,3.78 A0.5,0.5 0,0,0 13.18,3.55 L11.46,4.41 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M11.5,4.5 L9,4.5 L6.15,7.27 A0.5,0.5 0,0,0 6.24,8.05 C7.33,8.74 8.81,8.72 10,7.5 L12.5,9.5 L13.5,8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="7.75 13.5 5.15 12.85 3.5 11.67" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                </svg>
            </div>
            パートナーインテグレーション
        </div>;
};

<PartnerBadge />

[Middleware](https://middleware.io/) は、インフラストラクチャ、ログ、アプリケーションのパフォーマンスを監視するためのクラウド オブザーバビリティプラットフォームです。

ClickHouse を Middleware に接続すると、より広範な監視ワークフローの一環として、データベースのテレメトリーを収集・可視化できます。

<div id="prerequisites">
  ## 前提条件
</div>

* 稼働中の ClickHouse サービス (Cloud またはセルフマネージド)
* ClickHouse のホスト、ポート、ユーザー名、パスワードへのアクセス
* Middleware アカウント

<div id="connect-clickhouse-in-middleware">
  ## Middleware で ClickHouse に接続する
</div>

1. Middleware アカウントにサインインします。
2. **Integrations** に移動し、**ClickHouse** を検索します。
3. ClickHouse 連携を選択し、次の接続情報を入力します。
   * ホスト
   * ポート
   * データベース
   * ユーザー名
   * パスワード
4. インテグレーションを保存し、接続テストを実行します。

<div id="verify-data-collection">
  ## データ収集を確認する
</div>

セットアップ後、ClickHouse のメトリクスおよび/またはログが Middleware のダッシュボードに表示されていることを確認してください。

接続の検証に失敗した場合は、次の点を確認してください。

* ClickHouse が Middleware からの受信接続を許可している
* SSL/TLS の設定が ClickHouse のエンドポイントと一致している
* 認証情報とデータベース権限が正しい

<div id="additional-resources">
  ## 関連リソース
</div>

* [Middleware の公式サイト](https://middleware.io/)
