Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API encapsulates all API services.
func New ¶
func New( now func() time.Time, db func() *tsdb.DB, qe *promql.Engine, q func(ctx native_context.Context, mint, maxt int64) (storage.Querier, error), targets func() []*retrieval.Target, alertmanagers func() []*url.URL, enableAdmin bool, ) *API
New returns a new API object.
func (*API) HTTPHandler ¶
HTTPHandler returns an HTTP handler for a REST API gateway to the given grpc address.
func (*API) RegisterGRPC ¶
RegisterGRPC registers all API services with the given server.
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
Admin provides an administration interface to Prometheus.
func (*Admin) DeleteSeries ¶
func (s *Admin) DeleteSeries(_ context.Context, r *pb.SeriesDeleteRequest) (*pb.SeriesDeleteResponse, error)
DeleteSeries implements pb.AdminServer.
func (*Admin) TSDBSnapshot ¶
func (s *Admin) TSDBSnapshot(_ context.Context, _ *pb.TSDBSnapshotRequest) (*pb.TSDBSnapshotResponse, error)
TSDBSnapshot implements pb.AdminServer.
Click to show internal directories.
Click to hide internal directories.