Skip to content

New feature: Allow to specify failure threshold in percentages #121

@jochenehret

Description

@jochenehret

Currently the Uptimer configuration only allows absolute numbers for failure thresholds. The time a CF upgrade deployment takes can however vary significantly. A new stemcell version takes very long as all VMs have to be recreated, whereas a single BOSH release update may only affect a few VMs. So absolute thresholds like "allow only 10 push failures" don't always make sense. Instead, we want to specify percentages which respect the number of total attempts.

Current example configuration:

      APP_STATS_THRESHOLD: 5

Current example output:

[UPTIMER] 2024/05/22 08:18:28 FAILED (Stats availability): 6 failed attempts to retrieve stats for app exceeded the threshold of 5 allowed failures (Total attempts: 183, pass rate 96.72%)

Configuration with percentages:

  APP_STATS_THRESHOLD_PERCENT: 95

New result:

[UPTIMER] 2024/05/22 08:18:28 SUCCESS (Stats availability): 6 failed attempts to retrieve stats for app did not fall below the threshold of 95% (Total attempts: 61, pass rate 96.72%)

Implementation idea:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions