DNSクエリ入力

Telegraf DNS モニターには、この Splunk Observability Cloud インテグレーションを使用してください。メリット、インストール、設定、メトリクスを参照してください

注意: Smart Agent モニターは非推奨になります。DNS データを収集するには、OpenTelemetry Collector と「Telegraf DNS Query Input プラグイン」を使用します。手順については、「Telegraf Input プラグインと OpenTelemetry によりサービスを監視」を参照してください。

Splunk Distribution of OpenTelemetry Collector の Smart Agent レシーバを DNS Query Input モニタータイプ(Telegraf DNS Query プラグインの組み込み型)で使用して、DNS データを収集できます。

メリット

インテグレーションを設定すると、これらの機能にアクセスできるようになります:

インストール

設定

このインテグレーションを有効にするには、Collector構成に以下を追加します:

YAML
receivers:
  smartagent/dns:
    type: telegraf/dns
    ...  # Additional config
注: 必要な servers コンフィギュレーション設定が含まれていることを確認してください。詳細については、以下の「コンフィギュレーション設定」の項を参照してください。

次に、設定ファイルの service.pipelines.metrics.receivers セクションにモニターを追加します:

YAML
service:
 pipelines:
   metrics:
     receivers: [smartagent/dns]

コンフィギュレーション設定

次の表に、このインテグレーションの設定オプションを示します:

オプション

必須

タイプ

説明

domains

いいえ

list of strings

クエリ対象のドメインまたはサブドメイン。これが指定されていない場合は、

["."] で、RecordTypeNS に強制されます。

network

いいえ

string

Network はネットワークプロトコル名です。(デフォルト:udp

port

いいえ

integer

DNS サーバーのポート。(デフォルト:53

servers

はい

list of strings

クエリするサーバー

recordType

いいえ

string

クエリレコードタイプ(A、AAAA、CNAME、MX、NS、PTR、TXT、SOA、SPF、

SRV)。(デフォルト:NS

timeout

いいえ

int64

クエリタイムアウト。これには、

https://golang.org/pkg/time/#ParseDuration」が受け付ける期間文字列を使用します。(デフォルト:2s

メトリクス

このインテグレーションでは、以下のメトリクスを使用できます:

https://raw.githubusercontent.com/signalfx/splunk-otel-collector/main/internal/signalfx-agent/pkg/monitors/telegraf/monitors/dns/metadata.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.