MCPcopy
hub / github.com/prometheus/client_golang / Query

Method Query

api/prometheus/v1/api.go:482–482  ·  view source on GitHub ↗

Query performs a query for the given time.

(ctx context.Context, query string, ts time.Time, opts ...Option)

Source from the content-addressed store, hash-verified

480 LabelValues(ctx context.Context, label string, matches []string, startTime, endTime time.Time, opts ...Option) (model.LabelValues, Warnings, error)
481 // Query performs a query for the given time.
482 Query(ctx context.Context, query string, ts time.Time, opts ...Option) (model.Value, Warnings, error)
483 // QueryRange performs a query for the given range.
484 QueryRange(ctx context.Context, query string, r Range, opts ...Option) (model.Value, Warnings, error)
485 // QueryExemplars performs a query for exemplars by the given query and time range.

Callers 15

ExampleAPI_queryFunction · 0.95
WriteMethod · 0.65
DeleteSeriesMethod · 0.65
LabelNamesMethod · 0.65
LabelValuesMethod · 0.65
QueryMethod · 0.65
QueryRangeMethod · 0.65
SeriesMethod · 0.65
SnapshotMethod · 0.65
TargetsMetadataMethod · 0.65
MetadataMethod · 0.65
TSDBMethod · 0.65

Implementers 1

httpAPIapi/prometheus/v1/api.go

Calls

no outgoing calls

Tested by 1

ExampleAPI_queryFunction · 0.76