mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
375ad1185c
* *: bump gRPC dependencies This change updates the gRPC dependencies to more recent versions: * github.com/gogo/protobuf => v1.2.0 * github.com/grpc-ecosystem/grpc-gateway => v1.6.3 * google.golang.org/grpc => v1.17.0 In addition scripts/genproto.sh leverages Go modules information instead of hardcoding SHA1 commits. This ensures that the code is generated from the exact same sources. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Run 'make proto' in CI Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Revert tabs -> spaces change Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Fix 'make proto' step Signed-off-by: Simon Pasquier <spasquie@redhat.com> * 'go get' grpc/protobuf dependencies Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Prepopulate cache with go mod download Signed-off-by: Simon Pasquier <spasquie@redhat.com>
141 lines
3.2 KiB
JSON
141 lines
3.2 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "rpc.proto",
|
|
"version": "version not set"
|
|
},
|
|
"schemes": [
|
|
"http",
|
|
"https"
|
|
],
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"paths": {
|
|
"/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": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/prometheusTSDBCleanTombstonesResponse"
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Admin"
|
|
]
|
|
}
|
|
},
|
|
"/v2/admin/tsdb/delete_series": {
|
|
"post": {
|
|
"summary": "DeleteSeries deletes data for a selection of series in a time range.",
|
|
"operationId": "DeleteSeries",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"schema": {
|
|
"$ref": "#/definitions/prometheusSeriesDeleteResponse"
|
|
}
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "body",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/prometheusSeriesDeleteRequest"
|
|
}
|
|
}
|
|
],
|
|
"tags": [
|
|
"Admin"
|
|
]
|
|
}
|
|
},
|
|
"/v2/admin/tsdb/snapshot": {
|
|
"post": {
|
|
"summary": "Snapshot creates a snapshot of all current data into 'snapshots/\u003cdatetime\u003e-\u003crand\u003e' under the TSDB's data directory.",
|
|
"operationId": "TSDBSnapshot",
|
|
"responses": {
|
|
"200": {
|
|
"description": "A successful response.",
|
|
"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"
|
|
},
|
|
"prometheusTSDBCleanTombstonesResponse": {
|
|
"type": "object"
|
|
},
|
|
"prometheusTSDBSnapshotResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|