Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + type MetricClient struct + func NewMetricClient(addr, rootDir string) *MetricClient + func (c *MetricClient) Close() + func (c *MetricClient) GetMetrics(ctx context.Context, urlParams map[string]string) (MetricData, error) + func (c *MetricClient) HealthCheck(ctx context.Context) error + func (c *MetricClient) ShutdownServer(ctx context.Context) error + func (c *MetricClient) SpawnServer(ctx context.Context, baseConf *config.Config, extraArgs ...string) error + type MetricData string + func (m MetricData) GetPrometheusContainerInteger(want WantMetric) (int64, time.Time, error) + func (m MetricData) GetPrometheusInteger(metricName string, wantLabels map[string]string) (int64, time.Time, error) + func (m MetricData) GetSandboxMetadataMetric(want WantMetric) (map[string]string, error) + type WantMetric struct + ExtraLabels map[string]string + Metric string + Namespace string + Pod string + Sandbox string