forked from Netflix/conductor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add postgres missing dependency * support datadog * update datadog conditional property
- Loading branch information
1 parent
7e308ad
commit f9cb2d7
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ibs/src/main/java/com/netflix/conductor/contribs/metrics/DatadogMetricsConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.netflix.conductor.contribs.metrics; | ||
|
||
import com.netflix.spectator.api.Spectator; | ||
import com.netflix.spectator.micrometer.MicrometerRegistry; | ||
import io.micrometer.core.instrument.MeterRegistry; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* Metrics Datadog module, sending all metrics to a Datadog server. | ||
* <p> | ||
* Enable in config: conductor.metrics-datadog.enabled=true | ||
* <p> | ||
* Make sure your dependencies include both micrometer-registry-datadog & spring-boot-starter-actuator | ||
*/ | ||
@ConditionalOnProperty(value = "conductor.metrics-datadog.enabled", havingValue = "true") | ||
@Configuration | ||
public class DatadogMetricsConfiguration { | ||
|
||
public DatadogMetricsConfiguration(MeterRegistry meterRegistry) { | ||
final MicrometerRegistry metricsRegistry = new MicrometerRegistry(meterRegistry); | ||
Spectator.globalRegistry().add(metricsRegistry); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters