diff --git a/slo_generator/exporters/base.py b/slo_generator/exporters/base.py index 882be59c..524de7ae 100644 --- a/slo_generator/exporters/base.py +++ b/slo_generator/exporters/base.py @@ -29,6 +29,7 @@ "feature_name", "slo_name", "metadata", + "error_budget_minutes", ] # Default metrics that are exported by metrics exporters. @@ -58,6 +59,11 @@ "description": "Service Level Objective target.", "labels": DEFAULT_METRIC_LABELS, }, + { + "name": "error_budget_minutes", + "description": "Service Level Objective target.", + "labels": DEFAULT_METRIC_LABELS, + }, ] diff --git a/slo_generator/report.py b/slo_generator/report.py index 45dea439..1579adc7 100644 --- a/slo_generator/report.py +++ b/slo_generator/report.py @@ -404,7 +404,8 @@ def __str__(self) -> str: "BR: {error_budget_burn_rate:<2} / " "{error_budget_burn_rate_threshold} | " "Alert: {alert:<1} | Good: {good_events_count:<8} | " - "Bad: {bad_events_count:<8}" + "Bad: {bad_events_count:<8} | " + "Remaining Minutes:{error_budget_remaining_minutes:<8} | Error Minutes : {error_minutes:<8} | " ).format_map(report) full_str = f"{self.info} | {sli_str} | {result_str}" if COLORED_OUTPUT == 1: