Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a Per ks/table dashboard #1497

Merged
merged 3 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dashboards.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if [[ -z "$DASHBOARDS" ]]; then
DASHBOARDS=(scylla-overview scylla-detailed scylla-os scylla-cql scylla-advanced alternator)
DASHBOARDS=(scylla-overview scylla-detailed scylla-os scylla-cql scylla-advanced alternator scylla-ks)
else
read -ra DASHBOARDS <<< "$DASHBOARDS"
fi
239 changes: 239 additions & 0 deletions grafana/scylla-ks.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
{
"dashboard": {
"class": "dashboard",
"uid": "ks-__SCYLLA_VERSION_DASHED__",
"rows": [
{
"class": "logo_row"
},
{
"class": "row",
"panels": [
{
"class": "collapsible_row_panel",
"repeat":"table",
"collapsed": true,
"title": "Latencies - $ks:$table"
}
]
},
{
"class": "row",
"panels": [
{
"class": "wps_panel",
"span": 3,
"targets": [
{
"expr": "$func(rate(scylla_column_family_write_latency_count{ks=\"$ks\", cf=\"$table\", instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"}[60s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 1
}
],
"title": "Writes by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "wlatencyaks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|$^\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"}",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 1
}
],
"title": "Average write latency by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "wlatencyp95ks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|^$\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\",scheduling_group_name=~\"$scheduling_group|$\"} ",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"title": "95th percentile write latency by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "wlatencyp99ks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|^$\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"} ",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"title": "99th percentile write latency by [[by]]"
},
{
"class": "rps_panel",
"span": 3,
"targets": [
{
"expr": "$func(rate(scylla_column_family_read_latency_count{ks=\"$ks\", cf=\"$table\", instance=~\"[[node]]\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"}[60s])) by ([[by]])",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 1
}
],
"title": "Reads by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "rlatencyaks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|$^\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"}",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A",
"step": 1
}
],
"title": "Average read latency by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "rlatencyp95ks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|^$\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"} ",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"title": "95th percentile read latency by [[by]]"
},
{
"class": "us_panel",
"span": 3,
"targets": [
{
"expr": "rlatencyp99ks{ks=\"$ks\", cf=\"$table\", by=\"[[by]]\", instance=~\"[[node]]|^$\",cluster=~\"$cluster|$^\", dc=~\"$dc\", shard=~\"[[shard]]|$^\"} ",
"intervalFactor": 1,
"legendFormat": "",
"metric": "",
"refId": "A",
"step": 1
}
],
"title": "99th percentile read latency by [[by]]"
}
]
},
{
"class": "row",
"panels": [
{
"class": "collapsible_row_panel",
"title": ""
}
]
},
{
"class": "user_panel_row_header"
},
{
"class": "user_panels_row"
},
{
"class": "monitoring_version_row"
}
],
"templating": {
"list": [
{
"class":"by_template_var"
},
{
"class": "template_variable_single",
"label": "cluster",
"name": "cluster",
"query": "label_values(scylla_reactor_utilization, cluster)"
},
{
"class": "template_variable_all",
"label": "dc",
"name": "dc",
"query": "label_values(scylla_reactor_utilization{cluster=~\"$cluster\"}, dc)"
},
{
"class": "template_variable_all",
"label": "node",
"name": "node",
"query": "label_values(scylla_reactor_utilization{cluster=~\"$cluster|$^\", dc=~\"$dc\"}, instance)"
},
{
"class": "template_variable_all",
"label": "shard",
"name": "shard",
"query": "label_values(scylla_reactor_utilization,shard)",
"sort": 3
},
{
"class": "template_variable_single",
"label": "ks",
"name": "ks",
"query": "label_values(scylla_column_family_write_latency_count{cluster=~\"$cluster|$^\"},ks)",
"sort": 3
},
{
"class": "template_variable_all",
"label": "table",
"name": "table",
"query": "label_values(scylla_column_family_write_latency_count{cluster=~\"$cluster|$^\", ks=\"$ks\"},cf)",
"sort": 3
},
{
"class": "aggregation_function"
},
{
"class": "template_variable_custom",
"current": {
"text": "__SCYLLA_VERSION_DOT__",
"value": "__SCYLLA_VERSION_DOT__"
},
"name": "scylla_version",
"options": [
{
"selected": true,
"text": "__SCYLLA_VERSION_DOT__",
"value": "__SCYLLA_VERSION_DOT__"
}
],
"query": "__SCYLLA_VERSION_DOT__"
},
{
"class": "monitor_version_var"
}
]
},
"tags": [
"__SCYLLA_VERSION_DOT__"
],
"time": {
"from": "now-30m",
"to": "now"
},
"title": "Keyspace",
"overwrite": true,
"version": 5
}
}
99 changes: 99 additions & 0 deletions prometheus/prom_rules/prometheus.table.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
groups:
- name: scylla.rules
rules:
- record: wlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, instance, shard, le,ks,cf))
labels:
by: "instance,shard"
- record: wlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, instance, le,ks,cf))
labels:
by: "instance"
- record: wlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, le,ks,cf))
labels:
by: "dc"
- record: wlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, le,ks,cf))
labels:
by: "cluster"
- record: rlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, instance, shard, le,ks,cf))
labels:
by: "instance,shard"
- record: rlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, instance, le,ks,cf))
labels:
by: "instance"
- record: rlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, le,ks,cf))
labels:
by: "dc"
- record: rlatencyp99ks
expr: histogram_quantile(0.99, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, le,ks,cf))
labels:
by: "cluster"
- record: wlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, instance, shard, le,ks,cf))
labels:
by: "instance,shard"
- record: wlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, instance, le,ks,cf))
labels:
by: "instance"
- record: wlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, dc, le,ks,cf))
labels:
by: "dc"
- record: wlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_write_latency_bucket{}[60s])) by (cluster, le,ks,cf))
labels:
by: "cluster"
- record: rlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, instance, shard, le,ks,cf))
labels:
by: "instance,shard"
- record: rlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, instance, le,ks,cf))
labels:
by: "instance"
- record: rlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, dc, le,ks,cf))
labels:
by: "dc"
- record: rlatencyp95ks
expr: histogram_quantile(0.95, sum(rate(scylla_column_family_read_latency_bucket{}[60s])) by (cluster, le,ks,cf))
labels:
by: "cluster"
- record: wlatencyaks
expr: sum(rate(scylla_column_family_write_latency_sum{}[60s])) by (cluster, dc, instance, shard,ks,cf)/sum(rate(scylla_column_family_write_latency_count{}[60s])) by (cluster, dc, instance, shard,ks,cf)
labels:
by: "instance,shard"
- record: wlatencyaks
expr: sum(rate(scylla_column_family_write_latency_sum{}[60s])) by (cluster, dc, instance,ks,cf)/sum(rate(scylla_column_family_write_latency_count{}[60s])) by (cluster, dc, instance,ks,cf)
labels:
by: "instance"
- record: wlatencyaks
expr: sum(rate(scylla_column_family_write_latency_sum{}[60s])) by (cluster, dc,ks,cf)/sum(rate(scylla_column_family_write_latency_count{}[60s])) by (cluster, dc,ks,cf)
labels:
by: "dc"
- record: wlatencyaks
expr: sum(rate(scylla_column_family_write_latency_sum{}[60s])) by (cluster,ks,cf)/sum(rate(scylla_column_family_write_latency_count{}[60s])) by (cluster,ks,cf)
labels:
by: "cluster"
- record: rlatencyaks
expr: sum(rate(scylla_column_family_read_latency_sum{}[60s])) by (cluster, dc, instance, shard,ks,cf)/sum(rate(scylla_column_family_read_latency_count{}[60s])) by (cluster, dc, instance, shard,ks,cf)
labels:
by: "instance,shard"
- record: rlatencyaks
expr: sum(rate(scylla_column_family_read_latency_sum{}[60s])) by (cluster, dc, instance,ks,cf)/sum(rate(scylla_column_family_read_latency_count{}[60s])) by (cluster, dc, instance,ks,cf)
labels:
by: "instance"
- record: rlatencyaks
expr: sum(rate(scylla_column_family_read_latency_sum{}[60s])) by (cluster, dc,ks,cf)/sum(rate(scylla_column_family_read_latency_count{}[60s])) by (cluster, dc,ks,cf)
labels:
by: "dc"
- record: rlatencyaks
expr: sum(rate(scylla_column_family_read_latency_sum{}[60s])) by (cluster,ks,cf)/sum(rate(scylla_column_family_read_latency_count{}[60s])) by (cluster,ks,cf)
labels:
by: "cluster"