Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetricsPath = "/metrics" MetricsDefaultPath = "/metrics_default" )
Prometheus restful api path
View Source
const ( RouteTriggerStopPath = "/management/stop" RouteCheckComponentReady = "/management/check/ready" )
for every component, register it's own api to trigger stop and check ready
View Source
const ( RouteGcPause = "/management/datacoord/garbage_collection/pause" RouteGcResume = "/management/datacoord/garbage_collection/resume" RouteSuspendQueryCoordBalance = "/management/querycoord/balance/suspend" RouteResumeQueryCoordBalance = "/management/querycoord/balance/resume" RouteTransferSegment = "/management/querycoord/transfer/segment" RouteTransferChannel = "/management/querycoord/transfer/channel" RouteSuspendQueryNode = "/management/querycoord/node/suspend" RouteResumeQueryNode = "/management/querycoord/node/resume" RouteListQueryNode = "/management/querycoord/node/list" RouteGetQueryNodeDistribution = "/management/querycoord/distribution/get" RouteCheckQueryNodeDistribution = "/management/querycoord/distribution/check" )
proxy management restful api root path
View Source
const ( DefaultListenPort = "9091" ListenPortEnvKey = "METRICS_PORT" )
View Source
const EventLogRouterPath = "/eventlog"
EventLogRouterPath is path for eventlog control.
View Source
const ExprPath = "/expr"
ExprPath is path for expression.
View Source
const HealthzRouterPath = "/healthz"
HealthzRouterPath is default path for check health state.
View Source
const LogLevelRouterPath = "/log/level"
LogLevelRouterPath is path for Get and Update log level at runtime.
View Source
const RootPath = "/"
Variables ¶
This section is empty.
Functions ¶
func RegisterStopComponent ¶
Types ¶
type Handler ¶
type Handler struct { Path string HandlerFunc http.HandlerFunc Handler http.Handler }
type ResponseWriter ¶
type ResponseWriter = http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.