Documentation ¶
Index ¶
- type API
- type Admin
- func (s *Admin) DeleteSeries(_ old_ctx.Context, r *pb.SeriesDeleteRequest) (*pb.SeriesDeleteResponse, error)
- func (s *Admin) TSDBCleanTombstones(_ old_ctx.Context, _ *pb.TSDBCleanTombstonesRequest) (*pb.TSDBCleanTombstonesResponse, error)
- func (s *Admin) TSDBSnapshot(_ old_ctx.Context, _ *pb.TSDBSnapshotRequest) (*pb.TSDBSnapshotResponse, error)
- type AdminDisabled
- func (s *AdminDisabled) DeleteSeries(_ old_ctx.Context, r *pb.SeriesDeleteRequest) (*pb.SeriesDeleteResponse, error)
- func (s *AdminDisabled) TSDBCleanTombstones(_ old_ctx.Context, _ *pb.TSDBCleanTombstonesRequest) (*pb.TSDBCleanTombstonesResponse, error)
- func (s *AdminDisabled) TSDBSnapshot(_ old_ctx.Context, _ *pb.TSDBSnapshotRequest) (*pb.TSDBSnapshotResponse, error)
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 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(_ old_ctx.Context, r *pb.SeriesDeleteRequest) (*pb.SeriesDeleteResponse, error)
DeleteSeries implements pb.AdminServer.
func (*Admin) TSDBCleanTombstones ¶
func (s *Admin) TSDBCleanTombstones(_ old_ctx.Context, _ *pb.TSDBCleanTombstonesRequest) (*pb.TSDBCleanTombstonesResponse, error)
TSDBCleanTombstones implements pb.AdminServer.
func (*Admin) TSDBSnapshot ¶
func (s *Admin) TSDBSnapshot(_ old_ctx.Context, _ *pb.TSDBSnapshotRequest) (*pb.TSDBSnapshotResponse, error)
TSDBSnapshot implements pb.AdminServer.
type AdminDisabled ¶
type AdminDisabled struct { }
AdminDisabled implements the administration interface that informs that the API endpoints are disbaled.
func (*AdminDisabled) DeleteSeries ¶
func (s *AdminDisabled) DeleteSeries(_ old_ctx.Context, r *pb.SeriesDeleteRequest) (*pb.SeriesDeleteResponse, error)
DeleteSeries imeplements pb.AdminServer.
func (*AdminDisabled) TSDBCleanTombstones ¶
func (s *AdminDisabled) TSDBCleanTombstones(_ old_ctx.Context, _ *pb.TSDBCleanTombstonesRequest) (*pb.TSDBCleanTombstonesResponse, error)
TSDBCleanTombstones implements pb.AdminServer.
func (*AdminDisabled) TSDBSnapshot ¶
func (s *AdminDisabled) TSDBSnapshot(_ old_ctx.Context, _ *pb.TSDBSnapshotRequest) (*pb.TSDBSnapshotResponse, error)
TSDBSnapshot implements pb.AdminServer.