panopticon init
This commit is contained in:
122
grafana/dashboard.json
Normal file
122
grafana/dashboard.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"annotations": { "list": [] },
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"graphTooltip": 1,
|
||||
"id": null,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"title": "Run Status Timeline",
|
||||
"type": "state-timeline",
|
||||
"gridPos": { "h": 6, "w": 12, "x": 0, "y": 0 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "panopticon_run_status",
|
||||
"legendFormat": "{{project}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Run Duration",
|
||||
"type": "timeseries",
|
||||
"gridPos": { "h": 6, "w": 12, "x": 12, "y": 0 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "panopticon_run_duration_seconds",
|
||||
"legendFormat": "{{project}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Token Usage",
|
||||
"type": "barchart",
|
||||
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum by (model, direction) (panopticon_tokens_total)",
|
||||
"legendFormat": "{{model}} {{direction}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Estimated Cost (30d)",
|
||||
"type": "stat",
|
||||
"gridPos": { "h": 4, "w": 6, "x": 12, "y": 6 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(increase(panopticon_estimated_cost_usd[30d]))",
|
||||
"legendFormat": "Cost"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "currencyUSD"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "Error Rate (7d)",
|
||||
"type": "stat",
|
||||
"gridPos": { "h": 4, "w": 6, "x": 18, "y": 6 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(increase(panopticon_errors_total[7d]))",
|
||||
"legendFormat": "Errors"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"thresholds": {
|
||||
"steps": [
|
||||
{ "color": "green", "value": 0 },
|
||||
{ "color": "yellow", "value": 1 },
|
||||
{ "color": "red", "value": 5 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "Files Changed",
|
||||
"type": "timeseries",
|
||||
"gridPos": { "h": 6, "w": 12, "x": 12, "y": 10 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "panopticon_files_changed",
|
||||
"legendFormat": "{{project}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Doc Churn",
|
||||
"type": "table",
|
||||
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 14 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "panopticon_doc_lines_changed",
|
||||
"legendFormat": "{{project}} {{file}}",
|
||||
"format": "table",
|
||||
"instant": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Phase Breakdown",
|
||||
"type": "barchart",
|
||||
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 14 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "panopticon_phase_duration_seconds",
|
||||
"legendFormat": "{{project}} {{phase}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"schemaVersion": 39,
|
||||
"tags": ["panopticon"],
|
||||
"templating": { "list": [] },
|
||||
"time": { "from": "now-30d", "to": "now" },
|
||||
"title": "Panopticon",
|
||||
"uid": "panopticon-main"
|
||||
}
|
||||
Reference in New Issue
Block a user