Skip to content

Commit 070fc64

Browse files
committed
fix: add missing post-development tasks
Signed-off-by: Wassim DHIF <wassim.dhif@datadoghq.com>
1 parent 29b074a commit 070fc64

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

docs/datadog_generic_resource.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
}

0 commit comments

Comments
 (0)