Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit a9119f5

Browse files
Use unique service names (#5)
1 parent f5f1f27 commit a9119f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argus/watch/service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (w Watcher) makeDeviceObject(service *v1.Service) (device lmv1.RestDevice)
139139
fqdn := service.Name + "." + service.Namespace + ".svc.cluster.local"
140140
device = lmv1.RestDevice{
141141
Name: fqdn,
142-
DisplayName: fqdn,
142+
DisplayName: fqdn + "-" + string(service.UID),
143143
DisableAlerting: w.Config.DisableAlerting,
144144
HostGroupIds: "1",
145145
PreferredCollectorId: w.Config.PreferredCollector,

0 commit comments

Comments
 (0)