Documentation
¶
Index ¶
- Constants
- func AssertMetricsEndpointUsesHTTPVersion(t *testing.T, endpoint, version, namespace string) error
- func AssertServiceMonitoringMetricsTarget(t *testing.T, metrics []promv1.Target, expectedTargetsCount int)
- func CleanupRBACForMetricsTest(t *testing.T, operatorNamespace string)
- func GetPrometheusMetricTargets(t *testing.T, operatorNamespace string) []promv1.Target
- func SetupRBACForMetricsTest(t *testing.T, operatorNamespace string)
Constants ¶
View Source
const (
PromethusTestSA = "prometheus-query-sa"
)
Variables ¶
This section is empty.
Functions ¶
func AssertServiceMonitoringMetricsTarget ¶ added in v1.3.6
func AssertServiceMonitoringMetricsTarget(t *testing.T, metrics []promv1.Target, expectedTargetsCount int)
assertServiceMonitoringMetricsTarget checks if the specified metrics are up
func CleanupRBACForMetricsTest ¶ added in v1.3.6
CleanupRBACForMetricsTest deletes the service account
func GetPrometheusMetricTargets ¶ added in v1.3.6
GetPrometheusMetricTargets retrieves Prometheus metric targets
func SetupRBACForMetricsTest ¶ added in v1.3.6
createServiceAccount creates a service account
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.