Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsHandler ¶
type MetricsHandler struct {
// contains filtered or unexported fields
}
MetricsHandler is a http.Handler that exposes the main kube-state-metrics /metrics endpoint. It allows concurrent reconfiguration at runtime.
func New ¶
func New(opts *options.Options, kubeClient kubernetes.Interface, storeBuilder ksmtypes.BuilderInterface, enableGZIPEncoding bool) *MetricsHandler
New creates and returns a new MetricsHandler with the given options.
func (*MetricsHandler) BuildWriters ¶ added in v2.14.0
func (m *MetricsHandler) BuildWriters(ctx context.Context)
BuildWriters builds the metrics writers, cancelling any previous context and passing a new one on every build. Build can be used multiple times and concurrently.
func (*MetricsHandler) ConfigureSharding ¶
func (m *MetricsHandler) ConfigureSharding(ctx context.Context, shard int32, totalShards int)
ConfigureSharding configures sharding. Configuration can be used multiple times and concurrently.
Click to show internal directories.
Click to hide internal directories.