Skip to content

Commit

Permalink
Fix typo in agent config file and variable
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Nov 27, 2024
1 parent 3ea33cb commit 407467f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/discovery/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ func updatePrometheusTargets(targets PrometheusTargets, ipAddresses []string) Pr
// Fallback to lowest IP address value to replace empty exporter targets
ips := make([]net.IP, 0, len(ipAddresses))
for _, ip := range ipAddresses {
parsedIp := net.ParseIP(ip)
if parsedIp.To4() != nil && !parsedIp.IsLoopback() {
ips = append(ips, parsedIp)
parsedIP := net.ParseIP(ip)
if parsedIP.To4() != nil && !parsedIP.IsLoopback() {
ips = append(ips, parsedIP)
}

}
Expand Down
2 changes: 1 addition & 1 deletion packaging/config/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@

## Prometheus exporters targets
## Configure the prometheus targets. If not given, the lowest discovered IP address
## with a default port numbers is used
## with a default port number is used

# node-exporter-target: 192.168.1.10:9100

0 comments on commit 407467f

Please sign in to comment.