Skip to content

Commit

Permalink
fix: target log format
Browse files Browse the repository at this point in the history
  • Loading branch information
burningalchemist authored Sep 30, 2023
1 parent 173734c commit f79bde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewTarget(
) {

if tname != "" {
logContext = fmt.Sprintf("%s,target=%s", logContext, tname)
logContext = fmt.Sprintf(`%s,target=%s`, logContext, tname)
if constLabels == nil {
constLabels = prometheus.Labels{config.TargetLabel: tname}
}
Expand Down

0 comments on commit f79bde8

Please sign in to comment.