Skip to content

Support for grouping explorer results by custom tags #1099

Open
@subintp

Description

@subintp

Use Case

Visualize traffic patterns like calls count, P99 latency, error across IP, user_id, api_key, etc via the explorer tab.

This will help us debug issues like

  1. Latency/Errors spike specific to a user or customer
  2. Request spikes from particular IPs or API keys

Proposal

Screenshot 2021-09-01 at 12 51 00 AM

The above use cases can be solved in a generic fashion by grouping explorer query results based on custom tags. Currently, there is no way we can solve this issue via prometheus+grafana due to the high cardinality of these tags. Addition of feature will be makes explorer tab more powerful

Tasks

Based on the below conversation, converting the high-level items discussed here to sub-tasks for this ticket.

Query Service:

Gateway Service

  • API support for receiving attribute expressions in all places a ColumnIdentifier is currently received
  • Impl support for translating attribute expressions into QS attribute expressions
  • Deprecations of ColumnIdentifier expression

GraphQL service:

  • API support for receiving attribute expressions all places string keys are currently received
  • Impl support for translating into GW attribute expressions
  • Deprecations of string keys input

UI

  • Implementing new UX definintation for groupby
  • Update GQL queries to pass attribute expressions

Metadata

Metadata

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