Skip to content

Add usage by month chart to data transfer dashboard

Peter Hegman requested to merge 386405-usage-by-month-chart into master

What does this MR do and why?

Related to #386405

We are starting to build a dashboard to monitor egress data transfer. The first dashboard will be at the group level in Settings -> Usage quotas.

This MR builds the "Usage by month" chart. The rest of the dashboard will be built out incrementally in https://gitlab.com/groups/gitlab-org/-/epics/9487

Screenshots or screen recordings

Desktop

State Screenshot
Loading Screenshot_2023-03-10_at_2.27.34_PM
Error Screenshot_2023-03-10_at_2.47.59_PM
Success Screenshot_2023-03-10_at_2.33.04_PM

Mobile

State Screenshot
Loading Screenshot_2023-03-10_at_2.34.30_PM
Error Screenshot_2023-03-10_at_2.48.36_PM
Success Screenshot_2023-03-10_at_2.33.50_PM

How to set up and validate locally

  1. Enable the data_transfer_monitoring feature flag
    • bin/rails console
    • Feature.enable(:data_transfer_monitoring)
  2. Navigate to a top level group -> Settings -> Usage quotas
  3. Click on the Transfer tab

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Hegman

Merge request reports