트리맵 위젯을 사용하면 하나 이상의 데이터세트의 비율을 표시할 수 있습니다. 이 위젯은 해당 비율의 단일 데이터세트 또는 중첩된 비율의 여러 데이터세트를 표시할 수 있습니다.
설정
- 메트릭 또는 이벤트에서 하나 이상의 데이터 소스를 선택합니다.
- 메트릭: 메트릭 쿼리를 구성하려면 쿼리 가이드를 참조하세요.
- 이벤트: 로그 이벤트 쿼리를 설정하려면 로그 검색 가이드를 참조하세요.
- (선택 사항) 수식으로 쿼리를 수정합니다.
- 그래프를 맞춤 설정합니다.
맞춤 설정
컨텍스트 링크
컨텍스트 링크는 기본적으로 활성화되어 있으며, 켜거나 끌 수 있습니다. 컨텍스트는 대시보드 위젯을 다른 페이지(Datadog 또는 제3자)와 연결합니다.
표시 및 상호 작용
필터링 및 초점
여러 데이터 그룹이 한 번에 표시되는 경우 장치를 단일 범주로 필터링하고 그 안에 있는 비율을 볼 수 있습니다.
단일 범주를 필터링하고 초점을 맞추려면 해당 범주의 바깥 부분을 마우스로 가리키고 클릭합니다. 이전 보기로 돌아가려면 위젯의 왼쪽 상단 헤더에 있는 back 버튼을 클릭하세요.
컨텍스트 메뉴에 액세스
컨텍스트 메뉴에 액세스하려면 먼저 개별 범주 위로 마우스를 가져가세요. 이는 다음 예에서 Canada 또는 Canada > Chrome과 같은 중첩된 범주 또는 그룹일 수 있습니다. 이후 오른쪽 상단 모서리에 수직 줄임표 버튼이 나타납니다. 클릭하면 컨텍스트 메뉴가 나타납니다.
전체 화면
전체 화면에서 트리맵 위젯을 보면 전체 화면 옵션의 표준 세트가 나타납니다.
API
이 위젯은 Dashboards API와 함께 사용할 수 있습니다.
트리맵 위젯의 전용 위젯 JSON 스키마 정의는 다음과 같습니다.
Expand All
DEPRECATED: (deprecated) The attribute formerly used to determine color in the widget.
Allowed enum values: user
default: user
The flag for toggling context menu link visibility.
The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables.
The URL of the custom link. URL must include http
or https
. A relative URL must start with /
.
The label ID that refers to a context menu link. Can be logs
, hosts
, traces
, profiles
, processes
, containers
, or rum
.
DEPRECATED: (deprecated) The attribute formerly used to group elements in the widget.
Allowed enum values: user,family,process
List of treemap widget requests.
List of formulas that operate on queries.
Define a display mode for the table cell.
Allowed enum values: number,bar
List of conditional formats.
Comparator to apply.
Allowed enum values: =,>,>=,<,<=
Color palette to apply to the background, same values available as palette.
Color palette to apply to the foreground, same values available as palette.
Displays an image as the background.
Metric from the request to correlate this conditional format with.
Color palette to apply.
Allowed enum values: blue,custom_bg,custom_image,custom_text,gray_on_white,grey,green,orange,red,red_on_white,white_on_gray,white_on_green,green_on_white,white_on_red,white_on_yellow,yellow_on_white,black_on_light_yellow,black_on_light_green,black_on_light_red
Defines the displayed timeframe.
Value for the comparator.
String expression built from queries, formulas, and functions.
Options for limiting results returned.
Number of results to return.
Direction of sort.
Allowed enum values: asc,desc
default: desc
Styling options for widget formulas.
Index specifying which color to use within the palette.
The widget metrics query.
List of queries that can be returned directly or used in formulas.
A formula and functions metrics query.
The aggregation methods available for metrics queries.
Allowed enum values: avg,min,max,sum,last,area,l2norm,percentile
Data source for metrics queries.
Allowed enum values: metrics
Name of the query for use in formulas.
Metrics query definition.
A formula and functions events query.
Aggregation methods for event platform queries.
Allowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg
A time interval in milliseconds.
Measurable attribute to compute.
Data source for event platform-based queries.
Allowed enum values: logs,spans,network,rum,security_signals,profiles,audit,events,ci_tests,ci_pipelines
Number of groups to return.
Options for sorting group by results.
Aggregation methods for event platform queries.
Allowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min,max,avg
Metric used for sorting group by results.
Direction of sort.
Allowed enum values: asc,desc
default: desc
An array of index names to query in the stream. Omit or use []
to query all indexes at once.
Name of the query for use in formulas.
Option for storage location. Feature in Private Beta.
Process query using formulas and functions.
The aggregation methods available for metrics queries.
Allowed enum values: avg,min,max,sum,last,area,l2norm,percentile
Data sources that rely on the process backend.
Allowed enum values: process,container
Whether to normalize the CPU percentages.
Number of hits to return.
Name of query for use in formulas.
Direction of sort.
Allowed enum values: asc,desc
default: desc
An array of tags to filter by.
A formula and functions APM dependency stats query.
Data source for APM dependency stats queries.
Allowed enum values: apm_dependency_stats
Determines whether stats for upstream or downstream dependencies should be queried.
Name of query to use in formulas.
operation_name [required]
Name of operation on service.
Filter APM data by the second primary tag. primary_tag_name
must also be specified.
APM statistic.
Allowed enum values: avg_duration,avg_root_duration,avg_spans_per_trace,error_rate,pct_exec_time,pct_of_traces,total_traces_count
APM resource stats query using formulas and functions.
Data source for APM resource stats queries.
Allowed enum values: apm_resource_stats
Array of fields to group results by.
Name of this query to use in formulas.
Name of operation on service.
Value of the second primary tag by which to filter APM data. primary_tag_name
must also be specified.
APM resource stat name.
Allowed enum values: errors,error_rate,hits,latency_avg,latency_distribution,latency_max,latency_p50,latency_p75,latency_p90,latency_p95,latency_p99
A formula and functions metrics query.
Additional filters applied to the SLO query.
Data source for SLO measures queries.
Allowed enum values: slo
Group mode to query measures.
Allowed enum values: overall,components
SLO measures queries.
Allowed enum values: good_events,bad_events,slo_status,error_budget_remaining,burn_rate,error_budget_burndown
Name of the query for use in formulas.
ID of an SLO to query measures.
Name of the query for use in formulas.
Allowed enum values: metric
A formula and functions Cloud Cost query.
Aggregator used for the request.
Allowed enum values: avg,last,max,min,sum,percentile
Data source for Cloud Cost queries.
Allowed enum values: cloud_cost
Name of the query for use in formulas.
Query for Cloud Cost data.
Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
Allowed enum values: timeseries,scalar,event_list
DEPRECATED: (deprecated) The attribute formerly used to determine size in the widget.
Allowed enum values: pct_cpu,pct_mem
Time setting for the widget.
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,week_to_date,month_to_date,1y,alert
Type of the treemap widget.
Allowed enum values: treemap
default: treemap
{
"color_by": "user",
"custom_links": [
{
"is_hidden": false,
"label": "Search logs for {{host}}",
"link": "https://app.datadoghq.com/logs?query={{host}}",
"override_label": "logs"
}
],
"group_by": "user",
"requests": [
{
"formulas": [
{
"alias": "string",
"cell_display_mode": "number",
"conditional_formats": [
{
"comparator": ">",
"custom_bg_color": "string",
"custom_fg_color": "string",
"hide_value": false,
"image_url": "string",
"metric": "string",
"palette": "blue",
"timeframe": "string",
"value": 0
}
],
"formula": "func(a) + b",
"limit": {
"count": "integer",
"order": "string"
},
"style": {
"palette": "classic",
"palette_index": 1
}
}
],
"q": "string",
"queries": [],
"response_format": "timeseries"
}
],
"size_by": "pct_cpu",
"time": {
"live_span": "5m"
},
"title": "string",
"type": "treemap"
}
파이 차트 위젯
트리맵 위젯과 마찬가지로 파이 차트 위젯도 중첩된 비율을 표시하는 데 사용할 수 있습니다. 둘의 주요 차이점은 파이 차트는 방사형 조각으로 비율을 표시하고, 트리맵은 중첩된 사각형을 표시한다는 것입니다.
참고 자료
Additional helpful documentation, links, and articles: