|
2 | 2 | "site": "datadoghq.eu", |
3 | 3 | "dashboards": [ |
4 | 4 | { |
5 | | - "id": "example-dashboard", |
6 | | - "title": "Example API Overview", |
7 | | - "tags": ["team:example"], |
| 5 | + "id": "abc-123", |
| 6 | + "title": "Production API Overview", |
| 7 | + "url": "https://app.datadoghq.eu/dashboard/abc-123", |
| 8 | + "tags": ["env:prod", "team:platform"], |
8 | 9 | "widgets": [ |
9 | | - { "id": "w1", "type": "timeseries", "title": "Requests", "query": "sum:example.requests{env:prod}.as_count()" } |
10 | | - ] |
| 10 | + { |
| 11 | + "id": "w1", |
| 12 | + "type": "timeseries", |
| 13 | + "title": "CPU by service", |
| 14 | + "query": "avg:system.cpu.user{env:prod} by {service}" |
| 15 | + }, |
| 16 | + { |
| 17 | + "id": "w2", |
| 18 | + "type": "note", |
| 19 | + "title": "Migration notes" |
| 20 | + } |
| 21 | + ], |
| 22 | + "queries": ["sum:trace.http.request.errors{env:prod}.as_count()"] |
11 | 23 | } |
12 | 24 | ], |
13 | 25 | "monitors": [ |
14 | 26 | { |
15 | | - "id": "example-monitor", |
16 | | - "name": "Example request errors", |
| 27 | + "id": "123456", |
| 28 | + "name": "High error rate", |
17 | 29 | "type": "query alert", |
18 | | - "query": "sum(last_5m):sum:example.errors{env:prod}.as_count() > 1", |
19 | | - "notificationTargets": ["slack-example"], |
20 | | - "tags": ["team:example"] |
| 30 | + "query": "sum(last_5m):avg:trace.http.request.errors{env:prod} > 10", |
| 31 | + "message": "Investigate API errors @slack-platform", |
| 32 | + "notificationTargets": ["slack-platform"], |
| 33 | + "tags": ["env:prod", "team:platform"], |
| 34 | + "runbookUrl": "https://runbooks.example.invalid/high-error-rate" |
| 35 | + }, |
| 36 | + { |
| 37 | + "id": "789012", |
| 38 | + "name": "Latency anomaly", |
| 39 | + "type": "query alert", |
| 40 | + "query": "avg(last_15m):anomalies(avg:trace.http.request.duration{env:prod}, 'basic', 2) >= 1", |
| 41 | + "message": "Latency anomaly @webhook-custom", |
| 42 | + "notificationTargets": ["webhook-custom"], |
| 43 | + "tags": ["env:prod"] |
| 44 | + } |
| 45 | + ], |
| 46 | + "slos": [ |
| 47 | + { |
| 48 | + "id": "slo-123", |
| 49 | + "name": "API availability", |
| 50 | + "target": 99.9, |
| 51 | + "timeframe": "30d" |
21 | 52 | } |
22 | 53 | ], |
23 | | - "slos": [], |
24 | | - "integrations": [], |
25 | | - "metrics": [] |
| 54 | + "integrations": [ |
| 55 | + { |
| 56 | + "name": "kubernetes", |
| 57 | + "enabled": true, |
| 58 | + "tags": ["env:prod"] |
| 59 | + } |
| 60 | + ], |
| 61 | + "metrics": [ |
| 62 | + { |
| 63 | + "name": "system.cpu.user", |
| 64 | + "tags": ["env", "service"] |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "trace.http.request.errors", |
| 68 | + "tags": ["env", "service"] |
| 69 | + } |
| 70 | + ] |
26 | 71 | } |
0 commit comments