diff --git a/main.py b/main.py index 3f3a441..50a786b 100644 --- a/main.py +++ b/main.py @@ -37,8 +37,9 @@ def metrics(): for generation in latest_data['data'][0]['generationmix']: ret_data.append( { - 'key': f'sensor_carbon_generation_{generation["fuel"]}_perc', + 'key': f'sensor_carbon_generation_perc', 'labels': { + 'fuel': generation['fuel'], 'region': latest_data['dnoregion'], }, 'type': 'gauge',