diff --git a/lib/promrelabel/debug.go b/lib/promrelabel/debug.go index 6fed35bcc..360792d13 100644 --- a/lib/promrelabel/debug.go +++ b/lib/promrelabel/debug.go @@ -21,7 +21,7 @@ func writeRelabelDebug(w io.Writer, isTargetRelabel bool, targetID, metric, rela if metric == "" { metric = "{}" } - if targetID == "" { + if err != nil { WriteRelabelDebugSteps(w, isTargetRelabel, targetID, nil, metric, relabelConfigs, err) return } diff --git a/lib/promrelabel/debug.qtpl b/lib/promrelabel/debug.qtpl index 76dfd719a..2f8244d25 100644 --- a/lib/promrelabel/debug.qtpl +++ b/lib/promrelabel/debug.qtpl @@ -11,6 +11,16 @@
{%= htmlcomponents.CommonHeader() %}