Title: UI: Monitoring pages treat the baseline as a window, and its overlay uses mismatched bins · Issue #7054 · feast-dev/feast · GitHub
Open Graph Title: UI: Monitoring pages treat the baseline as a window, and its overlay uses mismatched bins · Issue #7054 · feast-dev/feast
X Title: UI: Monitoring pages treat the baseline as a window, and its overlay uses mismatched bins · Issue #7054 · feast-dev/feast
Description: Expected Behavior The monitoring UI shows the newest monitoring window, compares it with the baseline on the same value ranges and at a comparable scale, and plots history one window length at a time. Current Behavior /monitoring/metrics...
Open Graph Description: Expected Behavior The monitoring UI shows the newest monitoring window, compares it with the baseline on the same value ranges and at a comparable scale, and plots history one window length at a ti...
X Description: Expected Behavior The monitoring UI shows the newest monitoring window, compares it with the baseline on the same value ranges and at a comparable scale, and plots history one window length at a ti...
Opengraph URL: https://github.com/feast-dev/feast/issues/7054
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UI: Monitoring pages treat the baseline as a window, and its overlay uses mismatched bins","articleBody":"## Expected Behavior\n\nThe monitoring UI shows the newest monitoring window, compares it with the baseline on the same\nvalue ranges and at a comparable scale, and plots history one window length at a time.\n\n## Current Behavior\n\n`/monitoring/metrics/features` returns one row per granularity plus the baseline row. The\nbaseline row has `granularity: \"baseline\"` and is dated by the day it was computed\n(`metric_date=date.today()`, `monitoring_service.py:182`, `:462`), while windows are dated by their\nstart (`:202`, `:1028`). Both pages treat every returned row as an interchangeable window.\n\n**1. Feature → Monitoring tab: the baseline is compared with itself.** `FeatureMonitoringTab`\npicks the newest `metric_date` among all rows, so right after `feast monitor run` it shows\nGranularity \"baseline\" and Row Count \"1,807 (baseline: 1,807)\".\n\n**2. Monitoring → feature detail page: opens on the baseline, lists it twice.** `FeatureMetricsDetail`\nbuilds the View options from every row's granularity and sorts them alphabetically. The options are\n\"baseline\", \"Biweekly\", \"Daily\", \"Monthly\", \"Quarterly\", \"Weekly\", \"Baseline (all data)\", and the\npage opens on the first one, the baseline.\n\n**3. Detail page: the Time-Series Analysis mixes window lengths.** It receives every row and plots\nthem by `metric_date` as one line. On the demo, the points are the quarterly window (07-21), monthly\n(09-19), biweekly (10-05), weekly (10-12), daily (10-18) and the baseline (10-20). Each point\nsummarizes a different span of data, so the \"drift\" line has no meaning.\n\n**4. Monitoring tab: the baseline overlay doesn't line up with the window.** `renderNumericSvg`\n(`HistogramChart.tsx`) draws baseline bin *i* behind window bin *i*, and scales both by the largest\nraw count.\n- Each stored histogram covers its own row's min and max, so bin *i* of each covers different values.\n- On the demo, the 125-row daily window's bars reach about a tenth of the 1,807-row baseline's height.\n- With the last day of `conv_rate` multiplied by 100, the bars look exactly like a clean day's. Only\n the axis labels move, from 0.004–1.00 to 0.43–99.6, and the baseline is drawn across the whole axis\n although its values lie in 0.0002–1.0. The stats panel shows the shift (mean 50.94 vs. 0.5237); the\n chart doesn't.\n- If a feature's baseline is categorical and its newest window numeric (the feature changed type),\n the chart throws `TypeError: undefined is not iterable` and the tab fails to render.\n\nScreenshots (Feast 0.67.0, `feast init` demo): the tab after a fresh run, on a clean day and on a ×100\nday; the detail page after a fresh run, and its time series.\n\n\u003c!-- Drag the 5 before-*.jpg screenshots here -->\n\n## Steps to reproduce\n\n1. `feast init demo && cd demo/feature_repo`, add `data_quality_monitoring: {auto_baseline: true}`\n to `feature_store.yaml`, and run `feast apply && feast monitor run && feast ui`.\n - Open Feature views → `driver_hourly_stats` → `conv_rate` → Monitoring (case 1).\n - Open Monitoring → `conv_rate` (cases 2 and 3).\n2. Case 4 is the normal state from the day after the baseline was computed. To get there without\n waiting, run this in `feature_repo`, then `feast monitor run`, and reload the Monitoring tab:\n\n```python\nimport datetime as dt\nimport pandas as pd\n\n# Date the baseline three days back, as it would be after a few daily runs.\np = \"feast_monitoring/feast_monitoring_feature_metrics.parquet\"\nm = pd.read_parquet(p)\nm.loc[m[\"is_baseline\"].astype(bool), \"metric_date\"] = dt.date.today() - dt.timedelta(days=3)\nm.to_parquet(p, index=False)\n\n# Simulate a x100 unit bug in the last day of conv_rate.\ns = pd.read_parquet(\"data/driver_stats.parquet\")\nlast = s[\"event_timestamp\"] >= s[\"event_timestamp\"].max() - pd.Timedelta(days=1)\ns.loc[last, \"conv_rate\"] *= 100\ns.to_parquet(\"data/driver_stats.parquet\", index=False)\n```\n\n### Specifications\n\n- Version: 0.67.0 (the UI files involved are unchanged on master at e304a84)\n- Platform: Windows 11, Chromium-based browser\n- Subsystem: UI, `pages/features/FeatureMonitoringTab.tsx`, `pages/monitoring/FeatureMetricsDetail.tsx`,\n `pages/monitoring/components/HistogramChart.tsx`\n\n## Possible Solution\n\nA UI-only fix, which I have ready with tests, in two commits:\n\n1. **Keep the baseline out of window views (cases 1–3).** One small helper module picks windows,\n orders granularities shortest first, and builds a single-granularity time series. The baseline\n stays reachable through the detail page's \"Baseline (all data)\" option, and the tab shows it on its\n own only when no window exists yet.\n2. **Align the overlay (case 4).** Rebin the baseline onto the window's edges (uniform within each\n baseline bin; a SQL-style zero-width bin as a point) and scale it to the window's row count. The\n legend states how much of the baseline lies outside the window's range: in the ×100 case above,\n 39%, with the rest in the first bin. Don't overlay a baseline that isn't numeric.\n\nThe fuller alternative, storing window histograms on the baseline's edges, would change the stored\ndata and is close to drift detection (#6341), so I've kept this to the UI. @jyejare, would you prefer\na different approach, or these as two separate PRs?\n\n\u003cimg width=\"800\" height=\"514\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/89007bf2-a64e-4eee-940e-f5747a409c68\" />\n\u003cimg width=\"800\" height=\"514\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/9521910f-c049-4798-9ccc-fe01127c3ec2\" />\n\u003cimg width=\"800\" height=\"514\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/259ac608-5f0d-4c4d-a17a-504396eccb2e\" />\n\u003cimg width=\"800\" height=\"629\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c2fb6a0c-e223-4252-8f72-65911d41c469\" />\n\u003cimg width=\"800\" height=\"628\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d7e00baa-45db-4664-95ac-fed943195ba1\" />","author":{"url":"https://github.com/Nitant28","@type":"Person","name":"Nitant28"},"datePublished":"2026-10-20T22:43:29Z","url":"https://github.com/feast-dev/feast/issues/7054"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e99b085a-8af7-99d4-241a-aaf2b22a6e86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B20:230337:435E3:586B3:6AFE8F7D |
| html-safe-nonce | 6d88ef04974afb710ed38a118ffbcd29e8b723e8ffbf01404a28ade66baac315 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjIwOjIzMDMzNzo0MzVFMzo1ODZCMzo2QUZFOEY3RCIsInZpc2l0b3JfaWQiOiI1NjMyOTk2NzI2MDEzODU3NjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cb10232b86274cc592606fec9cd9ea6d589ad32e9ea9c29da143e63597245929 |
| hovercard-subject-tag | issue:5950863132 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/7054/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02c140fd46af5a8a8d35a3223e2978d1c67e6ab8b6c5be6a311170340ca2301d/feast-dev/feast/issues/7054 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02c140fd46af5a8a8d35a3223e2978d1c67e6ab8b6c5be6a311170340ca2301d/feast-dev/feast/issues/7054 |
| og:image:alt | Expected Behavior The monitoring UI shows the newest monitoring window, compares it with the baseline on the same value ranges and at a comparable scale, and plots history one window length at a ti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nitant28 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width