Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework struct {
KsmClient *KSMClient
}
The Framework stores a pointer to the KSMClient
func New ¶
New returns a new Framework given the kube-state-metrics service URLs. It delegates the url validation errs to NewKSMClient func.
func (*Framework) ParseMetrics ¶
func (f *Framework) ParseMetrics(metrics func(io.Writer) error) (map[string]*dto.MetricFamily, error)
ParseMetrics uses a prometheus TextParser to parse metrics, given a function that fetches and writes metrics.
type KSMClient ¶
type KSMClient struct {
// contains filtered or unexported fields
}
The KSMClient is the Kubernetes State Metric client.
func NewKSMClient ¶
NewKSMClient retrieves a new KSMClient the kube-state-metrics service URLs. In case of error parsing the provided addresses, it returns an error.
func (*KSMClient) IsHealthz ¶
IsHealthz makes a request to the /healthz endpoint to get the health status.
Click to show internal directories.
Click to hide internal directories.