Skip to content

Support custom SQL in searches + alerts #1362

@benjreinhart

Description

@benjreinhart

Coming from other tools, hyperdx feels quite rigid. It would go along way to support custom queries for searches (and maybe charts). The custom queries should also support alerting functionality. We use custom queries and alerts on those in axiom, for example. While I think it's good to strive for having high-level UI primitives for most things, I don't think that'll cover 100% of user needs, so it would be very powerful to allow folks to write custom queries and setup alerts over those queries.

This is maybe not the best example, but I was trying to calculate rate. The screenshot below demonstrates a few issues:

  1. Sort of working, but verry clunky to put in custom SQL
  2. bug: adds my default fields to select even though I removed them
  3. bug: adds order by even though I removed it
  4. Because it adds order by and other fields, query doesn't work
Image

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