Grafana dashboard step 동일화

This commit is contained in:
kyy
2025-09-03 16:49:55 +09:00
parent 8185275ba6
commit df860fc701
2 changed files with 2 additions and 2 deletions

View File

@@ -56,13 +56,14 @@ def main():
if args.range in ("24h", "1d"):
start = now - timedelta(days=1)
range_label = "지난 24시간"
step = 3600 # 1시간 - Interval
else:
start = now - timedelta(days=7)
range_label = "지난 7일"
step = 21600 # 6시간 - Interval
start_epoch, end_epoch = to_epoch(start), to_epoch(now)
# step = step_for_range(end_epoch - start_epoch)
step = 21600 # 6시간
# 대시보드에서 패널 추출
dash = gf.get_dashboard_by_uid(cfg.grafana_dashboard_uid)

View File

@@ -46,7 +46,6 @@ def compute_total_for_target(
# --- Loki ---
if is_loki(ds):
try:
step_sec = 21600
logger.info(f"[TARGET START] legend={label}, expr={expr}")
# 1) 그대로 실행