proagents 1.6.16 → 1.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +169 -0
- package/COMMANDS.md +595 -0
- package/README.md +22 -64
- package/bin/proagents.js +0 -2
- package/lib/commands/init.js +4 -174
- package/package.json +2 -7
- package/.proagents/ai-models/README.md +0 -141
- package/.proagents/ai-models/cost-management.md +0 -362
- package/.proagents/ai-models/fallbacks.md +0 -342
- package/.proagents/ai-models/model-config.md +0 -318
- package/.proagents/ai-models/task-routing.md +0 -503
- package/.proagents/ai-training/README.md +0 -155
- package/.proagents/ai-training/continuous-learning.md +0 -413
- package/.proagents/ai-training/domain-knowledge.md +0 -378
- package/.proagents/ai-training/pattern-learning.md +0 -455
- package/.proagents/ai-training/training-data.md +0 -337
- package/.proagents/ai-training/user-preferences.md +0 -346
- package/.proagents/approval-workflows/README.md +0 -146
- package/.proagents/approval-workflows/approval-config.md +0 -332
- package/.proagents/approval-workflows/approval-stages.md +0 -503
- package/.proagents/approval-workflows/emergency-bypass.md +0 -351
- package/.proagents/approval-workflows/examples.md +0 -859
- package/.proagents/approval-workflows/notifications.md +0 -320
- package/.proagents/compliance/README.md +0 -206
- package/.proagents/compliance/access-control.md +0 -310
- package/.proagents/compliance/audit-logging.md +0 -444
- package/.proagents/compliance/compliance-frameworks.md +0 -429
- package/.proagents/compliance/reports.md +0 -491
- package/.proagents/compliance/retention-policies.md +0 -454
- package/.proagents/config-versioning/README.md +0 -120
- package/.proagents/config-versioning/changelog.md +0 -300
- package/.proagents/config-versioning/rollback.md +0 -283
- package/.proagents/config-versioning/versioning.md +0 -330
- package/.proagents/contract-testing/README.md +0 -223
- package/.proagents/contract-testing/contract-testing.md +0 -614
- package/.proagents/contract-testing/pact-integration.md +0 -507
- package/.proagents/contract-testing/schema-validation.md +0 -565
- package/.proagents/dependency-management/README.md +0 -140
- package/.proagents/dependency-management/automation.md +0 -363
- package/.proagents/dependency-management/compatibility.md +0 -319
- package/.proagents/dependency-management/security-scanning.md +0 -413
- package/.proagents/dependency-management/update-policies.md +0 -374
- package/.proagents/disaster-recovery/README.md +0 -247
- package/.proagents/disaster-recovery/automation.md +0 -366
- package/.proagents/disaster-recovery/backup-recovery.md +0 -571
- package/.proagents/disaster-recovery/incident-response.md +0 -565
- package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
- package/.proagents/disaster-recovery/runbooks.md +0 -603
- package/.proagents/disaster-recovery/scenarios.md +0 -892
- package/.proagents/disaster-recovery/testing.md +0 -438
- package/.proagents/environments/README.md +0 -244
- package/.proagents/environments/configuration.md +0 -437
- package/.proagents/environments/promotion.md +0 -434
- package/.proagents/environments/setup.md +0 -420
- package/.proagents/examples/README.md +0 -55
- package/.proagents/examples/backend-nodejs/README.md +0 -188
- package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
- package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
- package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
- package/.proagents/examples/fullstack-nextjs/README.md +0 -155
- package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
- package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
- package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
- package/.proagents/examples/mobile-react-native/README.md +0 -171
- package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
- package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
- package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
- package/.proagents/examples/web-frontend-react/README.md +0 -125
- package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
- package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
- package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
- package/.proagents/existing-projects/README.md +0 -65
- package/.proagents/existing-projects/challenges.md +0 -861
- package/.proagents/existing-projects/coexistence-mode.md +0 -483
- package/.proagents/existing-projects/compatibility-assessment.md +0 -541
- package/.proagents/existing-projects/gradual-adoption.md +0 -515
- package/.proagents/existing-projects/migration-strategies.md +0 -788
- package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
- package/.proagents/existing-projects/team-onboarding.md +0 -617
- package/.proagents/existing-projects/technical-debt-handling.md +0 -644
- package/.proagents/feature-flags/README.md +0 -263
- package/.proagents/feature-flags/ab-testing.md +0 -413
- package/.proagents/feature-flags/configuration.md +0 -420
- package/.proagents/feature-flags/kill-switches.md +0 -444
- package/.proagents/feature-flags/rollout-strategies.md +0 -392
- package/.proagents/history.log +0 -12
- package/.proagents/i18n/README.md +0 -133
- package/.proagents/i18n/extraction.md +0 -433
- package/.proagents/i18n/tms-integration.md +0 -332
- package/.proagents/i18n/translation-workflow.md +0 -413
- package/.proagents/i18n/validation.md +0 -355
- package/.proagents/logging/README.md +0 -276
- package/.proagents/logging/aggregation.md +0 -475
- package/.proagents/logging/log-levels.md +0 -376
- package/.proagents/logging/sensitive-data.md +0 -423
- package/.proagents/logging/structured-logging.md +0 -406
- package/.proagents/metrics/README.md +0 -69
- package/.proagents/metrics/code-quality-kpis.md +0 -461
- package/.proagents/metrics/deployment-metrics.md +0 -517
- package/.proagents/metrics/developer-productivity.md +0 -368
- package/.proagents/metrics/learning-effectiveness.md +0 -478
- package/.proagents/migrations/README.md +0 -77
- package/.proagents/migrations/from-claude-projects.md +0 -313
- package/.proagents/migrations/from-cursor-rules.md +0 -345
- package/.proagents/migrations/from-custom-workflows.md +0 -410
- package/.proagents/monitoring/README.md +0 -308
- package/.proagents/monitoring/alerting.md +0 -449
- package/.proagents/monitoring/dashboards.md +0 -454
- package/.proagents/monitoring/health-checks.md +0 -436
- package/.proagents/monitoring/metrics.md +0 -434
- package/.proagents/multi-project/README.md +0 -170
- package/.proagents/multi-project/coordinated-deploy.md +0 -510
- package/.proagents/multi-project/cross-project-deps.md +0 -395
- package/.proagents/multi-project/unified-changelog.md +0 -477
- package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
- package/.proagents/multi-project/workspace-config.md +0 -408
- package/.proagents/notifications/README.md +0 -151
- package/.proagents/notifications/channels.md +0 -457
- package/.proagents/notifications/preferences.md +0 -415
- package/.proagents/notifications/routing.md +0 -449
- package/.proagents/notifications/scheduling.md +0 -425
- package/.proagents/notifications/templates.md +0 -446
- package/.proagents/offline-mode/README.md +0 -145
- package/.proagents/offline-mode/caching.md +0 -344
- package/.proagents/offline-mode/offline-operations.md +0 -312
- package/.proagents/offline-mode/queue-specifications.md +0 -679
- package/.proagents/offline-mode/sync.md +0 -475
- package/.proagents/parallel-features/README.md +0 -85
- package/.proagents/parallel-features/conflict-detection.md +0 -226
- package/.proagents/parallel-features/dependency-management.md +0 -392
- package/.proagents/parallel-features/merge-coordination.md +0 -506
- package/.proagents/parallel-features/tracking-system.md +0 -416
- package/.proagents/performance/README.md +0 -59
- package/.proagents/performance/bundle-analysis.md +0 -375
- package/.proagents/performance/load-testing.md +0 -563
- package/.proagents/performance/runtime-metrics.md +0 -489
- package/.proagents/performance/web-vitals.md +0 -425
- package/.proagents/plugins/README.md +0 -139
- package/.proagents/plugins/creating-plugins.md +0 -504
- package/.proagents/plugins/plugin-api.md +0 -467
- package/.proagents/plugins/plugin-registry.md +0 -276
- package/.proagents/reporting/README.md +0 -158
- package/.proagents/reporting/dashboards.md +0 -366
- package/.proagents/reporting/exports.md +0 -524
- package/.proagents/reporting/quality-metrics.md +0 -385
- package/.proagents/reporting/templates/README.md +0 -56
- package/.proagents/reporting/templates/dashboard-config.json +0 -187
- package/.proagents/reporting/templates/metrics-queries.md +0 -427
- package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
- package/.proagents/reporting/templates/widgets.md +0 -451
- package/.proagents/reporting/velocity-metrics.md +0 -340
- package/.proagents/reverse-engineering/README.md +0 -151
- package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
- package/.proagents/reverse-engineering/code-analysis.md +0 -377
- package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
- package/.proagents/reverse-engineering/diagram-generation.md +0 -586
- package/.proagents/reverse-engineering/documentation-generation.md +0 -468
- package/.proagents/reverse-engineering/pattern-detection.md +0 -569
- package/.proagents/reverse-engineering/quality-assessment.md +0 -733
- package/.proagents/secrets/README.md +0 -278
- package/.proagents/secrets/access-control.md +0 -443
- package/.proagents/secrets/rotation.md +0 -403
- package/.proagents/secrets/scanning.md +0 -487
- package/.proagents/secrets/storage.md +0 -394
- package/.proagents/webhooks/README.md +0 -126
- package/.proagents/webhooks/endpoints.md +0 -298
- package/.proagents/webhooks/events.md +0 -316
- package/.proagents/webhooks/payloads.md +0 -325
- package/.proagents/webhooks/reliability.md +0 -363
- package/.proagents/webhooks/security.md +0 -380
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
# Dashboards
|
|
2
|
-
|
|
3
|
-
Visualizing metrics and system health.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Dashboard Types
|
|
8
|
-
|
|
9
|
-
| Type | Purpose | Audience |
|
|
10
|
-
|------|---------|----------|
|
|
11
|
-
| **Overview** | System health at a glance | Everyone |
|
|
12
|
-
| **Service** | Deep dive into a service | Engineers |
|
|
13
|
-
| **Business** | KPIs and metrics | Stakeholders |
|
|
14
|
-
| **Incident** | Real-time troubleshooting | On-call |
|
|
15
|
-
| **Capacity** | Resource planning | Platform team |
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Dashboard Configuration
|
|
20
|
-
|
|
21
|
-
### Overview Dashboard
|
|
22
|
-
|
|
23
|
-
```yaml
|
|
24
|
-
# proagents.config.yaml
|
|
25
|
-
monitoring:
|
|
26
|
-
dashboards:
|
|
27
|
-
overview:
|
|
28
|
-
name: "System Overview"
|
|
29
|
-
refresh: "30s"
|
|
30
|
-
|
|
31
|
-
rows:
|
|
32
|
-
- name: "Health Summary"
|
|
33
|
-
panels:
|
|
34
|
-
- type: "stat"
|
|
35
|
-
title: "Services Healthy"
|
|
36
|
-
query: "sum(up)"
|
|
37
|
-
thresholds:
|
|
38
|
-
- value: 0
|
|
39
|
-
color: "red"
|
|
40
|
-
- value: 1
|
|
41
|
-
color: "green"
|
|
42
|
-
|
|
43
|
-
- type: "stat"
|
|
44
|
-
title: "Error Rate"
|
|
45
|
-
query: "sum(rate(http_errors_total[5m])) / sum(rate(http_requests_total[5m]))"
|
|
46
|
-
format: "percent"
|
|
47
|
-
thresholds:
|
|
48
|
-
- value: 0.01
|
|
49
|
-
color: "green"
|
|
50
|
-
- value: 0.05
|
|
51
|
-
color: "yellow"
|
|
52
|
-
- value: 0.1
|
|
53
|
-
color: "red"
|
|
54
|
-
|
|
55
|
-
- type: "stat"
|
|
56
|
-
title: "P99 Latency"
|
|
57
|
-
query: "histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))"
|
|
58
|
-
format: "seconds"
|
|
59
|
-
|
|
60
|
-
- name: "Traffic"
|
|
61
|
-
panels:
|
|
62
|
-
- type: "graph"
|
|
63
|
-
title: "Request Rate"
|
|
64
|
-
query: "sum(rate(http_requests_total[5m])) by (service)"
|
|
65
|
-
legend: "{{ service }}"
|
|
66
|
-
|
|
67
|
-
- type: "graph"
|
|
68
|
-
title: "Error Rate by Service"
|
|
69
|
-
query: "sum(rate(http_errors_total[5m])) by (service)"
|
|
70
|
-
legend: "{{ service }}"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Service Dashboard
|
|
74
|
-
|
|
75
|
-
```yaml
|
|
76
|
-
monitoring:
|
|
77
|
-
dashboards:
|
|
78
|
-
service:
|
|
79
|
-
name: "Service Details"
|
|
80
|
-
variables:
|
|
81
|
-
- name: "service"
|
|
82
|
-
type: "query"
|
|
83
|
-
query: "label_values(up, service)"
|
|
84
|
-
|
|
85
|
-
rows:
|
|
86
|
-
- name: "Golden Signals"
|
|
87
|
-
panels:
|
|
88
|
-
- type: "graph"
|
|
89
|
-
title: "Latency"
|
|
90
|
-
queries:
|
|
91
|
-
- label: "P50"
|
|
92
|
-
query: 'histogram_quantile(0.5, rate(http_request_duration_seconds_bucket{service="$service"}[5m]))'
|
|
93
|
-
- label: "P95"
|
|
94
|
-
query: 'histogram_quantile(0.95, rate(http_request_duration_seconds_bucket{service="$service"}[5m]))'
|
|
95
|
-
- label: "P99"
|
|
96
|
-
query: 'histogram_quantile(0.99, rate(http_request_duration_seconds_bucket{service="$service"}[5m]))'
|
|
97
|
-
|
|
98
|
-
- type: "graph"
|
|
99
|
-
title: "Traffic"
|
|
100
|
-
query: 'sum(rate(http_requests_total{service="$service"}[5m])) by (method)'
|
|
101
|
-
|
|
102
|
-
- type: "graph"
|
|
103
|
-
title: "Errors"
|
|
104
|
-
query: 'sum(rate(http_errors_total{service="$service"}[5m])) by (status_code)'
|
|
105
|
-
|
|
106
|
-
- type: "graph"
|
|
107
|
-
title: "Saturation"
|
|
108
|
-
queries:
|
|
109
|
-
- label: "CPU"
|
|
110
|
-
query: 'avg(cpu_usage{service="$service"})'
|
|
111
|
-
- label: "Memory"
|
|
112
|
-
query: 'avg(memory_usage{service="$service"})'
|
|
113
|
-
|
|
114
|
-
- name: "Resources"
|
|
115
|
-
panels:
|
|
116
|
-
- type: "gauge"
|
|
117
|
-
title: "CPU Usage"
|
|
118
|
-
query: 'avg(cpu_usage{service="$service"})'
|
|
119
|
-
max: 100
|
|
120
|
-
|
|
121
|
-
- type: "gauge"
|
|
122
|
-
title: "Memory Usage"
|
|
123
|
-
query: 'avg(memory_usage{service="$service"})'
|
|
124
|
-
max: 100
|
|
125
|
-
|
|
126
|
-
- type: "graph"
|
|
127
|
-
title: "Active Connections"
|
|
128
|
-
query: 'sum(active_connections{service="$service"})'
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Panel Types
|
|
134
|
-
|
|
135
|
-
### Stat Panel
|
|
136
|
-
|
|
137
|
-
```yaml
|
|
138
|
-
monitoring:
|
|
139
|
-
dashboards:
|
|
140
|
-
panels:
|
|
141
|
-
stat:
|
|
142
|
-
- title: "Total Requests"
|
|
143
|
-
query: "sum(http_requests_total)"
|
|
144
|
-
format: "short"
|
|
145
|
-
colorMode: "value"
|
|
146
|
-
graphMode: "area"
|
|
147
|
-
orientation: "auto"
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Graph Panel
|
|
151
|
-
|
|
152
|
-
```yaml
|
|
153
|
-
monitoring:
|
|
154
|
-
dashboards:
|
|
155
|
-
panels:
|
|
156
|
-
graph:
|
|
157
|
-
- title: "Request Rate"
|
|
158
|
-
type: "timeseries"
|
|
159
|
-
queries:
|
|
160
|
-
- expr: "rate(http_requests_total[5m])"
|
|
161
|
-
legendFormat: "{{ method }} {{ path }}"
|
|
162
|
-
yAxis:
|
|
163
|
-
label: "requests/sec"
|
|
164
|
-
min: 0
|
|
165
|
-
tooltip:
|
|
166
|
-
mode: "all"
|
|
167
|
-
legend:
|
|
168
|
-
showLegend: true
|
|
169
|
-
placement: "bottom"
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Table Panel
|
|
173
|
-
|
|
174
|
-
```yaml
|
|
175
|
-
monitoring:
|
|
176
|
-
dashboards:
|
|
177
|
-
panels:
|
|
178
|
-
table:
|
|
179
|
-
- title: "Top Endpoints by Latency"
|
|
180
|
-
query: |
|
|
181
|
-
topk(10,
|
|
182
|
-
histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))
|
|
183
|
-
)
|
|
184
|
-
columns:
|
|
185
|
-
- name: "Endpoint"
|
|
186
|
-
field: "path"
|
|
187
|
-
- name: "P99 Latency"
|
|
188
|
-
field: "Value"
|
|
189
|
-
format: "duration"
|
|
190
|
-
- name: "Request Rate"
|
|
191
|
-
field: "rate"
|
|
192
|
-
format: "short"
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### Heatmap Panel
|
|
196
|
-
|
|
197
|
-
```yaml
|
|
198
|
-
monitoring:
|
|
199
|
-
dashboards:
|
|
200
|
-
panels:
|
|
201
|
-
heatmap:
|
|
202
|
-
- title: "Request Latency Distribution"
|
|
203
|
-
query: "sum(rate(http_request_duration_seconds_bucket[5m])) by (le)"
|
|
204
|
-
dataFormat: "heatmap"
|
|
205
|
-
yAxis:
|
|
206
|
-
unit: "seconds"
|
|
207
|
-
colorScheme: "interpolateOrRd"
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
## Business Dashboards
|
|
213
|
-
|
|
214
|
-
### KPI Dashboard
|
|
215
|
-
|
|
216
|
-
```yaml
|
|
217
|
-
monitoring:
|
|
218
|
-
dashboards:
|
|
219
|
-
business_kpis:
|
|
220
|
-
name: "Business KPIs"
|
|
221
|
-
refresh: "1m"
|
|
222
|
-
|
|
223
|
-
rows:
|
|
224
|
-
- name: "Revenue"
|
|
225
|
-
panels:
|
|
226
|
-
- type: "stat"
|
|
227
|
-
title: "Revenue Today"
|
|
228
|
-
query: "sum(increase(revenue_total[24h]))"
|
|
229
|
-
format: "currency"
|
|
230
|
-
|
|
231
|
-
- type: "graph"
|
|
232
|
-
title: "Revenue Over Time"
|
|
233
|
-
query: "sum(increase(revenue_total[1h]))"
|
|
234
|
-
interval: "1h"
|
|
235
|
-
|
|
236
|
-
- name: "Users"
|
|
237
|
-
panels:
|
|
238
|
-
- type: "stat"
|
|
239
|
-
title: "Active Users"
|
|
240
|
-
query: "count(count by (user_id) (http_requests_total[1h]))"
|
|
241
|
-
|
|
242
|
-
- type: "graph"
|
|
243
|
-
title: "New Signups"
|
|
244
|
-
query: "increase(user_signups_total[1h])"
|
|
245
|
-
|
|
246
|
-
- name: "Orders"
|
|
247
|
-
panels:
|
|
248
|
-
- type: "stat"
|
|
249
|
-
title: "Orders Today"
|
|
250
|
-
query: "sum(increase(orders_total[24h]))"
|
|
251
|
-
|
|
252
|
-
- type: "graph"
|
|
253
|
-
title: "Order Value Distribution"
|
|
254
|
-
query: "histogram_quantile(0.5, order_value_bucket)"
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
### Conversion Funnel
|
|
258
|
-
|
|
259
|
-
```yaml
|
|
260
|
-
monitoring:
|
|
261
|
-
dashboards:
|
|
262
|
-
conversion_funnel:
|
|
263
|
-
name: "Conversion Funnel"
|
|
264
|
-
|
|
265
|
-
rows:
|
|
266
|
-
- name: "Funnel"
|
|
267
|
-
panels:
|
|
268
|
-
- type: "bargauge"
|
|
269
|
-
title: "Conversion Stages"
|
|
270
|
-
queries:
|
|
271
|
-
- label: "Page Views"
|
|
272
|
-
query: "sum(page_views_total)"
|
|
273
|
-
- label: "Add to Cart"
|
|
274
|
-
query: "sum(cart_additions_total)"
|
|
275
|
-
- label: "Checkout Started"
|
|
276
|
-
query: "sum(checkout_started_total)"
|
|
277
|
-
- label: "Order Completed"
|
|
278
|
-
query: "sum(orders_completed_total)"
|
|
279
|
-
orientation: "horizontal"
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
---
|
|
283
|
-
|
|
284
|
-
## Incident Dashboard
|
|
285
|
-
|
|
286
|
-
### Real-Time Troubleshooting
|
|
287
|
-
|
|
288
|
-
```yaml
|
|
289
|
-
monitoring:
|
|
290
|
-
dashboards:
|
|
291
|
-
incident:
|
|
292
|
-
name: "Incident Response"
|
|
293
|
-
refresh: "5s"
|
|
294
|
-
|
|
295
|
-
variables:
|
|
296
|
-
- name: "timeRange"
|
|
297
|
-
type: "interval"
|
|
298
|
-
values: ["5m", "15m", "1h", "6h"]
|
|
299
|
-
default: "15m"
|
|
300
|
-
|
|
301
|
-
rows:
|
|
302
|
-
- name: "Current State"
|
|
303
|
-
height: "200px"
|
|
304
|
-
panels:
|
|
305
|
-
- type: "alertlist"
|
|
306
|
-
title: "Active Alerts"
|
|
307
|
-
filter:
|
|
308
|
-
severity: ["critical", "warning"]
|
|
309
|
-
|
|
310
|
-
- type: "logs"
|
|
311
|
-
title: "Recent Errors"
|
|
312
|
-
query: "level:error"
|
|
313
|
-
limit: 50
|
|
314
|
-
|
|
315
|
-
- name: "Impact"
|
|
316
|
-
panels:
|
|
317
|
-
- type: "graph"
|
|
318
|
-
title: "Error Rate (Last $timeRange)"
|
|
319
|
-
query: "rate(http_errors_total[$timeRange])"
|
|
320
|
-
|
|
321
|
-
- type: "graph"
|
|
322
|
-
title: "Latency Impact"
|
|
323
|
-
queries:
|
|
324
|
-
- label: "Current P99"
|
|
325
|
-
query: "histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[$timeRange]))"
|
|
326
|
-
- label: "Baseline P99"
|
|
327
|
-
query: "histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[24h]))"
|
|
328
|
-
|
|
329
|
-
- name: "Dependencies"
|
|
330
|
-
panels:
|
|
331
|
-
- type: "table"
|
|
332
|
-
title: "Dependency Health"
|
|
333
|
-
query: "health_check_status"
|
|
334
|
-
columns:
|
|
335
|
-
- name: "Dependency"
|
|
336
|
-
- name: "Status"
|
|
337
|
-
- name: "Latency"
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
## Dashboard Templates
|
|
343
|
-
|
|
344
|
-
### Grafana JSON Template
|
|
345
|
-
|
|
346
|
-
```yaml
|
|
347
|
-
monitoring:
|
|
348
|
-
dashboards:
|
|
349
|
-
export:
|
|
350
|
-
format: "grafana"
|
|
351
|
-
|
|
352
|
-
# Dashboard as code
|
|
353
|
-
generate:
|
|
354
|
-
enabled: true
|
|
355
|
-
output_dir: "./dashboards"
|
|
356
|
-
|
|
357
|
-
# Template variables
|
|
358
|
-
templates:
|
|
359
|
-
datasource: "Prometheus"
|
|
360
|
-
refresh: "30s"
|
|
361
|
-
time_range: "6h"
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
### Dashboard as Code
|
|
365
|
-
|
|
366
|
-
```yaml
|
|
367
|
-
monitoring:
|
|
368
|
-
dashboards:
|
|
369
|
-
as_code:
|
|
370
|
-
enabled: true
|
|
371
|
-
|
|
372
|
-
# Source of truth
|
|
373
|
-
source: "./dashboards/*.yaml"
|
|
374
|
-
|
|
375
|
-
# Sync to Grafana
|
|
376
|
-
sync:
|
|
377
|
-
enabled: true
|
|
378
|
-
grafana_url: "https://grafana.company.com"
|
|
379
|
-
api_key_env: "GRAFANA_API_KEY"
|
|
380
|
-
folder: "ProAgents"
|
|
381
|
-
|
|
382
|
-
# CI validation
|
|
383
|
-
validate:
|
|
384
|
-
enabled: true
|
|
385
|
-
check_queries: true
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
---
|
|
389
|
-
|
|
390
|
-
## Access Control
|
|
391
|
-
|
|
392
|
-
### Dashboard Permissions
|
|
393
|
-
|
|
394
|
-
```yaml
|
|
395
|
-
monitoring:
|
|
396
|
-
dashboards:
|
|
397
|
-
permissions:
|
|
398
|
-
# Public dashboards
|
|
399
|
-
public:
|
|
400
|
-
- "system-overview"
|
|
401
|
-
- "api-status"
|
|
402
|
-
|
|
403
|
-
# Team-specific
|
|
404
|
-
teams:
|
|
405
|
-
engineering:
|
|
406
|
-
- "service-*"
|
|
407
|
-
- "incident-*"
|
|
408
|
-
product:
|
|
409
|
-
- "business-*"
|
|
410
|
-
- "kpi-*"
|
|
411
|
-
management:
|
|
412
|
-
- "*"
|
|
413
|
-
|
|
414
|
-
# Edit permissions
|
|
415
|
-
editors:
|
|
416
|
-
- role: "admin"
|
|
417
|
-
- team: "platform"
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
---
|
|
421
|
-
|
|
422
|
-
## Commands
|
|
423
|
-
|
|
424
|
-
```bash
|
|
425
|
-
# List dashboards
|
|
426
|
-
proagents dashboards list
|
|
427
|
-
|
|
428
|
-
# Generate dashboard
|
|
429
|
-
proagents dashboards generate --type service --service api
|
|
430
|
-
|
|
431
|
-
# Sync to Grafana
|
|
432
|
-
proagents dashboards sync
|
|
433
|
-
|
|
434
|
-
# Export dashboard
|
|
435
|
-
proagents dashboards export system-overview --format json
|
|
436
|
-
|
|
437
|
-
# Import dashboard
|
|
438
|
-
proagents dashboards import dashboard.json
|
|
439
|
-
|
|
440
|
-
# Validate dashboards
|
|
441
|
-
proagents dashboards validate
|
|
442
|
-
```
|
|
443
|
-
|
|
444
|
-
---
|
|
445
|
-
|
|
446
|
-
## Best Practices
|
|
447
|
-
|
|
448
|
-
1. **Start Simple**: Don't overload dashboards with panels
|
|
449
|
-
2. **Use Variables**: Make dashboards reusable with variables
|
|
450
|
-
3. **Consistent Layout**: Use similar layouts across dashboards
|
|
451
|
-
4. **Add Context**: Include annotations for deployments/incidents
|
|
452
|
-
5. **Mobile Friendly**: Test dashboards on smaller screens
|
|
453
|
-
6. **Document Dashboards**: Add descriptions to panels
|
|
454
|
-
7. **Version Control**: Store dashboards as code
|