diff --git a/example_sage.yaml b/example_sage.yaml index f55c6732..555247f6 100644 --- a/example_sage.yaml +++ b/example_sage.yaml @@ -2,6 +2,8 @@ logging: "debug" # panic,fatal,warn,info,debug,trace metricsAddr: ":9095" pprofAddr: ":6065" # optional. if supplied it enables pprof server +name: example-instance + armiarmaUrl: http://localhost:9099/events # workers is the number of workers to use for processing events. diff --git a/pkg/sage/config.go b/pkg/sage/config.go index c0a0f293..876e3a2e 100644 --- a/pkg/sage/config.go +++ b/pkg/sage/config.go @@ -17,6 +17,8 @@ type Config struct { PProfAddr *string `yaml:"pprofAddr"` // MetricsAddr is the address to server prometheus metrics on. MetricsAddr string `yaml:"metricsAddr" default:":9093"` + // Name is the name of the service. + Name string `yaml:"name" default:"xatu-sage"` // Outputs configuration Outputs []output.Config `yaml:"outputs"` // ArmiarmaURL configuration diff --git a/pkg/sage/sage.go b/pkg/sage/sage.go index 738260ab..38337ad3 100644 --- a/pkg/sage/sage.go +++ b/pkg/sage/sage.go @@ -245,7 +245,7 @@ func (a *Sage) createNewClientMeta(ctx context.Context) (*xatu.ClientMeta, error } return &xatu.ClientMeta{ - Name: "sage", + Name: a.config.Name, Version: xatu.Short(), Id: a.id.String(), Implementation: xatu.Implementation,