Skip to content

Commit

Permalink
E2E: Skipped edgeAgent_created_pids_total metric for ARM32 (Azure#5134
Browse files Browse the repository at this point in the history
) (Azure#5163)

Skipped `edgeAgent_created_pids_total` metric for ARM32
  • Loading branch information
yophilav authored Jun 25, 2021
1 parent c07ade7 commit 7b4177c
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_twin_signature_check_count",
"edgeAgent_twin_signaturs_check_seconds",
Expand All @@ -82,6 +82,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 7b4177c

Please sign in to comment.