Skip to content

Commit

Permalink
some small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouyan Azari committed Dec 17, 2019
1 parent 0b5dfe5 commit 3b5e081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alertmanager_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ type AlertManagerEmailNotifier struct {

/// getReceiverName Returns the receiver name
func (alertManagerEmailNotifier *AlertManagerEmailNotifier) getReceiverName() string {
return fmt.Sprintf("dynamic-%s-%s-receiver", alertManagerEmailNotifier.Group, alertManagerEmailNotifier.Name)
return fmt.Sprintf("dynamic-%s-email-%s", alertManagerEmailNotifier.Group, alertManagerEmailNotifier.Name)
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func createPrometheusHosts(
labels.Job = fmt.Sprintf("%v", prometheusJobName)
}
if prometheusPort, ok := promSingleNode.(map[string]interface{})["port"]; ok {
target := fmt.Sprintf("%s:%.0f", labels.Host, prometheusPort)
target := fmt.Sprintf("%s:%.0f", labels.IP, prometheusPort)
targets = append(targets, target)
}
prometheusHost.Labels = labels
Expand Down

0 comments on commit 3b5e081

Please sign in to comment.