ImportScrapeCSV
Import scrape targets from a CSV-structured payload
POST
/api/v1/monitoring/scrape-configs/bulk-importOperation ID
ImportScrapeCSVSince
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
rowsListRequiredThe rows value
Example: (nested array)
rowIntegerRow number in the CSV payload (1-based)
Example: 1
hostStringHostname or IP of the scrape target
Example: 192.168.1.30
portIntegerPort of the metrics endpoint
Example: 9100
jobNameStringPrometheus job name
Example: node
labelsStringJSON-encoded label key-value pairs
Example: {"env":"prod"}
modeStringRequiredImport mode: full (fail on any error) or partial (skip invalid rows)
Example: partial
