Skip to content

Conversation

@sarmuru2
Copy link

@sarmuru2 sarmuru2 commented Feb 9, 2023

Often we need to find slowness issues in the code. To find which component is behaving slow, we have to add debug statements and update the cloud with the debug patch. Instead of patching the cloud, we can add the instrumentation code by default with the microservice and enable it when required. When ENV_DEFAULT_LOG_LEVEL is set to debug, metrics logging is also enabled. Once in 30 seconds metrics values are printed in the log.

@sarmuru2 sarmuru2 requested review from charybr and manjurad February 9, 2023 08:01

public static void recordGauge(String name, long count) {
gauge(classQualifier, name, count);
}
Copy link

Choose a reason for hiding this comment

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

Instead of ENV_DEFAULT_LOG_LEVEL, to enable/disable metrics logging we can use existing property - conductor.metrics-logger.enabled
https://github.com/Netflix/conductor/blob/2ccf09e1a31bf4e5ebf80982199250cf82f50556/CHANGELOG.md#component-configuration

Copy link
Author

Choose a reason for hiding this comment

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

lets see what others also saying. if debug is enabled, always metrics are added in the log. but if we add a specific parameter then it has to be added as a bender configuration so that it can be edited on editing sts file. not a spring configuration in galaxy.

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