fix: Add uniq id
This commit is contained in:
parent
945a381b2e
commit
784703ac64
1 changed files with 2 additions and 1 deletions
|
@ -136,6 +136,7 @@ func (l *LokiSource) ConfigureByDSN(dsn string, labels map[string]string, logger
|
|||
l.Config = LokiConfiguration{}
|
||||
l.Config.Mode = configuration.CAT_MODE
|
||||
l.Config.Labels = labels
|
||||
l.Config.UniqueId = uuid
|
||||
|
||||
u, err := url.Parse(dsn)
|
||||
if err != nil {
|
||||
|
@ -319,7 +320,7 @@ func (l *LokiSource) CanRun() error {
|
|||
}
|
||||
|
||||
func (l *LokiSource) GetUuid() string {
|
||||
return ""
|
||||
return l.Config.UniqueId
|
||||
}
|
||||
|
||||
func (l *LokiSource) Dump() interface{} {
|
||||
|
|
Loading…
Add table
Reference in a new issue