Display Feature Flags Metrics

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Users that are already using our feature flags solution would get added value from seeing the metrics associated with the active flags that are reported by the clients. For exam[ple: When you enable a feature for a small group of users it is nice to know how many users actually get exposed to it.

Intended users

Further details

Metrics were added to Unleash 2.0. The SDK will locally collect metrics in the background and regularly share this information with the Unleash API. The API then aggregates the metrics from all clients and calculates how many times a feature toggle evaluated to enabled in a given time period.

This is the current Unleash display:

image

Proposal

/api/client/metrics

Send metrics

POST: http://unleash.host.com/api/client/metrics

Register a metrics payload with a timed bucket.

{
  "appName": "appName",
  "instanceId": "instanceId",
  "bucket": {
    "start": "2016-11-03T07:16:43.572Z",
    "stop": "2016-11-03T07:16:53.572Z",
    "toggles": {
      "toggle-name-1": {
        "yes": 123,
        "no": 321
      },
      "toggle-name-2": {
        "yes": 111,
        "no": 0
      }
    }
  }
}

We will introduce a new tab under feature flags called "Metrics"

UX TBD

Permissions and Security

Documentation

Availability & Testing

Limitation: It will only guarantee toggles reported by client applications within the last hour.

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖