fix dogstatsd UDS file
previously, if the --datadog-agent-uds-filepath was configured but
datadog-agent-host/--datadog-agent-port were not, dogstatsd would not
run since Concourse would think dogstatsd wasn't configured. since
datadog-agent-uds-filepath is an alternative to the other flags, this
should not be the case
@@ -29,7 +29,9 @@ func init() {
func (config *DogstatsDBConfig) Description() string { return "Datadog" }
-func (config *DogstatsDBConfig) IsConfigured() bool { return config.Host != "" && config.Port != "" }
+func (config *DogstatsDBConfig) IsConfigured() bool {
+ return (config.Host != "" && config.Port != "") || config.UDS != ""
+}
func (config *DogstatsDBConfig) NewEmitter(_ map[string]string) (metric.Emitter, error) {
var client *statsd.Client
