-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from moe-lk/mohamednizar-new-dashboards
new dashboards
- Loading branch information
Showing
9 changed files
with
7,724 additions
and
0 deletions.
There are no files selected for viewing
1,272 changes: 1,272 additions & 0 deletions
1,272
Grafana/provicnce/province_bulkupload_progress.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,386 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": "-- Grafana --", | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"id": 66, | ||
"iteration": 1596991935118, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"collapsed": false, | ||
"datasource": null, | ||
"gridPos": { | ||
"h": 1, | ||
"w": 24, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 47, | ||
"panels": [], | ||
"title": "STATISTICS TABLES", | ||
"type": "row" | ||
}, | ||
{ | ||
"columns": [], | ||
"datasource": null, | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {} | ||
}, | ||
"overrides": [] | ||
}, | ||
"fontSize": "100%", | ||
"gridPos": { | ||
"h": 7, | ||
"w": 24, | ||
"x": 0, | ||
"y": 1 | ||
}, | ||
"id": 37, | ||
"links": [], | ||
"pageSize": null, | ||
"scroll": true, | ||
"showHeader": true, | ||
"sort": { | ||
"col": null, | ||
"desc": false | ||
}, | ||
"styles": [ | ||
{ | ||
"alias": "Time", | ||
"align": "auto", | ||
"dateFormat": "YYYY-MM-DD HH:mm:ss", | ||
"pattern": "Time", | ||
"type": "date" | ||
}, | ||
{ | ||
"alias": "", | ||
"align": "auto", | ||
"colorMode": null, | ||
"colors": [ | ||
"rgba(245, 54, 54, 0.9)", | ||
"rgba(237, 129, 40, 0.89)", | ||
"rgba(50, 172, 45, 0.97)" | ||
], | ||
"decimals": 2, | ||
"pattern": "/.*/", | ||
"thresholds": [], | ||
"type": "number", | ||
"unit": "short" | ||
} | ||
], | ||
"targets": [ | ||
{ | ||
"format": "table", | ||
"group": [], | ||
"metricColumn": "none", | ||
"rawQuery": true, | ||
"rawSql": "select ins.name as School, ins.code as Census , ia.name as Zone , inc.name as Class , (inc.total_male_students + inc.total_female_students) as \"Class Total\" , inc.no_of_students as 'Student as Per Reg',\nup.created_at as 'Uploaded at' , \nCASE up.insert\n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n WHEN 3 THEN 'Partial Success'\n ELSE 'Unprocessed'\n end 'Insert Status', \n CASE up.update\n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n WHEN 3 THEN 'Partial Success'\n ELSE 'Unprocessed'\n end 'Update Status', \n up.updated_at as 'Last Process AT' from uploads as up\ninner join institution_classes inc on inc.id = up.institution_class_id\ninner join institutions as ins on ins.id = inc.institution_id\ninner join areas ia on ia.id = ins.area_id\ninner join areas pa on pa.id = ia.parent_id\nwhere pa.id = \"$province_id\" and up.insert in (1,3) and up.is_processed in (1,2) and ia.name in($zone)\ngroup by up.id;", | ||
"refId": "A", | ||
"select": [ | ||
[ | ||
{ | ||
"params": [ | ||
"id" | ||
], | ||
"type": "column" | ||
} | ||
] | ||
], | ||
"table": "academic_period_levels", | ||
"timeColumn": "modified", | ||
"timeColumnType": "timestamp", | ||
"where": [ | ||
{ | ||
"name": "$__timeFilter", | ||
"params": [], | ||
"type": "macro" | ||
} | ||
] | ||
} | ||
], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Schools and files uploaded - Success", | ||
"transform": "table", | ||
"type": "table-old" | ||
}, | ||
{ | ||
"columns": [], | ||
"datasource": null, | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {} | ||
}, | ||
"overrides": [] | ||
}, | ||
"fontSize": "100%", | ||
"gridPos": { | ||
"h": 6, | ||
"w": 24, | ||
"x": 0, | ||
"y": 8 | ||
}, | ||
"id": 39, | ||
"links": [], | ||
"pageSize": null, | ||
"scroll": true, | ||
"showHeader": true, | ||
"sort": { | ||
"col": 9, | ||
"desc": true | ||
}, | ||
"styles": [ | ||
{ | ||
"alias": "Time", | ||
"align": "auto", | ||
"dateFormat": "YYYY-MM-DD HH:mm:ss", | ||
"pattern": "Time", | ||
"type": "date" | ||
}, | ||
{ | ||
"alias": "", | ||
"align": "auto", | ||
"colorMode": null, | ||
"colors": [ | ||
"rgba(245, 54, 54, 0.9)", | ||
"rgba(237, 129, 40, 0.89)", | ||
"rgba(50, 172, 45, 0.97)" | ||
], | ||
"decimals": 2, | ||
"pattern": "/.*/", | ||
"thresholds": [], | ||
"type": "number", | ||
"unit": "short" | ||
} | ||
], | ||
"targets": [ | ||
{ | ||
"format": "table", | ||
"group": [], | ||
"metricColumn": "none", | ||
"rawQuery": true, | ||
"rawSql": "select ins.name as School, ins.code as Census , ia.name as Zone , inc.name as Class , (inc.total_male_students + inc.total_female_students) as \"Class Total\" , inc.no_of_students as 'Student as Per Reg',\nup.created_at as 'Uploaded at' , \nCASE up.insert\n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n WHEN 3 THEN 'Partial Process'\n ELSE 'Unprocessed'\n end 'Insert Status', \n CASE up.update\n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n WHEN 3 THEN 'Partial Process'\n ELSE 'Unprocessed'\n end 'Update Status', \n up.updated_at as 'Last Process AT' from uploads as up\ninner join institution_classes inc on inc.id = up.institution_class_id\ninner join institutions as ins on ins.id = inc.institution_id\ninner join areas ia on ia.id = ins.area_id\ninner join areas pa on pa.id = ia.parent_id\nwhere pa.id = \"$province_id\" and up.insert = 1 and up.is_processed != 0 and ia.name in($zone)\ngroup by up.id;", | ||
"refId": "A", | ||
"select": [ | ||
[ | ||
{ | ||
"params": [ | ||
"id" | ||
], | ||
"type": "column" | ||
} | ||
] | ||
], | ||
"table": "academic_period_levels", | ||
"timeColumn": "modified", | ||
"timeColumnType": "timestamp", | ||
"where": [ | ||
{ | ||
"name": "$__timeFilter", | ||
"params": [], | ||
"type": "macro" | ||
} | ||
] | ||
} | ||
], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Schools and files uploaded - Success", | ||
"transform": "table", | ||
"type": "table-old" | ||
}, | ||
{ | ||
"columns": [], | ||
"datasource": null, | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {} | ||
}, | ||
"overrides": [] | ||
}, | ||
"fontSize": "100%", | ||
"gridPos": { | ||
"h": 6, | ||
"w": 24, | ||
"x": 0, | ||
"y": 14 | ||
}, | ||
"id": 27, | ||
"links": [], | ||
"pageSize": null, | ||
"scroll": true, | ||
"showHeader": true, | ||
"sort": { | ||
"col": null, | ||
"desc": false | ||
}, | ||
"styles": [ | ||
{ | ||
"alias": "Time", | ||
"align": "auto", | ||
"dateFormat": "YYYY-MM-DD HH:mm:ss", | ||
"pattern": "Time", | ||
"type": "date" | ||
}, | ||
{ | ||
"alias": "", | ||
"align": "auto", | ||
"colorMode": null, | ||
"colors": [ | ||
"rgba(245, 54, 54, 0.9)", | ||
"rgba(237, 129, 40, 0.89)", | ||
"rgba(50, 172, 45, 0.97)" | ||
], | ||
"decimals": 2, | ||
"pattern": "/.*/", | ||
"thresholds": [], | ||
"type": "number", | ||
"unit": "short" | ||
} | ||
], | ||
"targets": [ | ||
{ | ||
"format": "table", | ||
"group": [], | ||
"metricColumn": "none", | ||
"rawQuery": true, | ||
"rawSql": "select ins.name as School, ins.code as Census , ia.name as Zone , inc.name as Class , (inc.total_male_students + inc.total_female_students) as \"Class Total\" , inc.no_of_students as 'Student as Per Reg' ,\n CASE up.is_processed\n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n WHEN 3 THEN 'Processing'\n ELSE 'Unprocessed'\n end Status,\n CASE up.is_email_sent\n \n WHEN 1 THEN 'Success'\n WHEN 2 THEN 'Failed'\n ELSE 'Unprocessed'\n end Email, \nup.created_at as 'Uploaded at' , up.updated_at as 'Last Process AT' from uploads as up\ninner join institution_classes inc on inc.id = up.institution_class_id\ninner join institutions as ins on ins.id = inc.institution_id\ninner join areas ia on ia.id = ins.area_id\ninner join areas pa on pa.id = ia.parent_id\nwhere pa.id = \"$province_id\"\ngroup by up.id;", | ||
"refId": "A", | ||
"select": [ | ||
[ | ||
{ | ||
"params": [ | ||
"id" | ||
], | ||
"type": "column" | ||
} | ||
] | ||
], | ||
"table": "academic_period_levels", | ||
"timeColumn": "modified", | ||
"timeColumnType": "timestamp", | ||
"where": [ | ||
{ | ||
"name": "$__timeFilter", | ||
"params": [], | ||
"type": "macro" | ||
} | ||
] | ||
} | ||
], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Schools and files uploaded", | ||
"transform": "table", | ||
"type": "table-old" | ||
} | ||
], | ||
"refresh": false, | ||
"schemaVersion": 26, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [ | ||
{ | ||
"allValue": null, | ||
"current": { | ||
"isNone": true, | ||
"selected": false, | ||
"text": "None", | ||
"value": "" | ||
}, | ||
"datasource": "MySQL", | ||
"definition": "SELECT sga.area_id FROM openemis.security_users su inner join openemis.security_group_users sgu on sgu.security_user_id = su.id inner join openemis.security_groups sg on sg.id = sgu.security_group_id inner join openemis.security_group_areas sga on sg.id = sga.security_group_id inner join openemis.areas a on sga.area_id = a.id where a.area_level_id = 2 and sgu.security_role_id = 13 and su.username = '${__user.login}'", | ||
"hide": 2, | ||
"includeAll": false, | ||
"label": "Province", | ||
"multi": false, | ||
"name": "province_id", | ||
"options": [], | ||
"query": "SELECT sga.area_id FROM openemis.security_users su inner join openemis.security_group_users sgu on sgu.security_user_id = su.id inner join openemis.security_groups sg on sg.id = sgu.security_group_id inner join openemis.security_group_areas sga on sg.id = sga.security_group_id inner join openemis.areas a on sga.area_id = a.id where a.area_level_id = 2 and sgu.security_role_id = 13 and su.username = '${__user.login}'", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"tagValuesQuery": "", | ||
"tags": [], | ||
"tagsQuery": "", | ||
"type": "query", | ||
"useTags": false | ||
}, | ||
{ | ||
"allValue": null, | ||
"current": { | ||
"selected": false, | ||
"text": "All", | ||
"value": "$__all" | ||
}, | ||
"datasource": "MySQL", | ||
"definition": "select name from areas where parent_id='$province_id' and area_level_id=3", | ||
"hide": 0, | ||
"includeAll": true, | ||
"label": "Zone", | ||
"multi": false, | ||
"name": "zone", | ||
"options": [], | ||
"query": "select name from areas where parent_id='$province_id' and area_level_id=3", | ||
"refresh": 1, | ||
"regex": "", | ||
"skipUrlSync": false, | ||
"sort": 0, | ||
"tagValuesQuery": "", | ||
"tags": [], | ||
"tagsQuery": "", | ||
"type": "query", | ||
"useTags": false | ||
} | ||
] | ||
}, | ||
"time": { | ||
"from": "now-6h", | ||
"to": "now" | ||
}, | ||
"timepicker": { | ||
"refresh_intervals": [ | ||
"5s", | ||
"10s", | ||
"30s", | ||
"1m", | ||
"5m", | ||
"15m", | ||
"30m", | ||
"1h", | ||
"2h", | ||
"1d" | ||
], | ||
"time_options": [ | ||
"5m", | ||
"15m", | ||
"1h", | ||
"6h", | ||
"12h", | ||
"24h", | ||
"2d", | ||
"7d", | ||
"30d" | ||
] | ||
}, | ||
"timezone": "", | ||
"title": "Provinces - Bulk upload Statistics", | ||
"uid": "FMj1UGVWA", | ||
"version": 2 | ||
} |
Oops, something went wrong.