Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Return measurements to users in HTTP response #1130

@shanson7

Description

@shanson7

Metrictank publishes a lot of metrics around cache hits, timings, etc. but while optimizing / analyzing individual queries, a lot of this gets lost. Jaeger is somewhat helpful but not sufficient for a variety of reasons (request volume, sampling, etc).

It would be nice if there could be a flag to indicate that stats should be returned with the response that can aid in figuring out what was triggered by this request. Some useful stats might be:

  • Time spent resolving the targets into a concrete list of series
  • Time spent fetching the data
  • Cache usage (tank, chunk cache, cassandra) plus timings
  • Pre-run logic (mergeSeries, sorting, etc)
  • Plan run time
  • The number of points pulled in, the number of points returned, the series pulled in.

Most of these stats are already collected for Jaeger and/or publishing as aggregate metrics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions