The kind field cannot be changed after creation. To switch to a different kind, remove the target and create a new one.
Explore documentation
Update a collector metrics target
Updates an existing collector target. Only include the fields you want to change — omitted fields are preserved.
Changing any connection field (host, port, username, password, ssl_mode, tls, scheme, listen_ip, endpoint, api_key) resets the target's status to pending so the collector can re-verify the connection.
Headers
Bearer $TOKEN
Body parameters
The hostname or IP address of the target.
The port number.
The service or container name (process kinds only).
The IP address the process listens on (nginx, apache, kafka only).
The full scrape URL (prometheus only).
The username for authentication.
The password for authentication. Write-only — never returned in responses.
An API key for authentication (elasticsearch only). Write-only — never returned in responses.
The SSL mode for the connection (postgres only). Valid options are disable, require, and verify-ca.
The TLS mode for the connection (mysql only). Valid options are false, true, skip-verify, and preferred.
The connection scheme (elasticsearch only). Valid options are http and https.
Set to false to disable the target, or true to re-enable it.
The target was updated successfully.
Response body
Validation failed due to invalid parameters.
Response body
The target was not found, or belongs to a different collector or team.
Response body
Example: Change host
Example: Rotate credentials
Example: Disable a target