feat: Make feature-count latency histogram bins configurable
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- observability
Research direction
Start with sdk/python/feast/metrics.py and sdk/python/feast/feature_server.py, tracing RequestMetricsContext.feature_count and track_request_latency. Review MetricsConfig and the feature-server documentation to determine how feature_count_bins should be exposed; done means configurable bounded bin labels are used, with the suggested defaults documented and feature_view_count addressed if applicable.
Written by the indexing model from the issue text.
Description
Follow-up from #5920 (Improve Feature Server Observability).
Problem
request_latency in sdk/python/feast/metrics.py is labeled with feature_count using the raw count of features requested (see track_request_latency / RequestMetricsContext.feature_count). Raw counts create unbounded label cardinality — every distinct feature count seen in production becomes its own time series. The issue asks for configurable bins instead, e.g. 1-10, 11-50, 51-200, 201+.
Proposed solution
- Add a binning function (e.g.
bin_feature_count(count: int, bins: list[int]) -> str) that maps a raw feature count to a bin label like"1-10","11-50","51-200","201+". - Default bins should match the issue's suggestion (
1-10, 11-50, 51-200, 201+) but should be configurable viaMetricsConfiginfeature_store.yaml(e.g.metrics.feature_count_bins: [10, 50, 200]). - Apply this wherever
feature_countis currently set as a raw value before being passed intoRequestMetricsContextinsdk/python/feast/feature_server.py. - Same treatment could apply to
feature_view_count. - Update relevant docs (
docs/getting-started/components/feature-server.mdor wherever metrics config is documented) to describe the new config option.
cc: @jyejare @ntkathole
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 1.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 107
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from feast-dev/feast
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLPossibly taken @liron-velocity claimed this 50 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldPossibly taken @OHMFOHS claimed this 99 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
kind/bug priority/p2
Difficulty 1/5 Under an hour Newbie friendliness 90/100
feast-dev/feast#6778 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdPossibly taken @prathameshfuke claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day