Documentation ¶
Index ¶
- Variables
- func IncrementCounter(metric *prometheus.CounterVec, client, installId string)
- func Main(ctx context.Context, _ ...string) error
- func MainWithEnv(ctx context.Context) (err error)
- func SetGauge(metric *prometheus.GaugeVec, client, installId string, workload *string, ...)
- type Clock
- type HealthChecker
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DisplayName = "OSS Traffic Manager" //nolint:gochecknoglobals // extension point NewServiceFunc = NewService //nolint:gochecknoglobals // extension point WithAgentImageRetrieverFunc = managerutil.WithAgentImageRetriever //nolint:gochecknoglobals // extension point IncrementInterceptCounterFunc = func(metric *prometheus.CounterVec, client, installId string, spec *rpc.InterceptSpec) { if metric != nil { labels := prometheus.Labels{ "client": client, "install_id": installId, "intercept_type": "global", } metric.With(labels).Inc() } } )
Functions ¶
func IncrementCounter ¶ added in v2.17.0
func IncrementCounter(metric *prometheus.CounterVec, client, installId string)
func MainWithEnv ¶ added in v2.14.1
Types ¶
type HealthChecker ¶
type HealthChecker struct{}
func (*HealthChecker) Check ¶
func (s *HealthChecker) Check(ctx context.Context, _ *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthChecker) Watch ¶
func (s *HealthChecker) Watch(_ *grpc_health_v1.HealthCheckRequest, stream grpc_health_v1.Health_WatchServer) error
type Service ¶ added in v2.10.0
Click to show internal directories.
Click to hide internal directories.