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 を追加します:

YAML
# 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.

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

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

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

YAML
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

トラブルシューティング

If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.

Available to Splunk Observability Cloud customers

Available to prospective customers and free trial users

  • Ask a question and get answers through community support at Splunk Answers.

  • Join the Splunk community #observability Slack channel to communicate with customers, partners, and Splunk employees worldwide.