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 resets the target's status to pending so the collector can re-verify the connection. Connection fields are host, port, username, password, ssl_mode, tls, scheme, listen_ip, endpoint, api_key.
Headers
Bearer $TOKEN
Body parameters
The hostname or IP address of the target.
The port number.
The service or container name.
The IP address the process listens on. Only for nginx, apache, kafka.
The full scrape URL. Only for prometheus.
The username for authentication.
The password for authentication. Write-only - never returned in responses.
An API key for authentication. Write-only - never returned in responses. Only for elasticsearch.
The SSL mode for the connection. Valid options are disable, require, and verify-ca. Only for postgres.
The TLS mode for the connection. Valid options are false, true, skip-verify, and preferred. Only for mysql.
The connection scheme. Valid options are http and https. Only for elasticsearch.
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
Examples