Skip to content

Conversation

v1r3n
Copy link
Collaborator

@v1r3n v1r3n commented Jun 15, 2025

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Upgrade metrics system to use the micrometer.
Conductor now supports publishing metrics to all the popular metrics systems.
See https://docs.micrometer.io/micrometer/reference/implementations.html for more details

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

@@ -70,8 +70,8 @@ conductor.default-event-queue.type=sqs
# conductor.zookeeper-lock.namespace

#disable locking during workflow execution
conductor.app.workflow-execution-lock-enabled=false
conductor.workflow-execution-lock.type=noop_lock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change feels out of place w.r.t metrics changes.
Why do we need to change these flags ?
Same comment for server-lite/src/main/resources/application.properties

@@ -74,6 +75,8 @@ public void setupKitchenSink() {
LOGGER.info("Loading Kitchen Sink examples");
createKitchenSink();
}
} catch (ConflictException ignored) {
// Already present in the system :)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for debugging ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and if there is a conflict it means the workflow already exists, so its OK to ignore.


@Bean
public MeterRegistry getCloudWatchMetrics(
@Value("${management.cloudwatch.metrics.export.namesapce:conductor}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?
namesapce or namespace

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


@Bean
public MeterRegistry getAzureMonitorMeterRegistry(
@Value("${management.cloudwatch.metrics.export.instrumentationKey:null}")
Copy link
Contributor

@orkes-harshil orkes-harshil Jun 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cloudwatch or azuremonitor ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@v1r3n v1r3n merged commit 9bbf0a4 into main Jun 20, 2025
10 of 11 checks passed
@v1r3n v1r3n deleted the metrics_upgrade branch June 20, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants