Monitoring & Collection/Scrape Collection
POSTMonitoringSince 1.0SynchronousAuth Required
ImportScrapeCSV
Import scrape targets from a CSV-structured payload
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body 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
Responses
Endpoint
POST/api/v1/monitoring/scrape-configs/bulk-import
/api/v1/monitoring/scrape-configs/bulk-import
Request Example
curl -X POST '{host}/api/v1/monitoring/scrape-configs/bulk-import' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"rows":"(nested array)","mode":"partial"}'
Response Example
200{
"imported": 47,
"skipped": 1,
"duplicatesSkipped": 1,
"mode": "partial",
"errors": [
{}
]
}Change History
This API has no change history records yet.
