Skip to content

Support for Query Insights to enable performance and cost analysis #400

@MarcBridner

Description

@MarcBridner

Is your feature request related to a problem? Please describe.
We recently saw a $3k spike in our Timestream bill during a single day. We only run dashboards off of our Timestream instance and we suspect that a user forgot the WHERE clause on a query and/or had a really low refresh interval. We have 1000's of panels, so tracking the cause down is difficult to say the least.

Timestream does not expose any useful metrics on a per-query level in a centralized place, but there is a Query Insights feature that can be used to do performance and cost optimizations.

Query Insights is enabled per query and adds execution path metadata to the response.

  1. https://docs.aws.amazon.com/timestream/latest/developerguide/API_query_QueryInsights.html
  2. https://docs.aws.amazon.com/timestream/latest/developerguide/API_query_QueryInsightsResponse.html

Describe the solution you'd like
I would like an option to turn on Query Insights for all queries, and log the resulting query insight responses to a separate file on the Grafana host(s).

This would allow us to ship logs elsewhere for analysis.

Describe alternatives you've considered
No alternative that does not increase complexity.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions