- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
You can write a query in DDSQL Editor in natural language or in SQL. See the DDSQL reference for supported SQL expressions and usage details. Example queries are also provided throughout the UI.
This example flow highlights the key features of DDSQL Editor. If the example query isn’t suitable for your data, you can use your own query instead.
Most common instance types
.The resulting generated query is similar to the one below.
SELECT instance_type,
COUNT(*) AS count
FROM host
GROUP BY instance_type
ORDER BY count DESC;
If you aren’t sure which fields contain the data you want, you can use the schema explorer to examine the available tables, their columns, and their relationships to other tables:
host
table, so click All Tables > Hosts > host to view the available fields. Decide which field to add to the query. This example uses availability_zone
.availability_zone
to the result:SELECT instance_type, availability_zone,
COUNT(*) AS count
FROM host
GROUP BY instance_type, availability_zone
ORDER BY count DESC;
Tags can be queried as if they are table columns. Add a WHERE
clause to the query to only count instances in production:
SELECT instance_type, availability_zone,
COUNT(*) AS count
FROM host
WHERE #env = 'prod' -- Use '#' in front of tag names
GROUP BY instance_type, availability_zone
ORDER BY count DESC;
See Querying Tags in DDSQL for details.
To generate a share link for the query:
If you forget to save a useful query before navigating away from it, you can still access it in the Recent Queries pane. Click the clock icon in the left sidebar to view a list of recent queries.