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

Commit

Permalink
test/monitoring: node-problem-detector add test
Browse files Browse the repository at this point in the history
This add monitoring test for node-problem-detector component.

Signed-off-by: knrt10 <[email protected]>
  • Loading branch information
knrt10 committed Feb 24, 2021
1 parent caec083 commit 99d4024
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/monitoring/components_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ func testComponentsPrometheusMetrics(t *testing.T, v1api v1.API) {
query: "controller_runtime_reconcile_time_seconds_count{controller=\"istiocontrolplane-controller\"}",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
componentName: "node-problem-detector",
query: "problem_counter{reason=\"KernelOops\"}",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 99d4024

Please sign in to comment.