Commit Graph

4 Commits (2fd68ea75fd17f52e861e97e0f108d961d539995)

Author SHA1 Message Date
Dom Dwyer bd64f55658 feat: http ingest metrics
Records LP line count, field count & request body size (decompressed,
byte size) for writes, and request body byte size for deletes.
2022-03-02 13:05:55 +00:00
Marco Neumann 48722783f9
feat: offer metrics for in-mem catalog (#3876)
This can be quite helpful to test certain caching behavior w/o writing
yet-another abstraction layer.
2022-03-01 11:33:54 +00:00
Dom Dwyer d7eda88581 refactor: early schema validation
Changes the configuration of the router request pipeline to move schema
validation before partitioning.

This reduces the concurrency of callsm into the schema validator when a
single write is split into one or more partitions, reducing contention
and cash thrashing. It also ensures we don't bother partitioning the
writes if the request will fail.
2022-02-23 18:59:14 +00:00
Dom Dwyer 497615d715 test: router handler stack integration test
Adds an integration test covering the router's HTTP handler stack.

Given a well-formed HTTP write, the test asserts:

    * Write passes through the stack without error
    * Response code sent to client
    * Write buffer message is enqueued
    * Catalog namespace record is created
    * Metric handler is invoked and the hit is recorded
2022-02-18 14:39:03 +00:00