Skip to content

Support to query QueryRange non-delta profiles buckets from FrostDB #2598

@metalmatze

Description

@metalmatze

Most of the work needs to be done in FrostDB: polarsignals/frostdb#347

// TODO: This still queries way too much data from the underlying database.
// This needs to be moved to FrostDB to not even query all of this data in the first place.
// With a scrape interval of 10s and a query range of 1d we'd query 8640 samples and at most return 960.
// Even worse for a week, we'd query 60480 samples and only return 1000.
tsBucket := ts / 1000 / int64(step.Seconds())
if _, found := resSeriesBuckets[index][tsBucket]; found {
// We already have a MetricsSample for this timestamp bucket, ignore it.
continue
}

This issue is mostly to keep track of updating Parca once the necessary parts have been implemented in FrostDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/storageSomething about the storageenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions