Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
e2e: Add tests for components metrics verification
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Mar 23, 2020
1 parent 636c902 commit c6c93e8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/monitoring/components_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,62 @@ func testComponentsPrometheusMetrics(t *testing.T, v1api v1.API) {
testCases := []struct {
componentName string
query string
platforms map[string]interface{}
}{
{
componentName: "kube-apiserver",
query: "apiserver_request_total",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "coredns",
query: "coredns_build_info",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "kube-scheduler",
query: "scheduler_schedule_attempts_total",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "kube-controller-manager",
query: "workqueue_work_duration_seconds_bucket",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "kube-proxy",
query: "kubeproxy_sync_proxy_rules_duration_seconds_bucket",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "kubelet",
query: "kubelet_running_pod_count",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "calico-felix",
query: "felix_active_local_endpoints",
platforms: map[string]interface{}{"*": nil},
},
{
componentName: "metallb",
query: "metallb_bgp_session_up",
platforms: map[string]interface{}{"packet": nil},
},
{
componentName: "contour",
query: "contour_dagrebuild_timestamp",
platforms: map[string]interface{}{"aws": nil, "packet": nil},
},
{
componentName: "cert-manager",
query: "certmanager_controller_sync_call_count",
platforms: map[string]interface{}{"aws": nil, "packet": nil},
},
{
componentName: "external-dns",
query: "",
platforms: map[string]interface{}{"aws": nil, "packet": nil},
},
}

Expand Down

0 comments on commit c6c93e8

Please sign in to comment.