Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ management:
alert:
port: 50052

metrics:
Comment thread
zhongjiajie marked this conversation as resolved.
enabled: true

# Override by profile

---
Expand Down
3 changes: 3 additions & 0 deletions dolphinscheduler-api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ registry:
audit:
enabled: false

metrics:
enabled: true

# Override by profile

---
Expand Down
3 changes: 3 additions & 0 deletions dolphinscheduler-master/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ management:
tags:
application: ${spring.application.name}

metrics:
enabled: true

# Override by profile

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
package org.apache.dolphinscheduler.meter;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Profile;

import io.micrometer.core.aop.CountedAspect;
import io.micrometer.core.aop.TimedAspect;
Expand All @@ -33,6 +33,7 @@
@Configuration
@EnableAspectJAutoProxy
@EnableAutoConfiguration
@ConditionalOnProperty(prefix = "metrics", name = "enabled", havingValue = "true")
public class MeterConfiguration {
@Bean
public TimedAspect timedAspect(MeterRegistry registry) {
Expand Down
3 changes: 3 additions & 0 deletions dolphinscheduler-python/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ management:
tags:
application: ${spring.application.name}

metrics:
enabled: true

# Override by profile
---
spring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ management:
audit:
enabled: true

metrics:
enabled: true

# Override by profile
---
spring:
Expand Down
3 changes: 3 additions & 0 deletions dolphinscheduler-worker/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ management:
metrics:
tags:
application: ${spring.application.name}

metrics:
enabled: true