Supported OS Linux Mac OS Windows

インテグレーションバージョン3.2.0

概要

外部 DNS サーバーからメトリクスをリアルタイムに取得して、Kubernetes の外部 DNS Prometheus アドオンで収集した DNS メトリクスを視覚化および監視できます。

外部 DNS の詳細については、Github リポジトリを参照してください。

セットアップ

インストール

外部 DNS チェックは Datadog Agent パッケージに含まれています。サーバーに追加でインストールする必要はありません。

構成

サーバーとポートを指定し、監視するマスターを設定するには、Agent のコンフィギュレーションディレクトリのルートにある conf.d/ フォルダーの external_dns.d/conf.yaml ファイルを編集します。使用可能なすべてのコンフィギュレーションオプションの詳細については、external_dns.d/conf.yaml のサンプル を参照してください。

サービスディスカバリーの使用

Kubernetes ワーカーノードごとに 1 つの Datadog Agent ポッドを使用している場合は、external-dns ポッドで以下のサンプルアノテーションを使用して、データを自動的に取得できます。

apiVersion: v1
kind: Pod
metadata:
  annotations:
    ad.datadoghq.com/external-dns.check_names: '["external_dns"]'
    ad.datadoghq.com/external-dns.init_configs: '[{}]'
    ad.datadoghq.com/external-dns.instances: '[{"prometheus_url":"http://%%host%%:7979/metrics", "tags":["externaldns-pod:%%host%%"]}]'
  • externaldns-pod タグは、対象の DNS ポッド IP を追跡します。他のタグは、オートディスカバリーを使用して情報をポーリングする Datadog Agent に関連します。
  • オートディスカバリーアノテーションはポッド上で行われます。デプロイするには、アノテーションをテンプレートの仕様のメタデータに追加します。

検証

Agent の status サブコマンドを実行し、Checks セクションで external_dns を探します。

データ収集

メトリクス

external_dns.controller.last_sync
(gauge)
Timestamp of last successful sync with the DNS provider
Shown as second
external_dns.registry.endpoints.total
(gauge)
Number of registry endpoints
Shown as resource
external_dns.registry.errors.total
(gauge)
Number of registry errors
Shown as error
external_dns.source.endpoints.total
(gauge)
Number of source endpoints
Shown as resource
external_dns.source.errors.total
(gauge)
Number of source errors
Shown as error

イベント

外部 DNS チェックには、イベントは含まれません。

サービスチェック

external_dns.prometheus.health
Returns CRITICAL if the check cannot access the metrics endpoint, otherwise returns OK.
Statuses: ok, critical

トラブルシューティング

ご不明な点は、Datadog のサポートチームまでお問合せください。