Skip to content

Commit

Permalink
Adding write path Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
arodrime committed Jul 21, 2021
1 parent 9a63f5c commit ff33e19
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 10 deletions.
6 changes: 3 additions & 3 deletions dashboards/demo/demo-cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ ssl_storage_port: 7001
#
# Setting listen_address to 0.0.0.0 is always wrong.
#
listen_address: 172.18.0.5
listen_address: 172.19.0.5

# Set listen_address OR listen_interface, not both. Interfaces must correspond
# to a single address, IP aliasing is not supported.
Expand All @@ -623,7 +623,7 @@ listen_address: 172.18.0.5

# Address to broadcast to other Cassandra nodes
# Leaving this blank will set it to the same value as listen_address
broadcast_address: 172.18.0.5
broadcast_address: 172.19.0.5

# When using multiple physical network interfaces, set this
# to true to listen on broadcast_address in addition to
Expand Down Expand Up @@ -705,7 +705,7 @@ rpc_port: 9160
# be set to 0.0.0.0. If left blank, this will be set to the value of
# rpc_address. If rpc_address is set to 0.0.0.0, broadcast_rpc_address must
# be set.
broadcast_rpc_address: 172.18.0.5
broadcast_rpc_address: 172.19.0.5

# enable or disable keepalive on rpc/native connections
rpc_keepalive: true
Expand Down
46 changes: 46 additions & 0 deletions dashboards/grafana/dashboards-jsonnet/write-path.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,52 @@ dashboard.new(
)
)
)
.addPanel(
graphPanel.new(
'Disk Write Thoughput',
description='Disk write throughput per node',
format='bps',
datasource='$PROMETHEUS_DS',
transparent=true,
fill=0,
legend_show=true,
legend_values=true,
legend_current=true,
legend_alignAsTable=true,
legend_sort='current',
legend_sortDesc=true,
shared_tooltip=false,
)
.addTarget(
prometheus.target(
expr='rate(collectd_processes_disk_octets_write_total{cluster="$cluster", dc=~"$dc", rack=~"$rack", instance=~"$node"}[1m:30s])',
legendFormat='{{dc}}-{{instance}} ({{cluster}})',
)
)
)
.addPanel(
graphPanel.new(
'Disk Write Thoughput',
description='Disk write throughput per node',
format='bps',
datasource='$PROMETHEUS_DS',
transparent=true,
fill=0,
legend_show=true,
legend_values=true,
legend_current=true,
legend_alignAsTable=true,
legend_sort='current',
legend_sortDesc=true,
shared_tooltip=false,
)
.addTarget(
prometheus.target(
expr='rate(collectd_processes_disk_octets_write_total{cluster="$cluster", dc=~"$dc", rack=~"$rack", instance=~"$node"}[1m:30s])',
legendFormat='{{dc}}-{{instance}} ({{cluster}})',
)
)
)
.addPanel(
graphPanel.new(
'Network I/O',
Expand Down
182 changes: 175 additions & 7 deletions dashboards/grafana/generated-dashboards/write-path.json
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,174 @@
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$PROMETHEUS_DS",
"description": "Disk write throughput per node",
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 20,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(collectd_processes_disk_octets_write_total{cluster=\"$cluster\", dc=~\"$dc\", rack=~\"$rack\", instance=~\"$node\"}[1m:30s])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{dc}}-{{instance}} ({{cluster}})",
"refId": "A"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Disk Write Thoughput",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$PROMETHEUS_DS",
"description": "Disk write throughput per node",
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 21,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(collectd_processes_disk_octets_write_total{cluster=\"$cluster\", dc=~\"$dc\", rack=~\"$rack\", instance=~\"$node\"}[1m:30s])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{dc}}-{{instance}} ({{cluster}})",
"refId": "A"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Disk Write Thoughput",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "bps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
Expand All @@ -1554,7 +1722,7 @@
"fill": 1,
"fillGradient": 0,
"gridPos": { },
"id": 20,
"id": 22,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -1650,7 +1818,7 @@
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 21,
"id": 23,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -1748,7 +1916,7 @@
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 22,
"id": 24,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -1835,7 +2003,7 @@
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 23,
"id": 25,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -1935,7 +2103,7 @@
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 24,
"id": 26,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -2021,7 +2189,7 @@
"fill": 0,
"fillGradient": 0,
"gridPos": { },
"id": 25,
"id": 27,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down Expand Up @@ -2105,7 +2273,7 @@
"fill": 1,
"fillGradient": 0,
"gridPos": { },
"id": 26,
"id": 28,
"legend": {
"alignAsTable": true,
"avg": false,
Expand Down

0 comments on commit ff33e19

Please sign in to comment.