Skip to content

Commit

Permalink
update grafana json to have new cht-sync widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones-plip committed Oct 17, 2024
1 parent caffe4e commit bf0e215
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 66 deletions.
79 changes: 13 additions & 66 deletions grafana/provisioning/dashboards/CHT/cht_admin_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -1126,37 +1126,20 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of CouchDB changes that have not yet been processed by Couch2pg",
"description": "Number of CouchDB changes that have not yet been processed by CHT Sync",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"displayName": "changes",
"links": [
{
"title": "Couch2pg backlog",
"url": "/d/hkQUbyfVk/cht-admin-details?orgId=1&viewPanel=24&var-cht_instance=${cht_instance}&from=${__from}&to=${__to}"
}
],
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "blue",
"value": null
},
{
"color": "green",
"value": 0
},
{
"color": "#EAB839",
"value": 60
},
{
"color": "red",
"value": 80
Expand All @@ -1173,15 +1156,10 @@
"x": 8,
"y": 12
},
"id": 49,
"links": [
{
"targetBlank": true,
"title": "Couch2pg docs",
"url": "https://docs.communityhealthtoolkit.org/apps/tutorials/couch2pg-setup/"
}
],
"id": 50,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
Expand All @@ -1202,47 +1180,17 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "sum(cht_couchdb_update_sequence{instance=~\"$cht_instance\", db=~\"medic|sentinel|medic-users-meta\"})",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "builder",
"exemplar": false,
"expr": "sum(couch2pg_progress_sequence{cht_instance=~\"$cht_instance\", db=~\"medic|medic-sentinel|medic-users-meta\"})",
"hide": false,
"expr": "couch2pg_progress_pending{target=\"$cht_instance\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
},
{
"datasource": {
"name": "Expression",
"type": "__expr__",
"uid": "__expr__"
},
"expression": "$A - $B",
"hide": false,
"refId": "C",
"type": "math"
}
],
"title": "Couch2pg Backlog",
"transformations": [
{
"id": "filterByRefId",
"options": {
"include": "C"
}
"refId": "A",
"useBackend": false
}
],
"title": "CHT Sync Backlog",
"type": "gauge"
},
{
Expand Down Expand Up @@ -2303,8 +2251,7 @@
],
"refresh": "30s",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
Expand Down Expand Up @@ -2340,6 +2287,6 @@
"timezone": "",
"title": "CHT Admin Overview",
"uid": "oa2OfL-Vk",
"version": 37,
"version": 39,
"weekStart": ""
}
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Happy developing ✨')

0 comments on commit bf0e215

Please sign in to comment.