Skip to content

Commit

Permalink
fix: fix QPS metrics (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCroxx authored May 16, 2022
1 parent cc788f1 commit 480cf6c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 59 deletions.
87 changes: 30 additions & 57 deletions etc/grafana-dashboards/runkv-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"uid": "PEDE6B306CC9C0CD0"
},
"editorMode": "code",
"expr": "sum(irate(kv_service_latency_histogram_vec_sum[1m]))",
"expr": "sum(irate(kv_service_latency_histogram_vec_count{ service=\"get,put,delete,snapshot,txn\"}[1m]))",
"hide": false,
"legendFormat": "total",
"range": true,
Expand All @@ -134,7 +134,7 @@
"uid": "PEDE6B306CC9C0CD0"
},
"editorMode": "code",
"expr": "sum(irate(kv_service_latency_histogram_vec_sum[1m])) by (service)",
"expr": "sum by (service) (irate(kv_service_latency_histogram_vec_count[1m]))",
"hide": false,
"legendFormat": "{{service}}",
"range": true,
Expand Down Expand Up @@ -1252,8 +1252,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1343,8 +1342,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1434,8 +1432,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1552,8 +1549,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1643,8 +1639,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1768,8 +1763,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1886,8 +1880,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1977,8 +1970,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2102,8 +2094,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2220,8 +2211,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2324,8 +2314,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2415,8 +2404,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2584,8 +2572,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2702,8 +2689,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2793,8 +2779,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2884,8 +2869,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2975,8 +2959,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3093,8 +3076,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3184,8 +3166,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3302,8 +3283,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3393,8 +3373,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3517,8 +3496,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3668,8 +3646,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3761,8 +3738,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3865,8 +3841,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4016,8 +3991,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4120,8 +4094,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -4237,6 +4210,6 @@
"timezone": "",
"title": "RunKV Overview",
"uid": "kJf6Tv_nk",
"version": 1,
"version": 2,
"weekStart": ""
}
2 changes: 0 additions & 2 deletions wheel/src/components/lsm_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ impl ObjectStoreLsmTreeCore {
}
}

unsafe impl Sync for ObjectStoreLsmTreeCore {}

#[derive(Clone)]
pub struct ObjectStoreLsmTree {
raft_node: u64,
Expand Down

0 comments on commit 480cf6c

Please sign in to comment.