Skip to content

Commit

Permalink
scylla-cql.4.0: Split the CQL command between internal and external
Browse files Browse the repository at this point in the history
(cherry picked from commit 898287e)
  • Loading branch information
amnonh committed May 5, 2020
1 parent cbad5c2 commit b142f53
Showing 1 changed file with 92 additions and 5 deletions.
97 changes: 92 additions & 5 deletions grafana/scylla-cql.4.0.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"panels": [
{
"class": "text_panel",
"content": "<h1 style=\"color:#5881c2; border-bottom: 3px solid #5881c2;\">CQL - Coordinator</h1>",
"content": "<h1 style=\"color:#5881c2; border-bottom: 3px solid #5881c2;\">CQL By User - Coordinator</h1>",
"style": {}
}
],
Expand All @@ -28,59 +28,63 @@
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_inserts{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])",
"expr": "sum(irate(scylla_cql_inserts{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]]) - sum(irate(scylla_cql_inserts_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL INSERT commands generated by the user",
"title": "CQL Insert"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_reads{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])",
"expr": "sum(irate(scylla_cql_reads{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]]) - sum(irate(scylla_cql_reads_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL SELECT commands generated by the user",
"title": "CQL Reads"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_deletes{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])",
"expr": "sum(irate(scylla_cql_deletes{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])-sum(irate(scylla_cql_deletes_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL DELETE commands generated by the user",
"title": "CQL Deletes"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_updates{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])",
"expr": "sum(irate(scylla_cql_updates{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\"}[300s])) by ([[by]])-sum(irate(scylla_cql_updates_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL UPDATE commands generated by the user",
"title": "CQL Updates"
},
{
Expand Down Expand Up @@ -152,6 +156,89 @@
],
"title": "New row"
},
{
"class": "row",
"height": "25px",
"gridPos": {"h": 2},
"panels": [
{
"class": "text_panel",
"content": "<h1 style=\"color:#5881c2; border-bottom: 3px solid #5881c2;\">CQL Internal - Coordinator</h1>",
"style": {}
}
],
"title": "New row"
},
{
"class": "row",
"panels": [
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_inserts_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL INSERT commands generated by intenal operations",
"title": "CQL Internal Insert"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_reads_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL SELECT commands generated by intenal operations",
"title": "CQL Internal Reads"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_deletes_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL DELETE commands generated by intenal operations",
"title": "CQL Deletes"
},
{
"class": "ops_panel",
"span": 3,
"targets": [
{
"expr": "sum(irate(scylla_cql_updates_per_ks{instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]\", who=\"internal\"}[300s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"description": "Number of CQL UPDATE commands generated by intenal operations",
"title": "CQL Updates"
}
],
"title": "New row"
},
{
"class": "row",
"height": "25px",
Expand Down

0 comments on commit b142f53

Please sign in to comment.