2017-07-06 05:38:40 -07:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
2017-11-01 15:03:46 -07:00
|
|
|
"title": "rpc.proto",
|
2017-07-06 05:38:40 -07:00
|
|
|
"version": "version not set"
|
|
|
|
},
|
|
|
|
"schemes": [
|
|
|
|
"http",
|
|
|
|
"https"
|
|
|
|
],
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"paths": {
|
2017-11-30 02:35:29 -08:00
|
|
|
"/v2/admin/tsdb/clean_tombstones": {
|
|
|
|
"post": {
|
|
|
|
"summary": "CleanTombstones removes the deleted data from disk and cleans up the existing tombstones.",
|
|
|
|
"operationId": "TSDBCleanTombstones",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/prometheusTSDBCleanTombstonesResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Admin"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-07-10 06:44:29 -07:00
|
|
|
"/v2/admin/tsdb/delete_series": {
|
2017-07-06 05:38:40 -07:00
|
|
|
"post": {
|
|
|
|
"summary": "DeleteSeries deletes data for a selection of series in a time range.",
|
|
|
|
"operationId": "DeleteSeries",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/prometheusSeriesDeleteResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/prometheusSeriesDeleteRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Admin"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-07-10 06:44:29 -07:00
|
|
|
"/v2/admin/tsdb/snapshot": {
|
2017-07-06 05:38:40 -07:00
|
|
|
"post": {
|
2017-11-30 02:35:29 -08:00
|
|
|
"summary": "Snapshot creates a snapshot of all current data into 'snapshots/\u003cdatetime\u003e-\u003crand\u003e' under the TSDB's data directory.",
|
2017-07-06 05:38:40 -07:00
|
|
|
"operationId": "TSDBSnapshot",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/prometheusTSDBSnapshotResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Admin"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"definitions": {
|
|
|
|
"prometheusLabelMatcher": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/definitions/prometheusLabelMatcherType"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"description": "Matcher specifies a rule, which can match or set of labels or not."
|
|
|
|
},
|
|
|
|
"prometheusLabelMatcherType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"EQ",
|
|
|
|
"NEQ",
|
|
|
|
"RE",
|
|
|
|
"NRE"
|
|
|
|
],
|
|
|
|
"default": "EQ"
|
|
|
|
},
|
|
|
|
"prometheusSeriesDeleteRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"min_time": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"max_time": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time"
|
|
|
|
},
|
|
|
|
"matchers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/prometheusLabelMatcher"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"prometheusSeriesDeleteResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-11-30 02:35:29 -08:00
|
|
|
"prometheusTSDBCleanTombstonesResponse": {
|
2017-07-06 05:38:40 -07:00
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"prometheusTSDBSnapshotResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|