comment default WriteRelabels

This commit is contained in:
Ulric Qin 2022-08-10 16:53:41 +08:00
parent 454dc7f983
commit f34c3c6a2c
1 changed files with 6 additions and 6 deletions

View File

@ -190,12 +190,12 @@ KeepAlive = 30000
MaxConnsPerHost = 0 MaxConnsPerHost = 0
MaxIdleConns = 100 MaxIdleConns = 100
MaxIdleConnsPerHost = 100 MaxIdleConnsPerHost = 100
[[Writers.WriteRelabels]] # [[Writers.WriteRelabels]]
Action = "replace" # Action = "replace"
SourceLabels = ["__address__"] # SourceLabels = ["__address__"]
Regex = "([^:]+)(?::\\d+)?" # Regex = "([^:]+)(?::\\d+)?"
Replacement = "$1:80" # Replacement = "$1:80"
TargetLabel = "__address__" # TargetLabel = "__address__"
# [[Writers]] # [[Writers]]
# Url = "http://127.0.0.1:7201/api/v1/prom/remote/write" # Url = "http://127.0.0.1:7201/api/v1/prom/remote/write"