Docs » Splunk Observability Cloud でサポートされているインテグレーション » Collectorコンポーネント: レシーバー » Microsoft SQL server receiver

Microsoft SQL server receiver 🔗

The Microsoft SQL Server receiver queries and retrieves metrics from Microsoft SQL Server instances. The supported pipeline type is metrics. See パイプラインでデータを処理する for more information.

The receiver works by either using the Windows Performance Counters, or by directly connecting to the instance and querying it. Windows Performance Counters are only available when running on Windows.

注釈

Make sure to run the Collector as an administrator in order to collect all performance counters for metrics.

はじめに 🔗

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

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

  1. Configure the MSSQL Server receiver as described in the next section.

  2. Collector を再起動します。

サンプル構成 🔗

To activate the receiver, add sqlserver to the receivers section of your configuration file:

receivers:
    sqlserver:
      collection_interval: 10s
    sqlserver/1:
      collection_interval: 5s
      username: sa
      password: securepassword
      server: 0.0.0.0
      port: 1433

次に、設定ファイルの service セクションの metrics パイプラインに、レシーバーを含めます:

service:
  pipelines:
    metrics:
      receivers:
        - sqlserver

Configure a named instance on Windows 🔗

If you’re using a named instance on Windows, you need to specify a computer and instance name, for example:

receivers:
  sqlserver:
    collection_interval: 10s
    computer_name: CustomServer
    instance_name: CustomInstance
    resource_attributes:
      sqlserver.computer.name:
        enabled: true
      sqlserver.instance.name:
        enabled: true

高度な設定 🔗

以下の設定はオプションです:

  • collection_interval. 10s by default. The interval at which the receiver emits metrics.

  • instance_name. Optional. The instance name identifies the specific SQL Server instance to monitor. If unspecified, metrics are scraped from all instances. If configured, you must also set computer_name when running on Windows.

These are the optional direct connection options:

  • username. The username used to connect to the SQL Server instance.

  • password. The password used to connect to the SQL Server instance.

  • server. IP address or hostname of the SQL Server instance to connect to.

  • port. Port of the SQL Server instance to connect to.

The following are Windows-specific optional options:

  • computer_name. The computer name identifies the SQL Server name or IP address of the computer being monitored. If specified, instance_name is also required. This option is ignored in non-Windows environments.

設定 🔗

The following table shows the configuration options for the Microsoft SQL server receiver:

メトリクス 🔗

以下のメトリクス、リソース属性、および属性が利用可能です。

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

各メトリクスの 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 に送信されません。

トラブルシューティング 🔗

Splunk Observability Cloudをご利用のお客様で、Splunk Observability Cloudでデータを確認できない場合は、以下の方法でサポートを受けることができます。

Splunk Observability Cloudをご利用のお客様

見込み客および無料トライアルユーザー様

  • Splunk Answers のコミュニティサポートで質問し、回答を得る

  • Splunk #observability ユーザーグループの Slack チャンネルに参加して、世界中の顧客、パートナー、Splunk 社員とのコミュニケーションを図る。参加するには、Get Started with Splunk Community マニュアルの チャットグループ を参照してください。

This page was last updated on 2024年05月29日.