This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Create or update configuration
editCreate or update configuration
editPUT /api/apm/settings/agent-configuration
-
service
-
(required, object) Service identifying the configuration to create or update.
Properties of
service
-
name
- (required, string) Name of service
-
environment
- (optional, string) Environment of service
-
-
settings
- (required) Key/value object with option name and option value.
-
agent_name
- (optional) The agent name is used by the UI to determine which settings to display.
PUT /api/apm/settings/agent-configuration { "service": { "name": "frontend", "environment": "production" }, "settings": { "transaction_sample_rate": "0.4", "capture_body": "off", "transaction_max_spans": "500" }, "agent_name": "nodejs" }