Monitoring & Collection/Scrape Collection
PUTMonitoringSince 1.0SynchronousAuth Required
UpdateScrapeTarget
Update endpoint, labels, or scrape interval of an existing scrape target
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredUUID of the scrape target to update
Body Fields
nameStringRequiredUpdated display name
Example: node-exporter-host01-updated
endpointStringRequiredUpdated endpoint URL
Example: http://192.168.1.10:9100
metricsPathStringRequiredUpdated metrics path
Example: /metrics
scrapeIntervalIntegerRequiredUpdated scrape interval in seconds
Example: 30
labelsLinkedHashMapRequiredKey-value labels attached to this resource
Example: (nested object)
Responses
Endpoint
PUT/api/v1/monitoring/scrape-targets/{uuid}
/api/v1/monitoring/scrape-targets/{uuid}
Request Example
curl -X PUT '{host}/api/v1/monitoring/scrape-targets/{uuid}' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"node-exporter-host01-updated","endpoint":"http://192.168.1.10:9100","metricsPath":"/metrics","scrapeInterval":30,"labels":"(nested object)","enabled":true,"tenantUuid":"tenant-001-xyz"}'
Response Example
200{
"uuid": "target-001-abc",
"name": "node-exporter-host01",
"endpoint": "http://192.168.1.10:9100",
"metricsPath": "/metrics",
"scrapeInterval": 15,
"labels": null,
"enabled": true,
"tenantUuid": "tenant-001-xyz"
}Change History
This API has no change history records yet.
