- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
This page provides an example of how to use the custom chart component in your App Builder apps.
The basic workflow for creating a custom chart is as follows:
The following example shows how to create a histogram chart illustrating Datadog Logs grouped by service.
searchLogs0
.logs
, expand 0
, then expand content
. This shows the available properties for each log.Click + All Components and select Custom Chart to add a component called customChart0
.
Click Show Chart Examples.
Select Simple Histogram and click Confirm.
The following value populates in the Vega Specification:
${{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"url": "https://vega.github.io/editor/data/movies.json"
},
"mark": {
"type": "bar",
"tooltip": true
},
"encoding": {
"x": {
"bin": true,
"field": "IMDB Rating"
},
"y": {
"aggregate": "count"
}
}
}}
Replace the auto-populated Vega Specification with the following to change the data source and the value being graphed on the x-axis:
${{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": searchLogs0.outputs.logs
},
"mark": {
"type": "bar",
"tooltip": true
},
"encoding": {
"x": {
"field": "content.service"
},
"y": {
"aggregate": "count"
}
}
}}
A histogram chart with your Datadog Logs data displays.
추가 유용한 문서, 링크 및 기사:
Do you have questions or feedback? Join the #app-builder channel on the Datadog Community Slack.