Skip to main content

spa_recommendations

Creates, updates, deletes, gets or lists a spa_recommendations resource.

Overview

Namespa_recommendations
TypeResource
Iddatadog.infrastructure.spa_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource identifier for the recommendation. Optional in responses.
attributesobjectAttributes of the SPA Recommendation resource. Contains recommendations for both driver and executor components.
typestringJSON:API resource type for Spark Pod Autosizing recommendations. Identifies the Recommendation resource returned by SPA. (default: recommendation, example: recommendation)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sparecommendationsselectshard, service, regionRetrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and shard identifier, and SPA returns structured recommendations for driver and executor resources.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstring(default: datadoghq.com)
servicestringThe service name for a spark job
shardstringThe shard tag for a spark job, which differentiates jobs within the same service that have different resource needs

SELECT examples

Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and shard identifier, and SPA returns structured recommendations for driver and executor resources.

SELECT
id,
attributes,
type
FROM datadog.infrastructure.spa_recommendations
WHERE shard = '{{ shard }}' -- required
AND service = '{{ service }}' -- required
AND region = '{{ region }}' -- required
;