Documentation
¶
Index ¶
- func CreateNodeInformer(ctx context.Context, client *kubernetes.Clientset, metric *prometheus.GaugeVec, ...)
- func GetLogEncoder(usePlain bool, config zapcore.EncoderConfig) zapcore.Encoder
- func MetricsProcessing(ctx context.Context, clientset *kubernetes.Clientset, ...)
- func ProcessSingleNodeMetrics(ctx context.Context, clientset *kubernetes.Clientset, ...) (*[]Pod, error)
- func RegisterPrometheusMetrics(ctx context.Context) *prometheus.GaugeVec
- func UpEndpointHandler(w http.ResponseWriter, r *http.Request)
- type Node
- type Pod
- type PodRef
- type RunConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodeInformer ¶
func CreateNodeInformer(ctx context.Context, client *kubernetes.Clientset, metric *prometheus.GaugeVec, logger *zap.SugaredLogger, runtimeConfig *RunConfiguration)
func GetLogEncoder ¶
func GetLogEncoder(usePlain bool, config zapcore.EncoderConfig) zapcore.Encoder
func MetricsProcessing ¶
func MetricsProcessing(ctx context.Context, clientset *kubernetes.Clientset, metric *prometheus.GaugeVec, nodeName string, logger *zap.SugaredLogger, runtimeConfig *RunConfiguration)
func ProcessSingleNodeMetrics ¶
func ProcessSingleNodeMetrics(ctx context.Context, clientset *kubernetes.Clientset, logger *zap.SugaredLogger, metric *prometheus.GaugeVec, nodeName string) (*[]Pod, error)
Gets Node statistics from API, parsing it and register prometheus metric for each pod on the node
func RegisterPrometheusMetrics ¶
func RegisterPrometheusMetrics(ctx context.Context) *prometheus.GaugeVec
func UpEndpointHandler ¶
func UpEndpointHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type RunConfiguration ¶
func ParseInputArguments ¶
func ParseInputArguments() (*RunConfiguration, error)
Click to show internal directories.
Click to hide internal directories.