Skip to content

Commit

Permalink
Add metric to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Nov 6, 2022
1 parent 2231d98 commit 8dbd030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func (hosts *HostsController) sendMetric(host config.Host, client *Client) {
Message: ErrorMessage{
Error: errorContent,
Host: host.Address,
Name: metric,
},
Error: true,
}
Expand Down
1 change: 1 addition & 0 deletions client/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type SendMessage struct {
type ErrorMessage struct {
Host string
Error string
Name string
}

type Message struct {
Expand Down

0 comments on commit 8dbd030

Please sign in to comment.