InstrumentationRules によるデフォルトのプロパティのオーバーライド
クラスターエージェントは、InstrumentationRule の namespaceRegex、matchString、および labelMatch プロパティを組み合わせて使用し、自動インストルメンテーションの名前空間内にある Deployments、DeploymentConfigs、および StatefulSets をターゲットにします。最初に一致した InstrumentationRule が使用されます。一致するルールが見つからない場合は、デフォルトのプロパティを使用して自動インストルメンテーションを適用するかどうかが決定されます。
-
nsToInstrumentRegex -
defaultInstrumentationLabelMatch -
defaultInstrumentMatchString
InstrumentationRule -matchString "<string>" がクラスタエージェント構成ファイルに追加されています。instrumentationRules:
- matchString: "<string>"展開名がこの文字列と一致する場合、一致する instrumentationRule にある残りのプロパティが適用され、設定されているデフォルトのプロパティが上書きされます。文字列が一致しない場合、クラスタエージェントは nsToInstrumentRegex、defaultInstrumentationLabelMatch、および defaultInstrumentMatchString プロパティをデフォルト値に設定してインストルメンテーション ルールを決定します。