Lookup single agent configuration
https://{kibana_url}
- POST /api/apm/settings/agent-configuration/search
- POST /s/{space_id}/api/apm/settings/agent-configuration/search
Refer to Spaces for more information.
DEPRECATED: This endpoint is intended for internal use by APM agents to fetch their configuration and mark it as applied. Do not use for new integrations. It searches for a single agent configuration matching the given service, and optionally updates the applied_by_agent field when the provided etag matches the current configuration.
Request
-
errorstring -
If provided, the agent configuration will be marked as error and
applied_by_agentwill be set tofalse. This is useful for cases where the agent configuration was not applied successfully. -
etagstring -
If etags match then
applied_by_agentfield will be set totrue -
mark_as_applied_by_agentboolean -
markAsAppliedByAgent=truemeans "force setting it to true regardless of etag". This is needed for Jaeger agent that doesn't have etags -
servicerequired -
Service
-
environmentstring -
The environment of the service.
-
namestring -
The name of the service.
Responses
Successful response
-
_idstring -
Identifier
-
_indexstring -
Index
-
_scorenumber -
Score
-
_source -
Agent configuration
-
@timestampnumberrequired -
Timestamp
-
agent_namestring -
Agent name
-
applied_by_agentboolean -
Applied by agent
-
etagstringrequired -
etagis sent by the APM agent to indicate theetagof the last successfully applied configuration. If theetagmatches an existing configuration itsapplied_by_agentproperty will be set totrue. Every time a configuration is editedapplied_by_agentis reset tofalse. -
servicerequired -
Service
-
environmentstring -
The environment of the service.
-
namestring -
The name of the service.
-
settingsobjectrequired -
Agent configuration settings
Bad Request response
-
errorstring -
Error type
-
messagestring -
Error message
-
statusCodenumber -
Error status code
Unauthorized response
-
errorstring -
Error type
-
messagestring -
Error message
-
statusCodenumber -
Error status code
Not found response
-
errorstring -
Error type
-
messagestring -
Error message
-
statusCodenumber -
Error status code