Add period selector to observability usage quota app
What does this MR do and why?
- Implement fetchUsageData API
- Add getMonthsBetweenDates utility
- Create ObservabilityUsagePeriodSelector component
- Add ObservabilityUsagePeriodSelector to ObservabilityUsageQuotaApp. Fetch data with selected period
Part of https://gitlab.com/gitlab-org/opstrace/opstrace/-/issues/2829
Requires !158212 (merged) and !158445 (merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- Make sure you are logged in and running GDK with Ultimate license
- Enable
:observability_metrics
,:observability_logs
,:observability_tracing
feature flags - Apply patch to load local mocks:
git apply < <(curl -s https://gitlab.com/-/snippets/3725611/raw/main/a.patch)
Edited by Daniele Rossetti