13 lines
553 B
Python
13 lines
553 B
Python
from prometheus_client import Gauge
|
|
|
|
target_score_thermal = Gauge("fester_target_score_thermal", "Thermal score", ["target"])
|
|
target_score_cost = Gauge("fester_target_score_cost", "Cost score", ["target"])
|
|
target_score_instability = Gauge("fester_target_score_instability", "Instability score", ["target"])
|
|
|
|
|
|
def export_scores(target, score):
|
|
|
|
target_score_thermal.labels(target=target).set(score["thermal"])
|
|
target_score_cost.labels(target=target).set(score["cost"])
|
|
target_score_instability.labels(target=target).set(score["instability"])
|