Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor replica metrics and add some debug lines #8380

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

hithwen
Copy link
Contributor

@hithwen hithwen commented Jan 18, 2021

Factor replica metrics and service check into its own methods and added more debug lines. Also stopped passing down params that are accessible through self. And put whole tag calculation on the config object creation

@hithwen hithwen requested a review from a team as a code owner January 18, 2021 13:03
@ghost ghost added the integration/mysql label Jan 18, 2021
Copy link
Contributor

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Logic and diff looks good, tests were not modified and they pass… LGTM :)

is_mariadb = self.version.flavor == "MariaDB"
replication_channel = options.get('replication_channel')
if replication_channel:
self.service_check_tags.append("channel:{0}".format(replication_channel))
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this operation was ported in this new version. I assume that's because we do tags + service_check_tags when submitting service checks, so channel is still submitted.

Copy link
Contributor Author

@hithwen hithwen Jan 19, 2021

Choose a reason for hiding this comment

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

Exactly, now config.tags has channel from the beginning so service_check_tags gets it when built. But I've realised I might be duplicating that tag in other places where we're still composing, I'll check & update

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hithwen
Copy link
Contributor Author

hithwen commented Jan 19, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@hithwen hithwen merged commit 7f23c18 into master Jan 20, 2021
@hithwen hithwen deleted the julia/AGENT-5566-refactor-and-logs branch January 20, 2021 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants