Documentation ¶
Index ¶
- func DeleteHandler(startTime time.Time, r *http.Request) error
- func ErrorResponse(statusCode int, err error) string
- func ExportHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func ExportJSONLine(rs *netstorage.Result) string
- func ExportPromAPILine(rs *netstorage.Result) string
- func ExportPromAPIResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
- func ExportPrometheusLine(rs *netstorage.Result) string
- func ExportStdResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
- func Federate(rs *netstorage.Result) string
- func FederateHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func LabelValuesHandler(startTime time.Time, labelName string, w http.ResponseWriter, r *http.Request) error
- func LabelValuesResponse(labelValues []string) string
- func LabelsCountHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func LabelsCountResponse(labelEntries []storage.TagEntry) string
- func LabelsHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func LabelsResponse(labels []string) string
- func QueryHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func QueryRangeHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func QueryRangeResponse(rs []netstorage.Result) string
- func QueryResponse(rs []netstorage.Result) string
- func SeriesCountHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func SeriesCountResponse(n uint64) string
- func SeriesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func SeriesResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
- func StreamErrorResponse(qw422016 *qt422016.Writer, statusCode int, err error)
- func StreamExportJSONLine(qw422016 *qt422016.Writer, rs *netstorage.Result)
- func StreamExportPromAPILine(qw422016 *qt422016.Writer, rs *netstorage.Result)
- func StreamExportPromAPIResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func StreamExportPrometheusLine(qw422016 *qt422016.Writer, rs *netstorage.Result)
- func StreamExportStdResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func StreamFederate(qw422016 *qt422016.Writer, rs *netstorage.Result)
- func StreamLabelValuesResponse(qw422016 *qt422016.Writer, labelValues []string)
- func StreamLabelsCountResponse(qw422016 *qt422016.Writer, labelEntries []storage.TagEntry)
- func StreamLabelsResponse(qw422016 *qt422016.Writer, labels []string)
- func StreamQueryRangeResponse(qw422016 *qt422016.Writer, rs []netstorage.Result)
- func StreamQueryResponse(qw422016 *qt422016.Writer, rs []netstorage.Result)
- func StreamSeriesCountResponse(qw422016 *qt422016.Writer, n uint64)
- func StreamSeriesResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func StreamTSDBStatusResponse(qw422016 *qt422016.Writer, status *storage.TSDBStatus)
- func TSDBStatusHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error
- func TSDBStatusResponse(status *storage.TSDBStatus) string
- func WriteErrorResponse(qq422016 qtio422016.Writer, statusCode int, err error)
- func WriteExportJSONLine(qq422016 qtio422016.Writer, rs *netstorage.Result)
- func WriteExportPromAPILine(qq422016 qtio422016.Writer, rs *netstorage.Result)
- func WriteExportPromAPIResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func WriteExportPrometheusLine(qq422016 qtio422016.Writer, rs *netstorage.Result)
- func WriteExportStdResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func WriteFederate(qq422016 qtio422016.Writer, rs *netstorage.Result)
- func WriteLabelValuesResponse(qq422016 qtio422016.Writer, labelValues []string)
- func WriteLabelsCountResponse(qq422016 qtio422016.Writer, labelEntries []storage.TagEntry)
- func WriteLabelsResponse(qq422016 qtio422016.Writer, labels []string)
- func WriteQueryRangeResponse(qq422016 qtio422016.Writer, rs []netstorage.Result)
- func WriteQueryResponse(qq422016 qtio422016.Writer, rs []netstorage.Result)
- func WriteSeriesCountResponse(qq422016 qtio422016.Writer, n uint64)
- func WriteSeriesResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
- func WriteTSDBStatusResponse(qq422016 qtio422016.Writer, status *storage.TSDBStatus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHandler ¶
DeleteHandler processes /api/v1/admin/tsdb/delete_series prometheus API request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#delete-series
func ErrorResponse ¶
func ExportHandler ¶
ExportHandler exports data in raw format from /api/v1/export.
func ExportJSONLine ¶
func ExportJSONLine(rs *netstorage.Result) string
func ExportPromAPILine ¶
func ExportPromAPILine(rs *netstorage.Result) string
func ExportPromAPIResponse ¶
func ExportPromAPIResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
func ExportPrometheusLine ¶
func ExportPrometheusLine(rs *netstorage.Result) string
func ExportStdResponse ¶
func ExportStdResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
func Federate ¶
func Federate(rs *netstorage.Result) string
func FederateHandler ¶
FederateHandler implements /federate . See https://prometheus.io/docs/prometheus/latest/federation/
func LabelValuesHandler ¶
func LabelValuesHandler(startTime time.Time, labelName string, w http.ResponseWriter, r *http.Request) error
LabelValuesHandler processes /api/v1/label/<labelName>/values request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#querying-label-values
func LabelValuesResponse ¶
func LabelsCountHandler ¶ added in v1.19.0
LabelsCountHandler processes /api/v1/labels/count request.
func LabelsCountResponse ¶ added in v1.19.0
func LabelsHandler ¶
LabelsHandler processes /api/v1/labels request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#getting-label-names
func LabelsResponse ¶
func QueryHandler ¶
QueryHandler processes /api/v1/query request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries
func QueryRangeHandler ¶
QueryRangeHandler processes /api/v1/query_range request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#range-queries
func QueryRangeResponse ¶
func QueryRangeResponse(rs []netstorage.Result) string
func QueryResponse ¶
func QueryResponse(rs []netstorage.Result) string
func SeriesCountHandler ¶
SeriesCountHandler processes /api/v1/series/count request.
func SeriesCountResponse ¶
func SeriesHandler ¶
SeriesHandler processes /api/v1/series request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#finding-series-by-label-matchers
func SeriesResponse ¶
func SeriesResponse(resultsCh <-chan *quicktemplate.ByteBuffer) string
func StreamErrorResponse ¶
func StreamExportJSONLine ¶
func StreamExportJSONLine(qw422016 *qt422016.Writer, rs *netstorage.Result)
func StreamExportPromAPILine ¶
func StreamExportPromAPILine(qw422016 *qt422016.Writer, rs *netstorage.Result)
func StreamExportPromAPIResponse ¶
func StreamExportPromAPIResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func StreamExportPrometheusLine ¶
func StreamExportPrometheusLine(qw422016 *qt422016.Writer, rs *netstorage.Result)
func StreamExportStdResponse ¶
func StreamExportStdResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func StreamFederate ¶
func StreamFederate(qw422016 *qt422016.Writer, rs *netstorage.Result)
func StreamLabelsCountResponse ¶ added in v1.19.0
func StreamLabelsResponse ¶
func StreamQueryRangeResponse ¶
func StreamQueryRangeResponse(qw422016 *qt422016.Writer, rs []netstorage.Result)
func StreamQueryResponse ¶
func StreamQueryResponse(qw422016 *qt422016.Writer, rs []netstorage.Result)
func StreamSeriesResponse ¶
func StreamSeriesResponse(qw422016 *qt422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func StreamTSDBStatusResponse ¶ added in v1.35.0
func StreamTSDBStatusResponse(qw422016 *qt422016.Writer, status *storage.TSDBStatus)
func TSDBStatusHandler ¶ added in v1.35.0
TSDBStatusHandler processes /api/v1/status/tsdb request.
See https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-stats
func TSDBStatusResponse ¶ added in v1.35.0
func TSDBStatusResponse(status *storage.TSDBStatus) string
func WriteErrorResponse ¶
func WriteErrorResponse(qq422016 qtio422016.Writer, statusCode int, err error)
func WriteExportJSONLine ¶
func WriteExportJSONLine(qq422016 qtio422016.Writer, rs *netstorage.Result)
func WriteExportPromAPILine ¶
func WriteExportPromAPILine(qq422016 qtio422016.Writer, rs *netstorage.Result)
func WriteExportPromAPIResponse ¶
func WriteExportPromAPIResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func WriteExportPrometheusLine ¶
func WriteExportPrometheusLine(qq422016 qtio422016.Writer, rs *netstorage.Result)
func WriteExportStdResponse ¶
func WriteExportStdResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func WriteFederate ¶
func WriteFederate(qq422016 qtio422016.Writer, rs *netstorage.Result)
func WriteLabelValuesResponse ¶
func WriteLabelValuesResponse(qq422016 qtio422016.Writer, labelValues []string)
func WriteLabelsCountResponse ¶ added in v1.19.0
func WriteLabelsCountResponse(qq422016 qtio422016.Writer, labelEntries []storage.TagEntry)
func WriteLabelsResponse ¶
func WriteLabelsResponse(qq422016 qtio422016.Writer, labels []string)
func WriteQueryRangeResponse ¶
func WriteQueryRangeResponse(qq422016 qtio422016.Writer, rs []netstorage.Result)
func WriteQueryResponse ¶
func WriteQueryResponse(qq422016 qtio422016.Writer, rs []netstorage.Result)
func WriteSeriesCountResponse ¶
func WriteSeriesCountResponse(qq422016 qtio422016.Writer, n uint64)
func WriteSeriesResponse ¶
func WriteSeriesResponse(qq422016 qtio422016.Writer, resultsCh <-chan *quicktemplate.ByteBuffer)
func WriteTSDBStatusResponse ¶ added in v1.35.0
func WriteTSDBStatusResponse(qq422016 qtio422016.Writer, status *storage.TSDBStatus)
Types ¶
This section is empty.
Source Files ¶
- app/vmselect/prometheus/error_response.qtpl
- app/vmselect/prometheus/export.qtpl
- app/vmselect/prometheus/federate.qtpl
- app/vmselect/prometheus/label_values_response.qtpl
- app/vmselect/prometheus/labels_count_response.qtpl
- app/vmselect/prometheus/labels_response.qtpl
- app/vmselect/prometheus/query_range_response.qtpl
- app/vmselect/prometheus/query_response.qtpl
- app/vmselect/prometheus/series_count_response.qtpl
- app/vmselect/prometheus/series_response.qtpl
- app/vmselect/prometheus/tsdb_status_response.qtpl
- app/vmselect/prometheus/util.qtpl
- prometheus.go