With DDSQL Editor, you can get deeper visibility into your infrastructure by querying your resources with natural language or with DDSQL, a dialect of SQL with additional support for querying tags.
Query in natural language
Type your question into the search box, and Datadog builds the SQL query for you.
Use SQL syntax (DDSQL)
DDSQL is a query language for Datadog data. It implements several standard SQL operations, such as SELECT, and allows queries against unstructured data, such as tags. Get exactly the data you want by writing your own SELECT statement. Query tags as if they are standard table columns.
SELECTinstance_type,count(instance_type)FROMaws_ec2_instanceWHEREenv='staging'-- env is a tag, not a column
GROUPBYinstance_type
For more information on DDSQL queries, see the DDSQL References: