MongoDB Atlasレシーバー

MongoDB Atlas レシーバーは、Splunk Distribution of OpenTelemetry Collector がそのモニタリング API を通して MongoDB Atlas からメトリクスを収集することを可能にします。

MongoDB Atlas レシーバーは、Splunk Distribution of OpenTelemetry Collector が、そのモニタリング API を通じて MongoDB Atlas からメトリクスとログを収集できるようにします。サポートされるパイプラインタイプは、metricslogs です。詳細については「パイプラインでデータを処理する」を参照してください。

データベース・メトリクスは、プロジェクトとデータベースの属性、例えば project_namedatabase_name によってディメンション化されます。

注: 非推奨のSignalFx Smart Agent mongodb-atlas モニタータイプの代わりにMongoDB Atlasレシーバーを使用します。

はじめに

以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:

  1. Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:

  2. 次のセクションで説明するように、MongoDB Atlas レシーバーを設定します。

  3. Collector を再起動します。

サンプル構成

MongoDB Atlas のレシーバーを有効にするには、次の例のように、設定ファイルの receivers セクションに mongodbatlas を追加します:

# In this example, both values are pulled from the environment.

receivers:
  mongodbatlas:
    public_key: ${MONGODB_ATLAS_PUBLIC_KEY}
    # You can obtain the public key from the API Keys tab of the MongoDB Atlas Project Access Manager.
    # This value is required.
    private_key: ${MONGODB_ATLAS_PRIVATE_KEY}
    # You can obtain the private key from the API Keys tab of the MongoDB Atlas Project Access Manager.
    # This value is required.

次の例は、ログを収集する方法を示しています:

receivers:
    mongodbatlas:
     logs:
       enabled: true
       projects:
         - name: "Your MongoDB project"
           collect_audit_logs: true
           collect_host_logs: true

設定を完了するには、構成ファイルの service セクションの metrics パイプラインまたは logs パイプラインにレシーバーを含めます。例:

service:
  pipelines:
    metrics:
      receivers: [mongodbatlas]
   logs:
      receivers: [mongodbatlas]
注: 監査ログとホストログにアクセスするには、APIキーがProject Data Access Read Only以上のロールを持っている必要があります。

設定

次の表にMongoDB Atlasレシーバーの設定オプションを示します:

同梱

https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/mongodbatlas.yaml

メトリクス

以下のメトリクス、リソース属性、および属性が使用できます。

同梱

https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/mongodbatlasreceiver.yaml

特定のメトリクスをアクティブまたは非アクティブにする

各メトリクスの metrics セクションの enabled フィールドを設定することで、特定のメトリクスをアクティブまたは非アクティブにできます。例:

receivers:
  samplereceiver:
    metrics:
      metric-one:
        enabled: true
      metric-two:
        enabled: false

以下は、アクティブ化されたメトリクスを持つホスト・メトリクス・レシーバーの構成例です:

receivers:
  hostmetrics:
    scrapers:
      process:
        metrics:
          process.cpu.utilization:
            enabled: true
注: 非アクティブ化されたメトリックは Splunk Observability Cloud に送信されません。
請求
  • MTS ベースのサブスクリプションの場合、すべてのメトリックがメトリックの使用にカウントされます。

  • ホストベースのプランを使用している場合、このドキュメントでアクティブ(アクティブ:はい)としてリストされているメトリックはデフォルトと見なされ、無料で含まれています。

詳細については、「Infrastructure Monitoringのサブスクリプション使用状況(ホストとメトリクスのプラン)」を参照してください。

トラブルシューティング

__ ___ ___ _ ______ _____________ _____ ________ ___ ___ ___ ____ __ ___ ____ ____ __ ______ _____________ ______ ___ ___ ___ ____ __ ___ _________ _____

_________ __ ______ _____________ _____ _________

_________ __ ___________ _________ ___ ____ _____ _____

  • ___ _ ________ ___ ___ _______ _______ _________ _______ __ ______ ________

  • ____ ___ ______ ______________ ____ _____ _____ _______ __ ___________ ____ __________ _________ ___ ______ _________ __________ __ _____ ___ ____ _______