new dashboards

main
Ray Slakinski 1 year ago
parent b2da7586b0
commit 65a1dc439c
  1. 2
      Makefile
  2. 153
      contrib/grafana/dashboard.json
  3. 153
      contrib/update_dashboard/ontvacstats-snapshot.json

@ -13,4 +13,4 @@ clean:
rm -f bin/*
install:
cp bin/ontvacstat /usr/local/bin
cp bin/ontvacstat /usr/local/bin

@ -37,8 +37,8 @@
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"h": 3,
"w": 10,
"x": 0,
"y": 0
},
@ -118,18 +118,18 @@
"overrides": []
},
"gridPos": {
"h": 6,
"w": 6,
"x": 4,
"y": 0
"h": 7,
"w": 10,
"x": 0,
"y": 3
},
"id": 14,
"options": {
"graph": {},
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right"
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
@ -209,7 +209,7 @@
"h": 6,
"w": 10,
"x": 0,
"y": 6
"y": 10
},
"id": 10,
"options": {
@ -226,21 +226,21 @@
"pluginVersion": "7.5.1",
"targets": [{
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_doses_administered[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_doses_administered[7d])",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Combined",
"refId": "A"
}, {
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_at_least_one[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_at_least_one[7d])",
"hide": false,
"interval": "",
"legendFormat": "First Does",
"refId": "B"
}, {
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_fully_vaccinated[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_fully_vaccinated[7d])",
"hide": false,
"interval": "",
"legendFormat": "Fully Vaccinated",
@ -248,11 +248,11 @@
}],
"timeFrom": null,
"timeShift": null,
"title": "Vacination Rate (3 day avg)",
"title": "Vacination Rate (7 day avg)",
"type": "timeseries"
}, {
"datasource": null,
"description": "% of Ontario Population partially or Fully Vaccinated.",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
@ -293,9 +293,9 @@
"h": 8,
"w": 10,
"x": 0,
"y": 12
"y": 16
},
"id": 2,
"id": 19,
"links": [],
"options": {
"orientation": "horizontal",
@ -313,31 +313,79 @@
"pluginVersion": "7.5.1",
"targets": [{
"exemplar": true,
"expr": "(ontvacstat_total_doses_administered - ontvacstat_total_doses_in_fully_vaccinated_individuals) / (ontvacstat_eligible_population) * 100",
"expr": "ontvacstat_age_12_17yrs_percent_at_least_one_dose * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partially Vaccinated",
"legendFormat": "12-17",
"refId": "A"
}, {
"exemplar": true,
"expr": "ontvacstat_total_individuals_fully_vaccinated / ontvacstat_eligible_population * 100",
"format": "time_series",
"expr": "ontvacstat_age_18_29yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Fully Vaccinated",
"legendFormat": "18-29",
"refId": "B"
}, {
"exemplar": true,
"expr": "(ontvacstat_total_individuals_at_least_one) / (ontvacstat_eligible_population) * 100",
"expr": "ontvacstat_age_30_39yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "Combined",
"legendFormat": "30-39",
"refId": "C"
}, {
"exemplar": true,
"expr": "ontvacstat_age_40_49yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "40-49",
"refId": "D"
}, {
"exemplar": true,
"expr": "ontvacstat_age_50_59yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "50-59",
"refId": "E"
}, {
"exemplar": true,
"expr": "ontvacstat_age_60_69yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "60-69",
"refId": "F"
}, {
"exemplar": true,
"expr": "ontvacstat_age_70_79yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "70-79",
"refId": "G"
}, {
"exemplar": true,
"expr": "ontvacstat_age_80_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "80+",
"refId": "H"
}, {
"exemplar": true,
"expr": "ontvacstat_age_adult_18_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "18+",
"refId": "I"
}, {
"exemplar": true,
"expr": "(ontvacstat_total_individuals_at_least_one) / (ontvacstat_eligible_population) * 100",
"hide": false,
"interval": "",
"legendFormat": "12 +",
"refId": "J"
}],
"timeFrom": null,
"timeShift": null,
"title": "Overall % Vaccinated",
"title": "At Least One Dose by Age",
"type": "gauge"
}, {
"datasource": null,
@ -345,7 +393,28 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false
},
"decimals": 1,
"mappings": [],
@ -382,22 +451,19 @@
"h": 8,
"w": 10,
"x": 0,
"y": 20
"y": 24
},
"id": 19,
"id": 20,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.5.1",
"targets": [{
@ -457,18 +523,11 @@
"interval": "",
"legendFormat": "80+",
"refId": "H"
}, {
"exemplar": true,
"expr": "ontvacstat_age_adult_18_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "18+",
"refId": "I"
}],
"timeFrom": null,
"timeShift": null,
"title": "At Least One Dose by Age",
"type": "gauge"
"type": "timeseries"
}],
"refresh": "1h",
"schemaVersion": 27,
@ -504,5 +563,5 @@
"timezone": "",
"title": "Ontario Vaccination Stats",
"uid": "vhnVv3lMk",
"version": 71
"version": 77
}

@ -38,8 +38,8 @@
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"h": 3,
"w": 10,
"x": 0,
"y": 0
},
@ -119,18 +119,18 @@
"overrides": []
},
"gridPos": {
"h": 6,
"w": 6,
"x": 4,
"y": 0
"h": 7,
"w": 10,
"x": 0,
"y": 3
},
"id": 14,
"options": {
"graph": {},
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right"
"displayMode": "list",
"placement": "bottom"
},
"tooltipOptions": {
"mode": "single"
@ -210,7 +210,7 @@
"h": 6,
"w": 10,
"x": 0,
"y": 6
"y": 10
},
"id": 10,
"options": {
@ -227,21 +227,21 @@
"pluginVersion": "7.5.1",
"targets": [{
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_doses_administered[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_doses_administered[7d])",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Combined",
"refId": "A"
}, {
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_at_least_one[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_at_least_one[7d])",
"hide": false,
"interval": "",
"legendFormat": "First Does",
"refId": "B"
}, {
"exemplar": true,
"expr": "avg_over_time(ontvacstat_previous_day_fully_vaccinated[3d])",
"expr": "avg_over_time(ontvacstat_previous_day_fully_vaccinated[7d])",
"hide": false,
"interval": "",
"legendFormat": "Fully Vaccinated",
@ -249,11 +249,11 @@
}],
"timeFrom": null,
"timeShift": null,
"title": "Vacination Rate (3 day avg)",
"title": "Vacination Rate (7 day avg)",
"type": "timeseries"
}, {
"datasource": null,
"description": "% of Ontario Population partially or Fully Vaccinated.",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
@ -294,9 +294,9 @@
"h": 8,
"w": 10,
"x": 0,
"y": 12
"y": 16
},
"id": 2,
"id": 19,
"links": [],
"options": {
"orientation": "horizontal",
@ -314,31 +314,79 @@
"pluginVersion": "7.5.1",
"targets": [{
"exemplar": true,
"expr": "(ontvacstat_total_doses_administered - ontvacstat_total_doses_in_fully_vaccinated_individuals) / (ontvacstat_eligible_population) * 100",
"expr": "ontvacstat_age_12_17yrs_percent_at_least_one_dose * 100",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Partially Vaccinated",
"legendFormat": "12-17",
"refId": "A"
}, {
"exemplar": true,
"expr": "ontvacstat_total_individuals_fully_vaccinated / ontvacstat_eligible_population * 100",
"format": "time_series",
"expr": "ontvacstat_age_18_29yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Fully Vaccinated",
"legendFormat": "18-29",
"refId": "B"
}, {
"exemplar": true,
"expr": "(ontvacstat_total_individuals_at_least_one) / (ontvacstat_eligible_population) * 100",
"expr": "ontvacstat_age_30_39yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "Combined",
"legendFormat": "30-39",
"refId": "C"
}, {
"exemplar": true,
"expr": "ontvacstat_age_40_49yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "40-49",
"refId": "D"
}, {
"exemplar": true,
"expr": "ontvacstat_age_50_59yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "50-59",
"refId": "E"
}, {
"exemplar": true,
"expr": "ontvacstat_age_60_69yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "60-69",
"refId": "F"
}, {
"exemplar": true,
"expr": "ontvacstat_age_70_79yrs_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "70-79",
"refId": "G"
}, {
"exemplar": true,
"expr": "ontvacstat_age_80_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "80+",
"refId": "H"
}, {
"exemplar": true,
"expr": "ontvacstat_age_adult_18_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "18+",
"refId": "I"
}, {
"exemplar": true,
"expr": "(ontvacstat_total_individuals_at_least_one) / (ontvacstat_eligible_population) * 100",
"hide": false,
"interval": "",
"legendFormat": "12 +",
"refId": "J"
}],
"timeFrom": null,
"timeShift": null,
"title": "Overall % Vaccinated",
"title": "At Least One Dose by Age",
"type": "gauge"
}, {
"datasource": null,
@ -346,7 +394,28 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"graph": false,
"legend": false,
"tooltip": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false
},
"decimals": 1,
"mappings": [],
@ -383,22 +452,19 @@
"h": 8,
"w": 10,
"x": 0,
"y": 20
"y": 24
},
"id": 19,
"id": 20,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
"tooltipOptions": {
"mode": "single"
}
},
"pluginVersion": "7.5.1",
"targets": [{
@ -458,18 +524,11 @@
"interval": "",
"legendFormat": "80+",
"refId": "H"
}, {
"exemplar": true,
"expr": "ontvacstat_age_adult_18_plus_percent_at_least_one_dose * 100",
"hide": false,
"interval": "",
"legendFormat": "18+",
"refId": "I"
}],
"timeFrom": null,
"timeShift": null,
"title": "At Least One Dose by Age",
"type": "gauge"
"type": "timeseries"
}],
"refresh": "1h",
"schemaVersion": 27,
@ -505,7 +564,7 @@
"timezone": "",
"title": "Ontario Vaccination Stats",
"uid": "vhnVv3lMk",
"version": 71
"version": 77
},
"expires": 86400,
"key": "ontvacstats"

Loading…
Cancel
Save