Grafana dashboard: covid-19-stats
Description: https://github.com/normander/covid-19-stats


{
  "__inputs": [
    {
      "name": "DS_DEV",
      "label": "DEV",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.6.2"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 11938,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1585307781271,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 15,
      "panels": [],
      "repeat": "country",
      "title": "$country",
      "type": "row"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 0,
        "y": 1
      },
      "id": 2,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 1
                }
              ]
            }
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_cases{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total cases in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 3,
        "y": 1
      },
      "id": 7,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "decimals": 5,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 1
                }
              ]
            },
            "unit": "locale"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_today_cases{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Today cases in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 6,
        "y": 1
      },
      "id": 16,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "defaults": {
            "decimals": 5,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "red",
                  "value": null
                },
                {
                  "color": "green",
                  "value": 1
                }
              ]
            },
            "unit": "locale"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_deaths{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Deaths in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 9,
        "y": 1
      },
      "id": 3,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "decimals": 5,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 1
                }
              ]
            },
            "unit": "locale"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_today_deaths{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Today deaths in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 12,
        "y": 1
      },
      "id": 4,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "defaults": {
            "decimals": 5,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "red",
                  "value": null
                },
                {
                  "color": "green",
                  "value": 1
                }
              ]
            },
            "unit": "locale"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_recovered{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Recovered in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 15,
        "y": 1
      },
      "id": 5,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 1
                }
              ]
            },
            "unit": "none"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_active{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Active in $country",
      "type": "stat"
    },
    {
      "datasource": "${DS_DEV}",
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 18,
        "y": 1
      },
      "id": 6,
      "links": [
        {
          "title": "https://www.worldometers.info/coronavirus/#countries",
          "url": "https://www.worldometers.info/coronavirus/#countries"
        }
      ],
      "options": {
        "colorMode": "value",
        "fieldOptions": {
          "calcs": [
            "last"
          ],
          "defaults": {
            "decimals": 6,
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 1
                }
              ]
            },
            "unit": "locale"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto"
      },
      "pluginVersion": "6.6.2",
      "repeat": null,
      "repeatDirection": "v",
      "targets": [
        {
          "expr": "covid19_critical{country=\"$country\"}",
          "format": "time_series",
          "legendFormat": "{{country}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Critical in $country",
      "type": "stat"
    }
  ],
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_DEV}",
        "definition": "label_values(covid19_cases, country)",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": true,
        "name": "country",
        "options": [],
        "query": "label_values(covid19_cases, country)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "covid-19-stats",
  "uid": "8R5TBPuZk",
  "version": 43,
  "description": "https://github.com/normander/covid-19-stats"
}