|
|
@ -7,7 +7,7 @@ import prometheus_client as pc
|
|
|
|
|
|
|
|
|
|
|
|
class CoronaExporter:
|
|
|
|
class CoronaExporter:
|
|
|
|
def __init__(self):
|
|
|
|
def __init__(self):
|
|
|
|
self.cases7_per_100k = pc.Gauge('cases7_per_100k', 'Fälle der letzten 7 Tage/100.000 EW', ['county'])
|
|
|
|
self.cases7_per_100k = pc.Gauge('cases7_per_100k', 'Faelle der letzten 7 Tage/100.000 EW', ['county'])
|
|
|
|
|
|
|
|
|
|
|
|
def get_metrics(self):
|
|
|
|
def get_metrics(self):
|
|
|
|
r = requests.get('https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=false&outSR=4326&f=json')
|
|
|
|
r = requests.get('https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=false&outSR=4326&f=json')
|
|
|
|