Skip to content
FlagSwiftDocs

Metrics

How often flags are evaluated, what they serve, and which flags nobody uses.

What this page is for#

Metrics counts evaluations from server keys. Choose a project, an environment and a time range to see totals, a chart over time, the busiest flags and the reasons behind each result. It also lists active flags that were not evaluated recently.

In the console it lives at /metrics. You see it in the sidebar when your role has metrics.read.

What you can do#

  • Set the scope

    Pick a project, an environment (or all) and a range of the last 24 hours, 7 days or 30 days.

  • Read the totals

    Tiles show evaluations, the share served on, and how many flags were evaluated.

  • Follow evaluations over time

    A chart splits results into served on and served off, hourly for 24 hours and one column per day for 7 or 30 days, with empty days shown as zero.

  • Review the busiest flags

    A table lists evaluations per flag, the variants served and when each was last seen. Click the Flag, Evaluations, On or Last seen header to sort.

  • See why flags were served

    Panels break evaluations down by reason and by environment.

  • Find unused flags

    A list shows active flags older than the threshold that were not evaluated, marked when they are off everywhere.

Good to know#

  • Counts start when a server key calls the evaluation endpoint. With no evaluations the page says No evaluations recorded.
  • The page needs metrics.read.