Skip to content

Extend scorecard-backend so that MetricsProviders and Metrics can be optionally disabled by default #4586

Description

@christoph-jerolimov

Extend the scorecard-backend and scorecard-commons packages so that MetricsProviders and Metrics can be disabled by default.

  1. There should be an optional function isEnabled in a MetricsProvider: () => boolean and an optional field enabled: boolean in the Metric type. A missing function or field means it's enabled by default.
  2. There should be an optional enabled attribute also in the Config (config.d.ts) for metric providers and metrics to re-enable disable-by-default metrics or to disable specific metric providers or metrics.
  3. the backend should ignore disabled metric providers and metrics. Old data should stay in the database. When there are calls that return metrics just based on the database, they should check if the metric is enabled or not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions