このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
Datadogプラグインは以下のプロトコルに対応しています:
grpc
, grpcs
, http
, https
, tcp
, tls
, tls_passthrough
, udp
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
string required
プラグイン名。この場合は
datadog
。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
name
です。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
plugin
です。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
string
プラグインが対象とするサービス名または ID。最上位の
/plugins
エンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/plugins
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするルート名または ID。最上位の
/plugins
エンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/plugins
を使用する場合は必要ありません。 -
string
プラグインがターゲットとするコンシューマーの名前または ID。 最上位の
/plugins
エンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/plugins
を使用する場合は必要ありません。 -
boolean default:
true
このプラグインが適用されるかどうか。
-
record required
-
string default:
localhost
The IP address or hostname to send data to.
-
integer default:
8125
between:0
65535
The port to send data to on the upstream server.
-
string default:
kong
String to be attached as a prefix to a metric’s name.
-
string default:
name
String to be attached as the name of the service.
-
string default:
status
String to be attached as the tag of the HTTP status.
-
string default:
consumer
String to be attached as tag of the consumer.
-
array of type
record
required default:{"tags"=>["app:kong"], "stat_type"=>"counter", "sample_rate"=>1, "name"=>"request_count", "consumer_identifier"=>"custom_id"}, {"consumer_identifier"=>"custom_id", "tags"=>["app:kong"], "stat_type"=>"timer", "name"=>"latency"}, {"consumer_identifier"=>"custom_id", "tags"=>["app:kong"], "stat_type"=>"timer", "name"=>"request_size"}, {"consumer_identifier"=>"custom_id", "tags"=>["app:kong"], "stat_type"=>"timer", "name"=>"response_size"}, {"consumer_identifier"=>"custom_id", "tags"=>["app:kong"], "stat_type"=>"timer", "name"=>"upstream_latency"}, {"consumer_identifier"=>"custom_id", "tags"=>["app:kong"], "stat_type"=>"timer", "name"=>"kong_latency"}
List of metrics to be logged. Available values are described at Metrics. By default, the plugin logs all available metrics. If you specify an array of metrics, only the listed metrics are logged.
-
string required Must be one of:
kong_latency
,latency
,request_count
,request_size
,response_size
,upstream_latency
-
string required Must be one of:
counter
,gauge
,histogram
,meter
,set
,timer
,distribution
-
array of type
string
-
number between:
0
1
-
string Must be one of:
consumer_id
,custom_id
,username
-
-