Skip to content

Add a counter for chunks removed from the flush queue but not flushed #2287

@bboreham

Description

@bboreham

If a chunk is idle and added to the flush queue, then gets new samples shortly before it is dequeued, it will no longer be idle so simply ignored.

It seems like a nice property to be able to add up all reasons why chunks are added to the queue and all reasons they are removed and have them total the same number.

Specifically in the current code, the total cortex_ingester_flush_reasons does not equal the sum of cortex_ingester_chunks_stored_total and cortex_ingester_dropped_chunks_total.

(and saying that makes me realise stored and dropped should be labels on one metric)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese are great first issues. If you are looking for a place to start, start here!type/observabilityTo help know what is going on inside Cortex

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions