prometheus-covid-exporter

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Prometheus COVID-19 Exporter

Build Status PkgGoDev Go Report Card

A metric exporter for Prometheus that scraps disease.sh and the RKI Vaccination Data APIs for new data. By default, data is retrieved every five minutes. Usually data is only updated once a day, so the fetching interval can be overwritten by passing a command-line argument.

Exported metrics

  • covid_disease_cases{state}: The number of total cases in the given state.
  • covid_disease_deaths{state}: The number of total deaths in the given state.
  • covid_disease_case_previous_day_change{state}: The number of new cases since the previous day.
  • covid_disease_cases_per_hundred_thousand{state}: The number of cases per 10,000 inhabitants.
  • covid_disease_seven_day_cases_per_hundred_thousand{state}: The number of new cases in the last week per 10,000 inhabitants.
  • covid_vaccination_total{state}: The number of people that need to get vaccinated. This is basically the number of inhabitants for the given state.
  • covid_vaccination_vaccinated{state}: The number of people that already have been vaccinated.
  • covid_vaccination_quote{state}: The quote of people that already have been vaccinated.

To get nation-wide data, it is possible to pass state = "Germany" to any of the above metrics.

Command-Line Options

The exporter support a few command-line arguments to customize its behaviour to an extent:

  • -port <uint> (defaults to 8080): The port at which the exporter should listen on.
  • -delay <duration> (defaults to 5m): The delay between data fetching round trips.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址