fixed formatting and updated the dashboard again
This commit is contained in:
parent
51f2d0b677
commit
a4ebeca3b7
@ -259,7 +259,7 @@
|
||||
"description": "% of Ontario Population partially or Fully Vaccinated.",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"decimals": 0,
|
||||
"decimals": 1,
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
@ -388,5 +388,5 @@
|
||||
"timezone": "",
|
||||
"title": "Ontario Vaccination Stats",
|
||||
"uid": "vhnVv3lMk",
|
||||
"version": 38
|
||||
"version": 40
|
||||
}
|
@ -1,7 +1,10 @@
|
||||
{
|
||||
"dashboard": {
|
||||
"annotations": {
|
||||
"list": [
|
||||
"dashboard":
|
||||
{
|
||||
"annotations":
|
||||
{
|
||||
"list":
|
||||
[
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
@ -17,15 +20,20 @@
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": 25,
|
||||
"links": [],
|
||||
"panels": [
|
||||
"links":
|
||||
[],
|
||||
"panels":
|
||||
[
|
||||
{
|
||||
"cacheTimeout": null,
|
||||
"datasource": null,
|
||||
"description": "~Days left until everyone 12+ Is partially vaccinated.\n\nThis divides the remaining population without any vaccination by the average doses administered over the past 3 days.",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"mappings": [
|
||||
"fieldConfig":
|
||||
{
|
||||
"defaults":
|
||||
{
|
||||
"mappings":
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"op": "=",
|
||||
@ -34,9 +42,11 @@
|
||||
"value": "null"
|
||||
}
|
||||
],
|
||||
"thresholds": {
|
||||
"thresholds":
|
||||
{
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
"steps":
|
||||
[
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
@ -53,9 +63,11 @@
|
||||
},
|
||||
"unit": "none"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":
|
||||
[]
|
||||
},
|
||||
"gridPos": {
|
||||
"gridPos":
|
||||
{
|
||||
"h": 6,
|
||||
"w": 5,
|
||||
"x": 0,
|
||||
@ -63,25 +75,31 @@
|
||||
},
|
||||
"id": 8,
|
||||
"interval": null,
|
||||
"links": [],
|
||||
"links":
|
||||
[],
|
||||
"maxDataPoints": 100,
|
||||
"options": {
|
||||
"options":
|
||||
{
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "horizontal",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"reduceOptions":
|
||||
{
|
||||
"calcs":
|
||||
[
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "/^{instance=\"127.0.0.1:8080\", job=\"ontvacstat\"}$/",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"text":
|
||||
{},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "7.5.1",
|
||||
"targets": [
|
||||
"targets":
|
||||
[
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "((ontvacstat_eligible_population - ontvacstat_total_individuals_fully_vaccinated) - (ontvacstat_total_doses_administered - ontvacstat_total_doses_in_fully_vaccinated_individuals)) / avg_over_time(ontvacstat_previous_day_doses_administered[7d])",
|
||||
@ -97,12 +115,17 @@
|
||||
},
|
||||
{
|
||||
"datasource": null,
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"fieldConfig":
|
||||
{
|
||||
"defaults":
|
||||
{
|
||||
"mappings":
|
||||
[],
|
||||
"thresholds":
|
||||
{
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
"steps":
|
||||
[
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
@ -118,33 +141,41 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":
|
||||
[]
|
||||
},
|
||||
"gridPos": {
|
||||
"gridPos":
|
||||
{
|
||||
"h": 6,
|
||||
"w": 6,
|
||||
"x": 5,
|
||||
"y": 0
|
||||
},
|
||||
"id": 4,
|
||||
"links": [],
|
||||
"options": {
|
||||
"links":
|
||||
[],
|
||||
"options":
|
||||
{
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"reduceOptions":
|
||||
{
|
||||
"calcs":
|
||||
[
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"text": {},
|
||||
"text":
|
||||
{},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "7.5.1",
|
||||
"targets": [
|
||||
"targets":
|
||||
[
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "ontvacstat_previous_day_doses_administered",
|
||||
@ -161,18 +192,23 @@
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"aliasColors":
|
||||
{},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": null,
|
||||
"fieldConfig": {
|
||||
"defaults": {},
|
||||
"overrides": []
|
||||
"fieldConfig":
|
||||
{
|
||||
"defaults":
|
||||
{},
|
||||
"overrides":
|
||||
[]
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"gridPos":
|
||||
{
|
||||
"h": 7,
|
||||
"w": 11,
|
||||
"x": 0,
|
||||
@ -180,7 +216,8 @@
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"legend":
|
||||
{
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
@ -192,7 +229,8 @@
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "connected",
|
||||
"options": {
|
||||
"options":
|
||||
{
|
||||
"alertThreshold": true
|
||||
},
|
||||
"percentage": false,
|
||||
@ -200,11 +238,13 @@
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"seriesOverrides":
|
||||
[],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
"targets":
|
||||
[
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "avg_over_time(ontvacstat_previous_day_doses_administered[3d:1d])",
|
||||
@ -214,25 +254,31 @@
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"thresholds":
|
||||
[],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeRegions":
|
||||
[],
|
||||
"timeShift": null,
|
||||
"title": "Vacination Rate",
|
||||
"tooltip": {
|
||||
"tooltip":
|
||||
{
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"xaxis":
|
||||
{
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
"values":
|
||||
[]
|
||||
},
|
||||
"yaxes": [
|
||||
"yaxes":
|
||||
[
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
@ -250,7 +296,8 @@
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"yaxis":
|
||||
{
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
@ -258,13 +305,18 @@
|
||||
{
|
||||
"datasource": null,
|
||||
"description": "% of Ontario Population partially or Fully Vaccinated.",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"decimals": 0,
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"fieldConfig":
|
||||
{
|
||||
"defaults":
|
||||
{
|
||||
"decimals": 1,
|
||||
"mappings":
|
||||
[],
|
||||
"thresholds":
|
||||
{
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
"steps":
|
||||
[
|
||||
{
|
||||
"color": "dark-red",
|
||||
"value": null
|
||||
@ -297,31 +349,39 @@
|
||||
},
|
||||
"unit": "percent"
|
||||
},
|
||||
"overrides": []
|
||||
"overrides":
|
||||
[]
|
||||
},
|
||||
"gridPos": {
|
||||
"gridPos":
|
||||
{
|
||||
"h": 8,
|
||||
"w": 11,
|
||||
"x": 0,
|
||||
"y": 13
|
||||
},
|
||||
"id": 2,
|
||||
"links": [],
|
||||
"options": {
|
||||
"links":
|
||||
[],
|
||||
"options":
|
||||
{
|
||||
"displayMode": "lcd",
|
||||
"orientation": "horizontal",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"reduceOptions":
|
||||
{
|
||||
"calcs":
|
||||
[
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"showUnfilled": true,
|
||||
"text": {}
|
||||
"text":
|
||||
{}
|
||||
},
|
||||
"pluginVersion": "7.5.1",
|
||||
"targets": [
|
||||
"targets":
|
||||
[
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "(ontvacstat_total_doses_administered - ontvacstat_total_doses_in_fully_vaccinated_individuals) / (ontvacstat_eligible_population) * 100",
|
||||
@ -358,23 +418,30 @@
|
||||
"refresh": "15m",
|
||||
"schemaVersion": 27,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
"tags":
|
||||
[],
|
||||
"templating":
|
||||
{
|
||||
"list":
|
||||
[]
|
||||
},
|
||||
"time": {
|
||||
"time":
|
||||
{
|
||||
"from": "now-3d",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"timepicker":
|
||||
{
|
||||
"refresh_intervals":
|
||||
[
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
],
|
||||
"time_options": [
|
||||
"time_options":
|
||||
[
|
||||
"5m",
|
||||
"15m",
|
||||
"1h",
|
||||
@ -389,8 +456,8 @@
|
||||
"timezone": "",
|
||||
"title": "Ontario Vaccination Stats",
|
||||
"uid": "vhnVv3lMk",
|
||||
"version": 38
|
||||
},
|
||||
"version": 40
|
||||
},
|
||||
"expires": 86400,
|
||||
"key": "ontvacstats"
|
||||
}
|
1
main.go
1
main.go
@ -88,7 +88,6 @@ func updateMetrics() {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
records.PreviousDayDosesAdministered().Set(float64(data.Result.Records[0].PreviousDayDosesAdministered))
|
||||
records.PreviousDayAtLeastOne().Set(float64(data.Result.Records[0].PreviousDayAtLeastOne))
|
||||
records.PreviousDayFullyVaccinated().Set(float64(data.Result.Records[0].PreviousDayFullyVaccinated))
|
||||
|
Reference in New Issue
Block a user