builtin:service-detection-v2-for-oneagent)
Enabling SDv2 for OneAgent will use the same attribute-based rules as OpenTelemetry for detecting services, endpoints, and failures. Refer to the SDv2 documentation for more information.
This is a Public Preview feature. You must complete the access request form and agree to preview terms before enabling.
Important
The services matching your conditions will get new metric keys, breaking existing API queries, dashboards, and service names. Custom, opaque, third party, database, and message queue services are detected differently in SDv2. Analysis views for service to database and message queue operations will be announced in upcoming releases.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:service-detection-v2-for-oneagent |
| CLOUD_APPLICATION_NAMESPACE - Kubernetes namespaceKUBERNETES_CLUSTER - Kubernetes cluster |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:service-detection-v2-for-oneagent |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:service-detection-v2-for-oneagent | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:service-detection-v2-for-oneagent |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Property | Type | Description | Required |
---|---|---|---|
Enable Service detection v2enableServiceDetectionV2 | boolean | - | required |
Matching conditioncondition | text | Limits the opt-in’s scope by filtering with DQL matcher conditions on a selected set of attributes. Service detection v2 is only applied if this condition matches. Allowed attributes: dt.agent.module.type, k8s.cluster.name, k8s.namespace.name, k8s.workload.name, dt.host_group.id If empty, the condition will always match. | required |