Skip to content

Commit

Permalink
Merge pull request #254 from ceph/bz1842390
Browse files Browse the repository at this point in the history
ceph-at-a-glance: Fix Disk IOPS/Throughput

Signed-off-by: Boris Ranto <branto@redhat.com>
  • Loading branch information
b-ranto authored Jul 13, 2020
2 parents e10b753 + 8f8627d commit 42e165e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dashboards/mgr-prometheus/ceph-at-a-glance.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1526962541471,
"iteration": 1594326505937,
"links": [
{
"asDropdown": true,
Expand Down Expand Up @@ -2599,7 +2599,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(\n sum(\n rate(\n node_disk_reads_completed[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device) group_right(instance) ceph_disk_occupation\n)\n+\nsum(\n sum(\n rate(\n node_disk_writes_completed[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device) group_right(instance) ceph_disk_occupation\n)",
"expr": "sum(\n sum(\n rate(\n node_disk_reads_completed[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device,db_device) group_right(instance) ceph_disk_occupation\n)\n+\nsum(\n sum(\n rate(\n node_disk_writes_completed[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device,db_device) group_right(instance) ceph_disk_occupation\n)",
"format": "time_series",
"groupBy": [],
"hide": false,
Expand Down Expand Up @@ -2708,7 +2708,7 @@
"tableColumn": "",
"targets": [
{
"expr": "# should only include OSD hosts\nsum(\n sum(\n rate(\n node_disk_bytes_read[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device) group_right(instance) ceph_disk_occupation\n)\n+\nsum(\n sum(\n rate(\n node_disk_bytes_written[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device) group_right(instance) ceph_disk_occupation\n)",
"expr": "# should only include OSD hosts\nsum(\n sum(\n rate(\n node_disk_bytes_read[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device,db_device) group_right(instance) ceph_disk_occupation\n)\n+\nsum(\n sum(\n rate(\n node_disk_bytes_written[$__interval]\n )\n ) by (instance,device)\n + ignoring(ceph_daemon,job,wal_device,db_device) group_right(instance) ceph_disk_occupation\n)",
"format": "time_series",
"groupBy": [],
"hide": false,
Expand Down Expand Up @@ -3243,5 +3243,5 @@
},
"timezone": "browser",
"title": "Ceph - At A Glance",
"version": 43
"version": 44
}
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
skipsdist = True
envlist=ansible-lint,ansible-syntax,flake8,dashboards

[testenv]
basepython=python2

[testenv:ansible-lint]
install_command = pip install --upgrade {opts} {packages}
deps=
Expand All @@ -20,7 +23,7 @@ commands=
install_command = pip install --upgrade {opts} {packages}
deps=
flake8
commands=flake8 --select=F,E9 {posargs:*.py collectors tests}
commands=flake8 --select=F,E9 {posargs:cephmetrics.py dashUpdater.py collectors tests}

# Integration tests must operate against a live deployment. To run, simply:
# tox -e integration /path/to/inventory
Expand Down

0 comments on commit 42e165e

Please sign in to comment.