Skip to content

Commit

Permalink
E2E: Skipped edgeAgent_created_pids_total metric for ARM32 (#5134)
Browse files Browse the repository at this point in the history
Skipped `edgeAgent_created_pids_total` metric for ARM32
  • Loading branch information
yophilav authored Jun 18, 2021
1 parent c51555b commit 70bc14c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected override async Task Test(CancellationToken cancellationToken)

// The following metric should not be populated in a happy E2E path.
// We are going to make a list and remove them here to not consider them as a failure.
IEnumerable<string> skippingMetrics = new HashSet<string>
var skippingMetrics = new HashSet<string>
{
"edgeAgent_unsuccessful_iothub_syncs_total",
"edgehub_client_connect_failed_total",
Expand All @@ -78,6 +78,12 @@ protected override async Task Test(CancellationToken cancellationToken)
"edgehub_client_disconnect_total"
};

if (!System.Environment.Is64BitOperatingSystem)
{
// This metric is not part of the scrape on ARM32 machine.
skippingMetrics.Add("edgeAgent_created_pids_total");
}

foreach (string skippingMetric in skippingMetrics)
{
if (unreturnedMetrics.Remove(skippingMetric))
Expand Down

0 comments on commit 70bc14c

Please sign in to comment.