File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
examples/datadoggenericresource Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ A `DatadogGenericResource` object has two fields:
5050| `synthetics_browser_test` | v1.12.0 | https://docs.datadoghq.com/api/latest/synthetics/#create-a-browser-test | [Browser test manifest](../examples/datadoggenericresource/browser-test-sample.yaml) |
5151| `monitor` | v1.13.0 | https://docs.datadoghq.com/api/latest/monitors/#create-a-monitor | [Monitor manifest](../examples/datadoggenericresource/monitor-sample.yaml) |
5252| `downtime` | v1.22.0 | https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime | [Downtime manifest](../examples/datadoggenericresource/downtime-sample.yaml) |
53+ | `dashboard` | v1.27.0 | https://docs.datadoghq.com/api/latest/dashboards/#create-a-dashboard | [Dashboard manifest](../examples/datadoggenericresource/dashboard-sample.yaml) |
5354
5455# # Prerequisites
5556
Original file line number Diff line number Diff line change 1+ apiVersion : datadoghq.com/v1alpha1
2+ kind : DatadogGenericResource
3+ metadata :
4+ name : ddgr-dashboard-sample
5+ spec :
6+ type : dashboard
7+ jsonSpec : |-
8+ {
9+ "title": "Example Dashboard (DatadogGenericResource)",
10+ "layout_type": "ordered",
11+ "tags": [
12+ "team:example"
13+ ],
14+ "widgets": [
15+ {
16+ "definition": {
17+ "type": "timeseries",
18+ "title": "System CPU Usage",
19+ "title_size": "16",
20+ "title_align": "left",
21+ "show_legend": true,
22+ "requests": [
23+ {
24+ "formulas": [
25+ {
26+ "formula": "query1"
27+ }
28+ ],
29+ "queries": [
30+ {
31+ "name": "query1",
32+ "data_source": "metrics",
33+ "query": "avg:system.cpu.user{*} by {host}"
34+ }
35+ ],
36+ "response_format": "timeseries",
37+ "style": {
38+ "palette": "dog_classic",
39+ "line_type": "solid",
40+ "line_width": "normal"
41+ },
42+ "display_type": "line"
43+ }
44+ ]
45+ },
46+ "layout": {
47+ "x": 0,
48+ "y": 0,
49+ "width": 6,
50+ "height": 3
51+ }
52+ }
53+ ]
54+ }
You can’t perform that action at this time.
0 commit comments