Monitoring & Collection/Scrape Collection
POSTMonitoringSince 1.0SynchronousAuth Required
AddScrapeTarget
Register a new Prometheus scrape target for metrics collection
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredDisplay name for the new scrape target
Example: node-exporter-host01
endpointStringRequiredHTTP endpoint URL to scrape
Example: http://192.168.1.10:9100
metricsPathStringRequiredMetrics path on the endpoint
Example: /metrics
scrapeIntervalIntegerRequiredScrape interval in seconds
Example: 15
labelsLinkedHashMapRequiredKey-value labels attached to this resource
Example: (nested object)
Responses
Endpoint
POST/api/v1/monitoring/scrape-targets
/api/v1/monitoring/scrape-targets
Request Example
curl -X POST '{host}/api/v1/monitoring/scrape-targets' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"node-exporter-host01","endpoint":"http://192.168.1.10:9100","metricsPath":"/metrics","scrapeInterval":15,"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.
