Skip to content

Commit 919fd56

Browse files
Pass in hostname to Prometheus single instance update (#205)
* Pass in hostname to Prometheus single instance update * Add testing * Remove function and test
1 parent 61d5262 commit 919fd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler/heartbeat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (c *Client) handleHeartbeats(ws conn) error {
7676
}
7777

7878
// Update Prometheus signals every time a Registration message is received.
79-
c.UpdatePrometheusForMachine(context.Background(), hbm.Registration.Machine)
79+
c.UpdatePrometheusForMachine(context.Background(), hbm.Registration.Hostname)
8080
case hbm.Health != nil:
8181
if err := c.UpdateHealth(hostname, *hbm.Health); err != nil {
8282
closeConnection(experiment, err)

0 commit comments

Comments
 (0)