AddScrapeTarget
Register a new Prometheus scrape target for metrics collection
POST
/api/v1/monitoring/scrape-targetsOperation ID
AddScrapeTargetSince
1.0.0Execution Mode
SynchronousAuth Context
Auth RequiredAuth Context
Send these values as request headers when calling this API.
AuthorizationstringRequiredBearer Token
X-Tenant-IDstringX-Tenant-ID
Request Inputs
application/jsonBody 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)
