Skip to main content
Version: Nightly

Query Data

GreptimeDB exposes several query interfaces over the same tables. Which one to use depends on the signal and on the tool doing the asking.

Query languages​

  • SQL — queries across metrics, logs, and traces, including range queries. Views and common table expressions factor out a query you write repeatedly.
  • PromQL — metric queries through the Prometheus HTTP API, or TQL inside SQL.
  • Jaeger API — trace queries from Jaeger UI or Grafana.
  • Log Query — a dedicated HTTP endpoint for log search. Experimental.

Clients and drivers​

GreptimeDB speaks the MySQL and PostgreSQL wire protocols, so existing SQL drivers connect to it without a GreptimeDB-specific client. SQL Tools lists the drivers and their connection settings.

Query files that were never ingested​

GreptimeDB can run SQL over external data files in place. See Query External Data.