Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Solutions and use cases/
  3. Observability solution/
  4. Applications and services/
  5. Application performance monitoring (APM)/
  6. APM APIs/
  7. APM Server API

Elastic APM agent configuration API

APM Server exposes API endpoints that allow Elastic APM agents to query the APM Server for configuration changes. More information on this feature is available inAPM agent configuration in Kibana.

NameEndpoint
Agent configuration intake/config/v1/agents
RUM configuration intake/config/v1/rum/agents

The Agent configuration endpoints accepts bothHTTP GET andHTTP POST requests. If anAPI keys orSecret token is configured, requests to this endpoint must be authenticated.

service.name is a required query string parameter.

http(s)://{hostname}:{port}/config/v1/agents?service.name=SERVICE_NAME

Encode parameters as a JSON object in the body.service.name is a required parameter.

http(s)://{hostname}:{port}/config/v1/agents{  "service": {      "name": "test-service",      "environment": "all"  },  "CAPTURE_BODY": "off"}
  • Successful -200
  • APM Server is configured to fetch agent configuration from Elasticsearch but the configuration is invalid -403
  • APM Server is starting up or Elasticsearch is unreachable -503

Example Agent configurationGET request including the service name "test-service":

curl -i http://127.0.0.1:8200/config/v1/agents?service.name=test-service

Example Agent configurationPOST request including the service name "test-service":

curl -X POST http://127.0.0.1:8200/config/v1/agents \  -H "Authorization: Bearer secret_token" \  -H 'content-type: application/json' \  -d '{"service": {"name": "test-service"}}'
HTTP/1.1 200 OKCache-Control: max-age=30, must-revalidateContent-Type: application/jsonEtag: "7b23d63c448a863fa"Date: Mon, 24 Feb 2020 20:53:07 GMTContent-Length: 98{    "capture_body": "off",    "transaction_max_spans": "500",    "transaction_sample_rate": "0.3"}

[8]ページ先頭

©2009-2026 Movatter.jp