{% import ( "fmt" "github.com/VictoriaMetrics/VictoriaMetrics/lib/htmlcomponents" "github.com/VictoriaMetrics/VictoriaMetrics/lib/promutils" ) %} {% stripspace %} {% func RelabelDebugSteps(targetURL, targetID, format string, dss []DebugStep, metric, relabelConfigs string, err error) %} {% if format == "json" %} {%= RelabelDebugStepsJSON(targetURL, targetID, dss, metric, relabelConfigs, err) %} {% else %} {%= RelabelDebugStepsHTML(targetURL, targetID, dss, metric, relabelConfigs, err) %} {% endif %} {% endfunc %} {% func RelabelDebugStepsHTML(targetURL, targetID string, dss []DebugStep, metric, relabelConfigs string, err error) %}
{%= htmlcomponents.CommonHeader() %}Step | Relabeling Rule | Input Labels | Output labels |
---|---|---|---|
{%d i %} | {%s ds.Rule %} |
{%= labelsWithHighlight(inLabels, changedLabels, "red") %}
|
{%= labelsWithHighlight(outLabels, changedLabels, "blue") %}
|