claude usage dashboard: count the token and cost panels as increase per step so review classifier sessions show up
This commit is contained in:
parent
2eb46c562b
commit
0912e2ca06
1 changed files with 2 additions and 2 deletions
|
|
@ -284,7 +284,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (type) (rate({__name__=\"claude_code.token.usage\", hive=~\"$hive\", \"service.name\"=~\"$service\", agent=~\"$agent\"}[$__rate_interval])) * 60",
|
||||
"expr": "sum by (type) (increase({__name__=\"claude_code.token.usage\", hive=~\"$hive\", \"service.name\"=~\"$service\", agent=~\"$agent\"}[$__interval])) / ($__interval_ms / 60000)",
|
||||
"legendFormat": "{{type}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -405,7 +405,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (model) (rate({__name__=\"claude_code.cost.usage\", hive=~\"$hive\", \"service.name\"=~\"$service\", agent=~\"$agent\"}[$__rate_interval])) * 60",
|
||||
"expr": "sum by (model) (increase({__name__=\"claude_code.cost.usage\", hive=~\"$hive\", \"service.name\"=~\"$service\", agent=~\"$agent\"}[$__interval])) / ($__interval_ms / 60000)",
|
||||
"legendFormat": "{{model}}"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue