Repository navigation
Commit 485d28f
committed
feat: Add HTTP status class label to feature server request metrics
feast_feature_server_request_total was labelled with endpoint and a
status that was only ever "success" or "error", and the status came
from whether the handler raised. Client errors and server errors fell
into the same bucket, and handlers that returned an error response
without raising (a 404 or 422 from the vector store search, a 409 when
a materialization is already running) were counted as successes.
The counter now carries a status_class label (2xx, 4xx, 5xx) taken
from the HTTP status code the server responds with:
- When the handler raises, the status code is derived the same way the
REST exception handling answers: FeastError subclasses use their own
http_status_code(), HTTPException uses its status_code, and anything
else is a 500.
- RequestMetricsContext gains a status_code attribute (default 200)
that handlers set when they return a non-2xx response. The vector
store search and the async /materialize and
/materialize-incremental conflict paths now do so.
The existing status label is kept for dashboards and alerts that use
it, and is now derived from the status code as well: "success" below
400 and "error" otherwise.
The metrics reference and the performance tuning guide document the
new label.
Fixes #6641
Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>1 parent ff8abe0 commit 485d28f
5 files changed
Lines changed: 222 additions & 25 deletions
File tree
- docs
- how-to-guides
- reference/feature-servers
- sdk/python
- feast
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
408 | 427 | | |
409 | 428 | | |
410 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| 857 | + | |
857 | 858 | | |
858 | 859 | | |
859 | 860 | | |
| |||
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
| 868 | + | |
867 | 869 | | |
868 | 870 | | |
869 | 871 | | |
| |||
1027 | 1029 | | |
1028 | 1030 | | |
1029 | 1031 | | |
1030 | | - | |
| 1032 | + | |
1031 | 1033 | | |
1032 | 1034 | | |
1033 | 1035 | | |
| |||
1039 | 1041 | | |
1040 | 1042 | | |
1041 | 1043 | | |
| 1044 | + | |
1042 | 1045 | | |
1043 | 1046 | | |
1044 | 1047 | | |
| |||
1086 | 1089 | | |
1087 | 1090 | | |
1088 | 1091 | | |
1089 | | - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1090 | 1095 | | |
1091 | 1096 | | |
1092 | 1097 | | |
| |||
1098 | 1103 | | |
1099 | 1104 | | |
1100 | 1105 | | |
| 1106 | + | |
1101 | 1107 | | |
1102 | 1108 | | |
1103 | 1109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
316 | 321 | | |
317 | 322 | | |
318 | | - | |
| 323 | + | |
319 | 324 | | |
320 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
321 | 331 | | |
322 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
323 | 357 | | |
324 | 358 | | |
325 | 359 | | |
| |||
328 | 362 | | |
329 | 363 | | |
330 | 364 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
336 | 375 | | |
337 | 376 | | |
338 | 377 | | |
| |||
342 | 381 | | |
343 | 382 | | |
344 | 383 | | |
345 | | - | |
346 | 384 | | |
347 | 385 | | |
348 | | - | |
349 | | - | |
| 386 | + | |
| 387 | + | |
350 | 388 | | |
351 | 389 | | |
352 | 390 | | |
| |||
355 | 393 | | |
356 | 394 | | |
357 | 395 | | |
358 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
359 | 401 | | |
360 | 402 | | |
361 | 403 | | |
| |||
0 commit comments